@@ -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
3131const (
@@ -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