Skip to content

Commit

Permalink
assign _burnedCredit to burnedCredit and fix durationSeconds shadow d…
Browse files Browse the repository at this point in the history
…eclaration
  • Loading branch information
kamescg committed Jul 12, 2021
1 parent 1dc01c9 commit 89ce2bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/prize-pool/PrizePool.sol
Expand Up @@ -719,7 +719,8 @@ abstract contract PrizePool is PrizePoolInterface, OwnableUpgradeable, Reentranc
)
{
(uint256 exitFee, uint256 _burnedCredit) = _calculateEarlyExitFeeLessBurnedCredit(from, controlledToken, amount);
uint256 durationSeconds = _estimateCreditAccrualTime(controlledToken, amount, exitFee);
burnedCredit = _burnedCredit;
durationSeconds = _estimateCreditAccrualTime(controlledToken, amount, exitFee);
if (durationSeconds > maxTimelockDuration) {
durationSeconds = maxTimelockDuration;
}
Expand Down

0 comments on commit 89ce2bd

Please sign in to comment.