Skip to content

Commit 37c9b1b

Browse files
committed
Initialize big.Ints
1 parent 4917cca commit 37c9b1b

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

bindings/rewards/rewards.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -334,28 +334,27 @@ func getMainnetIntervalRewardsEvent(rp *rocketpool.RocketPool, index uint64) (Re
334334
}
335335

336336
var (
337-
treasuryRPL *big.Int
338-
trustedNodeRPL *big.Int
339-
nodeRPL *big.Int
340-
nodeETH *big.Int
341-
executionBlock *big.Int
342-
consensusBlock *big.Int
343-
intervalsPassed *big.Int
344337
merkleRoot common.Hash
345338
merkleTreeCID string
346339
intervalStartTime time.Time
347340
intervalEndTime time.Time
348341
submissionTime time.Time
349-
userETH *big.Int
350342
)
343+
treasuryRPL := big.NewInt(0)
344+
trustedNodeRPL := big.NewInt(0)
345+
nodeRPL := big.NewInt(0)
346+
nodeETH := big.NewInt(0)
347+
userETH := big.NewInt(0)
348+
executionBlock := big.NewInt(0)
349+
consensusBlock := big.NewInt(0)
350+
intervalsPassed := big.NewInt(0)
351351

352352
// Hardcoded RewardsEvent for old intervals on mainnet
353353
switch index {
354354
case 0:
355355
treasuryRPL.SetString("10633670478560109530497", 10)
356356
trustedNodeRPL.SetString("10633670478560109529794", 10)
357357
nodeRPL.SetString("49623795566613844471758", 10)
358-
nodeETH = big.NewInt(0)
359358
executionBlock = big.NewInt(15451078)
360359
consensusBlock = big.NewInt(4598879)
361360
intervalsPassed = big.NewInt(1)

0 commit comments

Comments
 (0)