Skip to content

Commit

Permalink
address nits and fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Shrenuj Bansal <shrenuj@dydx.exchange>
  • Loading branch information
shrenujb committed Jun 27, 2024
1 parent 6c0d0dc commit 49942c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ func TestQueryMarketMapperRevShareDetailsFailure(t *testing.T) {
MarketId: 42,
},
)
require.ErrorContains(t, err, "MarketMapperRevShareDetails not found for marketId: 42")
require.ErrorIs(t, err, types.ErrMarketMapperRevShareDetailsNotFound)
}
4 changes: 2 additions & 2 deletions protocol/x/revshare/keeper/revshare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestGetMarketMapperRevShareDetailsFailure(t *testing.T) {

// Get the rev share details for non-existent market
_, err := k.GetMarketMapperRevShareDetails(ctx, 42)
require.ErrorContains(t, err, "MarketMapperRevShareDetails not found for marketId: 42")
require.ErrorIs(t, err, types.ErrMarketMapperRevShareDetailsNotFound)
}

func TestCreateNewMarketRevShare(t *testing.T) {
Expand Down Expand Up @@ -115,7 +115,7 @@ func TestGetMarketMapperRevenueShareForMarket(t *testing.T) {

expectedErr: types.ErrMarketMapperRevShareDetailsNotFound,
},
// TODO: investigate why tApp blocktime doesn't translate to ctx.BlockTime()
// TODO (TRA-455): investigate why tApp blocktime doesn't translate to ctx.BlockTime()
//"expired market rev share": {
// revShareParams: types.MarketMapperRevenueShareParams{
// Address: constants.AliceAccAddress.String(),
Expand Down
2 changes: 1 addition & 1 deletion protocol/x/subaccounts/keeper/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func (k Keeper) DistributeFees(
feeCollectorShare := new(big.Int).Sub(quantums, marketMapperShare)

// Transfer fees to the market mapper
// TODO: add monitoring to record the amount of fees transferred to the market mapper
// TODO (TRA-444): add monitoring to record the amount of fees transferred to the market mapper
if err := k.TransferFees(
ctx,
assetId,
Expand Down

0 comments on commit 49942c3

Please sign in to comment.