Skip to content

Commit

Permalink
Updated to check prizes for both canaries
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Apr 1, 2024
1 parent f14a0da commit f333899
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Claimer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ contract Claimer {
}
uint256 _maxFee = _computeMaxFee(_tier);
SD59x18 perTimeUnit = LinearVRGDALib.getPerTimeUnit(
prizePool.estimatedPrizeCount(),
prizePool.estimatedPrizeCountWithBothCanaries(),
timeToReachMaxFee
);
uint256 elapsed = block.timestamp - (prizePool.lastAwardedDrawAwardedAt());
Expand Down
6 changes: 3 additions & 3 deletions test/Claimer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ contract ClaimerTest is Test {
uint prizeCount = 10;
vm.mockCall(
address(prizePool),
abi.encodeWithSignature("estimatedPrizeCount()"),
abi.encodeWithSignature("estimatedPrizeCountWithBothCanaries()"),
abi.encode(prizeCount)
);
vm.mockCall(
Expand All @@ -349,7 +349,7 @@ contract ClaimerTest is Test {
uint prizeCount = 10;
vm.mockCall(
address(prizePool),
abi.encodeWithSignature("estimatedPrizeCount()"),
abi.encodeWithSignature("estimatedPrizeCountWithBothCanaries()"),
abi.encode(prizeCount)
);
vm.mockCall(
Expand Down Expand Up @@ -381,7 +381,7 @@ contract ClaimerTest is Test {
);
vm.mockCall(
address(prizePool),
abi.encodeWithSignature("estimatedPrizeCount()"),
abi.encodeWithSignature("estimatedPrizeCountWithBothCanaries()"),
abi.encodePacked(ESTIMATED_PRIZES)
);
vm.mockCall(
Expand Down

0 comments on commit f333899

Please sign in to comment.