Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Keshavrajsinghal committed Jun 26, 2024
1 parent b85b42f commit fae5850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/EDAPrice.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ library EDAPrice {

// percentWadRemainingPerPeriod can be safely cast because < 1e18
// ratio can be safely cast because will not overflow unless ratio > int256.max,
// which would require secondsElapsed > int256.max, i.e. > 5.78e76 or 1.8e69 years
// which would require secondsElapsed > type(uint256).max, i.e. > 1.157e59 years

int256 multiplier = FixedPointMathLib.powWad(int256(percentWadRemainingPerPeriod), int256(ratio));
uint256 price = FixedPointMathLib.mulWad(startPrice, uint256(multiplier));
Expand Down

0 comments on commit fae5850

Please sign in to comment.