Skip to content

Commit

Permalink
Rename constant
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieraykatz committed Aug 5, 2024
1 parent 6fb4de2 commit a2f7087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/L2/LaunchAuctionPriceOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ contract LaunchAuctionPriceOracle is StablePriceOracle {
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

/// @notice The half-life of the premium price decay
uint256 constant SECONDS_IN_PERIOD = 1 hours;
uint256 constant PRICE_PREMIUM_HALF_LIFE = 1 hours;

/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* IMPLEMENTATION */
Expand Down Expand Up @@ -78,6 +78,6 @@ contract LaunchAuctionPriceOracle is StablePriceOracle {
function decayedPremium(uint256 elapsed) public view returns (uint256) {
/// @dev 50% decay per period in wad format
uint256 perPeriodDecayPercentWad = FixedPointMathLib.WAD / 2;
return EDAPrice.currentPrice(startPremium, elapsed, SECONDS_IN_PERIOD, perPeriodDecayPercentWad);
return EDAPrice.currentPrice(startPremium, elapsed, PRICE_PREMIUM_HALF_LIFE, perPeriodDecayPercentWad);
}
}

0 comments on commit a2f7087

Please sign in to comment.