Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Apr 12, 2024
1 parent 9e9d39c commit 69ab717
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func DefaultConfig() Config {
return Config{
ShadowForkVaultContract: "0x9620e3933dAAa49EBe3250b731291ac817E24372",

MinBalance: big.NewInt(0), // 0 ETH
MinBalance: big.NewInt(1000000000000000000), // 1 ETH
TxFeeCap: big.NewInt(100000000000), // 100 Gwei
TxTipCap: big.NewInt(1000000000), // 1 Gwei
RequestAmount: big.NewInt(1000000000000000000), // 1 ETH
Expand Down
4 changes: 2 additions & 2 deletions pkg/coordinator/tasks/generate_shadowfork_funding/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ func (t *Task) Execute(ctx context.Context) error {

t.logger.Infof("root wallet: %v [nonce: %v] %v ETH", t.wallet.GetAddress().Hex(), t.wallet.GetNonce(), t.wallet.GetReadableBalance(18, 0, 4, false, false))

if t.wallet.GetBalance().Cmp(t.config.MinBalance) <= 0 {
t.logger.Infof("balance exceeds minBalance (%v ETH), skipping shadow vault request", wallet.GetReadableBalance(t.config.MinBalance, 18, 0, 4, false, false))
if t.wallet.GetBalance().Cmp(t.config.MinBalance) >= 0 {
t.logger.Infof("balance (%v ETH) exceeds minBalance (%v ETH), skipping shadow vault request", t.wallet.GetReadableBalance(18, 0, 4, false, false), wallet.GetReadableBalance(t.config.MinBalance, 18, 0, 4, false, false))
return nil
}

Expand Down

0 comments on commit 69ab717

Please sign in to comment.