Skip to content

Commit 6e7b579

Browse files
committed
Fix import and lint issues
1 parent 6a217ef commit 6e7b579

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

rocketpool-cli/node/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func getStatus(c *cli.Context) error {
354354
if maxAmount.Cmp(status.RplStakeMegapool) < 0 {
355355
maxAmount.Set(status.RplStakeMegapool)
356356
}
357-
fmt.Println("You have %.6f RPL staked on your megapool and can request to unstake up to %.6f RPL\n", math.RoundDown(eth.WeiToEth(status.RplStakeMegapool), 6), math.RoundDown(eth.WeiToEth(&maxAmount), 6))
357+
fmt.Printf("You have %.6f RPL staked on your megapool and can request to unstake up to %.6f RPL\n", math.RoundDown(eth.WeiToEth(status.RplStakeMegapool), 6), math.RoundDown(eth.WeiToEth(&maxAmount), 6))
358358
} else {
359359
// Withdrawal limit pre-saturn 1
360360
rplTotalStake := math.RoundDown(eth.WeiToEth(status.RplStake), 6)

rocketpool/api/node/rpl-withdrawal-address.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import (
1515
updateCheck "github.com/rocket-pool/smartnode/shared/services/state"
1616
"github.com/rocket-pool/smartnode/shared/types/api"
1717
"github.com/rocket-pool/smartnode/shared/utils/eth1"
18-
"github.com/urfave/cli"
19-
"golang.org/x/sync/errgroup"
2018
)
2119

2220
func canSetRPLWithdrawalAddress(c *cli.Context, withdrawalAddress common.Address, confirm bool) (*api.CanSetNodeRPLWithdrawalAddressResponse, error) {

treegen/voting-power.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (g *treeGenerator) GenerateVotingPower(s *state.NetworkState) *VotingPowerF
7878
// Get provided ETH (32 * minipoolCount - matched)
7979
ethProvided := big.NewInt(activeMinipoolCount * 32)
8080
ethProvided.Mul(ethProvided, oneEth)
81-
ethProvided.Sub(ethProvided, node.EthMatched)
81+
ethProvided.Sub(ethProvided, node.EthBorrowed)
8282

8383
// Calculate the Voting Power
8484
nodeVotingPower := rewards.NewQuotedBigInt(0)

0 commit comments

Comments
 (0)