Skip to content

Commit

Permalink
chore: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaraRingas committed Oct 24, 2024
1 parent 87eb829 commit 1ab28aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/router-plus/SuperformRouterPlus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ contract SuperformRouterPlus is ISuperformRouterPlus, BaseSuperformRouterPlus {
uint256 assetsBalanceAfter = asset.balanceOf(address(this));
balanceDifference = assetsBalanceAfter - assetsBalanceBefore;

/// @dev validate the tolerance
if (assets < TOLERANCE_CONSTANT || balanceDifference < TOLERANCE_CONSTANT) revert TOLERANCE_EXCEEDED();

/// @dev validate the slippage
Expand Down

0 comments on commit 1ab28aa

Please sign in to comment.