Skip to content

Commit

Permalink
Merge pull request #648 from superform-xyz/fix-audit-recommendations
Browse files Browse the repository at this point in the history
fix: audit recommendation
  • Loading branch information
TamaraRingas authored Oct 28, 2024
2 parents 6a010e7 + 8d83ec7 commit 382eedb
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 382eedb

Please sign in to comment.