diff --git a/src/interfaces/IEulerSwap.sol b/src/interfaces/IEulerSwap.sol index ce71a2c..4e1541d 100644 --- a/src/interfaces/IEulerSwap.sol +++ b/src/interfaces/IEulerSwap.sol @@ -56,7 +56,9 @@ interface IEulerSwap { returns (uint256); /// @notice Upper-bounds on the amounts of each token that this pool can currently support swaps for. - function getLimits(address tokenIn, address tokenOut) external view returns (uint256, uint256); + /// @return limitIn Max amount of `tokenIn` that can be sold. + /// @return limitOut Max amount of `tokenOut` that can be bought. + function getLimits(address tokenIn, address tokenOut) external view returns (uint256 limitIn, uint256 limitOut); /// @notice Optimistically sends the requested amounts of tokens to the `to` /// address, invokes `eulerSwapCall` callback on `to` (if `data` was provided), diff --git a/src/interfaces/IEulerSwapPeriphery.sol b/src/interfaces/IEulerSwapPeriphery.sol index 39fe65b..e2522dd 100644 --- a/src/interfaces/IEulerSwapPeriphery.sol +++ b/src/interfaces/IEulerSwapPeriphery.sol @@ -40,6 +40,8 @@ interface IEulerSwapPeriphery { view returns (uint256); - /// @notice Upper-bound on the max amount that can be sold of tokenIn and bought of tokenOut - function getLimits(address eulerSwap, address tokenIn, address tokenOut) external view returns (uint256, uint256); + /// @notice Upper-bounds on the amounts of each token that this pool can currently support swaps for. + /// @return limitIn Max amount of `tokenIn` that can be sold. + /// @return limitOut Max amount of `tokenOut` that can be bought. + function getLimits(address eulerSwap, address tokenIn, address tokenOut) external view returns (uint256 limitIn, uint256 limitOut); }