Skip to content

Commit 771dbb7

Browse files
committed
lint fixes
1 parent b0e00f9 commit 771dbb7

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

cmd/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
"github.com/tellor-io/layer-daemons/configs"
1818
customquery "github.com/tellor-io/layer-daemons/custom_query"
1919
daemonflags "github.com/tellor-io/layer-daemons/flags"
20-
2120
// need this for the address bech32 prefix config
2221
_ "github.com/tellor-io/layer/app/config"
2322

reporter/client/auto_balance_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package client
33
import (
44
"testing"
55

6-
"cosmossdk.io/math"
7-
86
"github.com/stretchr/testify/require"
97
bridgetypes "github.com/tellor-io/layer/x/bridge/types"
108
oracletypes "github.com/tellor-io/layer/x/oracle/types"
9+
10+
"cosmossdk.io/math"
1111
)
1212

1313
func TestNormalizeAutoBalanceEthAddr(t *testing.T) {

reporter/client/reporter_monitors.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"github.com/spf13/viper"
1717
"github.com/tellor-io/layer-daemons/flags"
1818
tokenbridgetipstypes "github.com/tellor-io/layer-daemons/server/types/token_bridge_tips"
19+
bridgetypes "github.com/tellor-io/layer/x/bridge/types"
1920
oracletypes "github.com/tellor-io/layer/x/oracle/types"
2021
reportertypes "github.com/tellor-io/layer/x/reporter/types"
2122

@@ -25,7 +26,6 @@ import (
2526
"github.com/cosmos/cosmos-sdk/types/query"
2627
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
2728
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
28-
bridgetypes "github.com/tellor-io/layer/x/bridge/types"
2929
)
3030

3131
const (
@@ -338,7 +338,7 @@ func (c *Client) AutoUnbondStakePeriodically(ctx context.Context, wg *sync.WaitG
338338
}
339339
}
340340

341-
func shouldSkipAutoUnbond(reporterStake math.LegacyDec, maxStakePercentage math.LegacyDec, unbondAmount math.Int) bool {
341+
func shouldSkipAutoUnbond(reporterStake, maxStakePercentage math.LegacyDec, unbondAmount math.Int) bool {
342342
if !maxStakePercentage.GT(math.LegacyZeroDec()) {
343343
return false
344344
}
@@ -400,14 +400,16 @@ func (c *Client) AutoBridgeWalletExcessPeriodically(ctx context.Context, wg *syn
400400
amountToBridge := walletBal.Sub(keepAmt).Sub(gasReserve)
401401

402402
if !amountToBridge.IsPositive() {
403-
c.logger.Info("auto balance-to-keep: wallet below threshold, nothing to bridge",
403+
c.logger.Info(
404+
"auto balance-to-keep: wallet below threshold, nothing to bridge",
404405
"wallet_loya", walletBal.String(),
405406
"keep_loya", keepAmt.String(),
406407
)
407408
continue
408409
}
409410

410-
c.logger.Info("auto balance-to-keep: bridging excess",
411+
c.logger.Info(
412+
"auto balance-to-keep: bridging excess",
411413
"wallet_loya", walletBal.String(),
412414
"keep_loya", keepAmt.String(),
413415
"bridge_amount_loya", amountToBridge.String(),

0 commit comments

Comments
 (0)