From 115c7c26ccbc739d64247e70786e66f615f1d72f Mon Sep 17 00:00:00 2001 From: Alessandro Bergamaschi <51761861+Aleione@users.noreply.github.com> Date: Wed, 27 Mar 2024 15:28:34 +0100 Subject: [PATCH] Update evm/src/angle/AngleAdapter.sol Co-authored-by: pistomat --- evm/src/angle/AngleAdapter.sol | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/evm/src/angle/AngleAdapter.sol b/evm/src/angle/AngleAdapter.sol index 83e97ca..ecd4b8c 100644 --- a/evm/src/angle/AngleAdapter.sol +++ b/evm/src/angle/AngleAdapter.sol @@ -59,14 +59,13 @@ contract AngleAdapter is ISwapAdapter { } /// @inheritdoc ISwapAdapter - /// @dev mint may have no limits, but we underestimate them to make sure, - /// with the same amount of sellToken. - /// We use the quoteIn (incl. fee), because calculating fee requires a part - /// of the implementation of - /// the Angle Diamond Storage, and therefore redundant functions and - /// excessive contract size, with an high complexity. - /// In addition, we underestimate to / RESERVE_LIMIT_FACTOR to ensure swaps - /// with OrderSide.Buy won't fail anyway. + /// @dev Mint may have no limits, but we underestimate them to make sure, + /// with the same amount of sellToken. We use the quoteIn (incl. fee), + /// because calculating fee requires a part of the implementation of the + /// Angle Diamond Storage, and therefore redundant functions and excessive + /// contract size, with an high complexity. In addition, we underestimate to + /// RESERVE_LIMIT_FACTOR to ensure swaps with OrderSide.Buy won't fail + /// anyway. function getLimits(bytes32, IERC20 sellToken, IERC20 buyToken) external view