Skip to content

Commit 7e0ef0e

Browse files
committed
Lint
1 parent 572da05 commit 7e0ef0e

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

protocol/x/affiliates/keeper/keeper_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,14 @@ func TestGetTakerFeeShareViaReferredVolume(t *testing.T) {
193193
require.NoError(t, err)
194194
stakingKeeper := tApp.App.StakingKeeper
195195

196-
k.UpdateAffiliateParameters(ctx, &types.MsgUpdateAffiliateParameters{
196+
require.NoError(t, k.UpdateAffiliateParameters(ctx, &types.MsgUpdateAffiliateParameters{
197197
Authority: constants.GovAuthority,
198198
AffiliateParameters: types.AffiliateParameters{
199199
Maximum_30DAttributableVolumePerReferredUserNotional: 100_000_000_000_000,
200200
},
201-
})
201+
}))
202202

203-
err = stakingKeeper.SetDelegation(ctx,
203+
require.NoError(t, stakingKeeper.SetDelegation(ctx,
204204
stakingtypes.NewDelegation(constants.AliceAccAddress.String(),
205205
constants.AliceValAddress.String(), math.LegacyNewDecFromBigInt(
206206
new(big.Int).Mul(
@@ -209,8 +209,7 @@ func TestGetTakerFeeShareViaReferredVolume(t *testing.T) {
209209
),
210210
),
211211
),
212-
)
213-
require.NoError(t, err)
212+
))
214213

215214
// Register affiliate and referee
216215
affiliate := constants.AliceAccAddress.String()

protocol/x/revshare/keeper/revshare_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ func TestKeeper_GetAllRevShares_Valid(t *testing.T) {
397397
},
398398
setup: func(tApp *testapp.TestApp, ctx sdk.Context, keeper *keeper.Keeper,
399399
affiliatesKeeper *affiliateskeeper.Keeper, statsKeeper *statsKeeper.Keeper) {
400-
401400
err := keeper.SetMarketMapperRevenueShareParams(ctx, types.MarketMapperRevenueShareParams{
402401
Address: constants.AliceAccAddress.String(),
403402
RevenueSharePpm: 100_000, // 10%
@@ -1381,11 +1380,11 @@ func TestKeeper_GetAllRevShares_Valid(t *testing.T) {
13811380
tc.setup(tApp, ctx, &keeper, &affiliatesKeeper, &statsKeeper)
13821381
}
13831382

1384-
affiliatesKeeper.UpdateAffiliateParameters(ctx, &affiliatetypes.MsgUpdateAffiliateParameters{
1383+
require.NoError(t, affiliatesKeeper.UpdateAffiliateParameters(ctx, &affiliatetypes.MsgUpdateAffiliateParameters{
13851384
AffiliateParameters: affiliatetypes.AffiliateParameters{
13861385
Maximum_30DAttributableRevenuePerReferredUserQuoteQuantums: 1_000_000_000_000,
13871386
},
1388-
})
1387+
}))
13891388

13901389
keeper.CreateNewMarketRevShare(ctx, marketId)
13911390
affiliateOverridesMap, err := affiliatesKeeper.GetAffiliateOverridesMap(ctx)

protocol/x/vault/keeper/vault_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,14 @@ func TestVaultIsBestFeeTier(t *testing.T) {
330330
vaultClob1Address := constants.Vault_Clob1.ToModuleAccountAddress()
331331
aliceAddress := constants.AliceAccAddress.String()
332332

333-
tApp.App.AffiliatesKeeper.UpdateAffiliateParameters(
333+
require.NoError(t, tApp.App.AffiliatesKeeper.UpdateAffiliateParameters(
334334
ctx,
335335
&affiliatetypes.MsgUpdateAffiliateParameters{
336336
AffiliateParameters: affiliatetypes.AffiliateParameters{
337337
RefereeMinimumFeeTierIdx: 2,
338338
},
339339
},
340-
)
340+
))
341341

342342
// Vault in genesis state should be in best fee tier.
343343
takerFee := tApp.App.FeeTiersKeeper.GetPerpetualFeePpm(ctx, vaultClob0Address, true, 2)

0 commit comments

Comments
 (0)