From 14ce015ac4726e006f2c07be9c8ae5c8ea731725 Mon Sep 17 00:00:00 2001 From: domenicodev Date: Fri, 19 Jan 2024 11:54:11 +0100 Subject: [PATCH] feat: Added comment about minLimits as requested --- evm/src/integral/IntegralSwapAdapter.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/evm/src/integral/IntegralSwapAdapter.sol b/evm/src/integral/IntegralSwapAdapter.sol index ea14885..840607d 100644 --- a/evm/src/integral/IntegralSwapAdapter.sol +++ b/evm/src/integral/IntegralSwapAdapter.sol @@ -84,6 +84,11 @@ contract IntegralSwapAdapter is ISwapAdapter { limits = new uint256[](2); limits[0] = limitMax0; limits[1] = limitMax1; + /** + * @dev minLimits in integral are the args: 2(for sellToken, the one before limitMax0) + * and 4(for buyToken, the one before limitMax1) of the function relayer.getPoolState(sellToken, buyToken); + * an implementation of them can be found in the test of this adapter + */ } /// @inheritdoc ISwapAdapter