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 2, 2024
1 parent 89baf8a commit 37d69cc
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 @@ -242,7 +242,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 @@ -332,7 +332,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 @@ -358,7 +358,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 @@ -390,7 +390,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 37d69cc

Please sign in to comment.