Skip to content

Commit

Permalink
Merge pull request #506 from asymmetryfinance/H-1
Browse files Browse the repository at this point in the history
H-1: Update floorPrice on premint unstake
  • Loading branch information
toshiSat authored Dec 20, 2023
2 parents f661828 + f0fc980 commit e141139
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/SafEth/SafEth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ contract SafEth is
) public returns (uint256 ethToRedeem) {
(bool shouldPremint, uint256 price) = shouldPremintUnstake(_amount);
if (!shouldPremint) revert AmountTooLow();
floorPrice = price;
_transfer(msg.sender, address(this), _amount);
safEthToClaim += _amount;
ethToRedeem = (_amount * price) / 1e18;
Expand Down

0 comments on commit e141139

Please sign in to comment.