interface IMetaSwapDeposit {
  // min return calculation functions
  function calculateSwap(
    uint8 tokenIndexFrom,
    uint8 tokenIndexTo,
    uint256 dx
  ) external view returns (uint256);

  function swap(
    uint8 tokenIndexFrom,
    uint8 tokenIndexTo,
    uint256 dx,
    uint256 minDy,
    uint256 deadline
  ) external returns (uint256);

  function getToken(uint256 index) external view returns (IERC20);
}
/**
 * @title IMetaSwapDeposit interface
 * @notice Interface for the meta swap contract.
 * @dev implement this interface to develop a a factory-patterned ECDSA node management contract
 **/
function calculateSwap(
    uint8 tokenIndexFrom,
    uint8 tokenIndexTo,
    uint256 dx
  ) external view returns (uint256);
// min return calculation functions