feat: Added comment about minLimits as requested

This commit is contained in:
domenicodev
2024-01-19 11:54:11 +01:00
parent 1cffd007ad
commit 14ce015ac4

View File

@@ -84,6 +84,11 @@ contract IntegralSwapAdapter is ISwapAdapter {
limits = new uint256[](2); limits = new uint256[](2);
limits[0] = limitMax0; limits[0] = limitMax0;
limits[1] = limitMax1; 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 /// @inheritdoc ISwapAdapter