docs: Document the meaning of limits array

This commit is contained in:
kayibal
2024-10-23 10:44:53 +01:00
parent eddb46ccbd
commit 42f66c22cf

View File

@@ -74,7 +74,9 @@ interface ISwapAdapter is ISwapAdapterTypes {
/// @param poolId The ID of the trading pool.
/// @param sellToken The token being sold.
/// @param buyToken The token being bought.
/// @return limits An array of limits.
/// @return limits an array of size two indicating the limit amount for the sell
/// token (maximum the pool is willing to buy in sell token) as well as the limit
/// amount of the buy token (maximum the pool is willing to sell in buy token).
function getLimits(bytes32 poolId, address sellToken, address buyToken)
external
returns (uint256[] memory limits);