Skip to content

Commit 19cbbd1

Browse files
authored
Merge pull request #649 from superform-xyz/fix-update-tolerance-check-in-redeemShares()
fix update tolerance check in `redeemShare()`
2 parents 382eedb + e06f60d commit 19cbbd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router-plus/SuperformRouterPlus.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ contract SuperformRouterPlus is ISuperformRouterPlus, BaseSuperformRouterPlus {
520520
balanceDifference = assetsBalanceAfter - assetsBalanceBefore;
521521

522522
/// @dev validate the tolerance
523-
if (assets < TOLERANCE_CONSTANT || balanceDifference < TOLERANCE_CONSTANT) revert TOLERANCE_EXCEEDED();
523+
if (assets < TOLERANCE_CONSTANT || balanceDifference < assets - TOLERANCE_CONSTANT) revert TOLERANCE_EXCEEDED();
524524

525525
/// @dev validate the slippage
526526
if (

0 commit comments

Comments
 (0)