Skip to content

Commit 8d83ec7

Browse files
committed
fix: rm balanceDifference != assets check in _redeemShare()
1 parent 6a010e7 commit 8d83ec7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/router-plus/SuperformRouterPlus.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,7 @@ contract SuperformRouterPlus is ISuperformRouterPlus, BaseSuperformRouterPlus {
524524

525525
/// @dev validate the slippage
526526
if (
527-
(balanceDifference != assets)
528-
|| (ENTIRE_SLIPPAGE * assets < ((expectedOutputAmount_ * (ENTIRE_SLIPPAGE - maxSlippage_))))
527+
(ENTIRE_SLIPPAGE * assets < ((expectedOutputAmount_ * (ENTIRE_SLIPPAGE - maxSlippage_))))
529528
) {
530529
revert ASSETS_RECEIVED_OUT_OF_SLIPPAGE();
531530
}

0 commit comments

Comments
 (0)