Skip to content

Commit abf8f69

Browse files
committed
test: update based on 4x change for calculator
1 parent fc8c016 commit abf8f69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/concrete/staking-rewards-calculator/inject-rewards-for-week/injectRewardsForWeek.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ contract InjectRewardsForWeek_StakingRewardsCalculator_Integration_Test is
99
StakingRewardsCalculator_Integration_Shared_Test
1010
{
1111
uint256 constant STAKE_AMOUNT = 5_000_000 ether;
12-
uint256 constant REWARDS_AMOUNT = 10_000 ether;
13-
uint256 constant EXPECTED_WEEKLY_REWARD = 2816.059 ether;
12+
uint256 constant REWARDS_AMOUNT = 50_000 ether;
13+
uint256 constant EXPECTED_WEEKLY_REWARD = 11_264.236 ether;
1414

1515
uint256 defaultTimestamp;
1616

@@ -211,7 +211,7 @@ contract InjectRewardsForWeek_StakingRewardsCalculator_Integration_Test is
211211
uint256 rewards = _calculateAndInjectRewards(address(walletConnectConfig), timestamp, false, bytes(""));
212212

213213
// Then: Rewards should be around double (more flexibility for the test)
214-
assertApproxEqAbs(rewards, EXPECTED_WEEKLY_REWARD * 2, 1e20, "Rewards should be double for two equal stakers");
214+
assertApproxEqAbs(rewards, EXPECTED_WEEKLY_REWARD * 2, 3e20, "Rewards should be double for two equal stakers");
215215

216216
// And: Should transfer tokens from caller to distributor
217217
assertEq(l2wct.balanceOf(address(stakingRewardDistributor)), rewards, "Distributor should have rewards");

0 commit comments

Comments
 (0)