Skip to content

Commit

Permalink
fix: rm balanceDifference != assets check in _redeemShare()
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaraRingas committed Oct 28, 2024
1 parent 6a010e7 commit 8d83ec7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/router-plus/SuperformRouterPlus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,7 @@ contract SuperformRouterPlus is ISuperformRouterPlus, BaseSuperformRouterPlus {

/// @dev validate the slippage
if (
(balanceDifference != assets)
|| (ENTIRE_SLIPPAGE * assets < ((expectedOutputAmount_ * (ENTIRE_SLIPPAGE - maxSlippage_))))
(ENTIRE_SLIPPAGE * assets < ((expectedOutputAmount_ * (ENTIRE_SLIPPAGE - maxSlippage_))))
) {
revert ASSETS_RECEIVED_OUT_OF_SLIPPAGE();
}
Expand Down

0 comments on commit 8d83ec7

Please sign in to comment.