Update evm/src/angle/AngleAdapter.sol
Co-authored-by: pistomat <pistomat@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
81106d75f5
commit
115c7c26cc
@@ -59,14 +59,13 @@ contract AngleAdapter is ISwapAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// @inheritdoc ISwapAdapter
|
/// @inheritdoc ISwapAdapter
|
||||||
/// @dev mint may have no limits, but we underestimate them to make sure,
|
/// @dev Mint may have no limits, but we underestimate them to make sure,
|
||||||
/// with the same amount of sellToken.
|
/// with the same amount of sellToken. We use the quoteIn (incl. fee),
|
||||||
/// We use the quoteIn (incl. fee), because calculating fee requires a part
|
/// because calculating fee requires a part of the implementation of the
|
||||||
/// of the implementation of
|
/// Angle Diamond Storage, and therefore redundant functions and excessive
|
||||||
/// the Angle Diamond Storage, and therefore redundant functions and
|
/// contract size, with an high complexity. In addition, we underestimate to
|
||||||
/// excessive contract size, with an high complexity.
|
/// RESERVE_LIMIT_FACTOR to ensure swaps with OrderSide.Buy won't fail
|
||||||
/// In addition, we underestimate to / RESERVE_LIMIT_FACTOR to ensure swaps
|
/// anyway.
|
||||||
/// with OrderSide.Buy won't fail anyway.
|
|
||||||
function getLimits(bytes32, IERC20 sellToken, IERC20 buyToken)
|
function getLimits(bytes32, IERC20 sellToken, IERC20 buyToken)
|
||||||
external
|
external
|
||||||
view
|
view
|
||||||
|
|||||||
Reference in New Issue
Block a user