diff --git a/lib/pt-v5-prize-pool b/lib/pt-v5-prize-pool index 7e31113..db68a5d 160000 --- a/lib/pt-v5-prize-pool +++ b/lib/pt-v5-prize-pool @@ -1 +1 @@ -Subproject commit 7e3111303d8b289516e65159764b9a8d0e4a5ce5 +Subproject commit db68a5d96ccb3d449f3c8ed0d668dc85efe81040 diff --git a/src/Claimer.sol b/src/Claimer.sol index a87c7bc..9e8d8bc 100644 --- a/src/Claimer.sol +++ b/src/Claimer.sol @@ -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()); diff --git a/test/Claimer.t.sol b/test/Claimer.t.sol index 82e888a..281ddd8 100644 --- a/test/Claimer.t.sol +++ b/test/Claimer.t.sol @@ -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( @@ -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( @@ -390,7 +390,7 @@ contract ClaimerTest is Test { ); vm.mockCall( address(prizePool), - abi.encodeWithSignature("estimatedPrizeCount()"), + abi.encodeWithSignature("estimatedPrizeCountWithBothCanaries()"), abi.encodePacked(ESTIMATED_PRIZES) ); vm.mockCall(