Skip to content

Instantly share code, notes, and snippets.

@michwill
Created May 3, 2020 20:30
Show Gist options
  • Save michwill/9feac629c4817bf881543b35e105df86 to your computer and use it in GitHub Desktop.
Save michwill/9feac629c4817bf881543b35e105df86 to your computer and use it in GitHub Desktop.
interface CurveFi {
function exchange(
int128 i,
int128 j,
uint256 dx,
uint256 min_dy
) external;
function exchange_underlying(
int128 i,
int128 j,
uint256 dx,
uint256 min_dy
) external;
function get_dx_underlying(
int128 i,
int128 j,
uint256 dy
) external view returns (uint256);
function get_dy_underlying(
int128 i,
int128 j,
uint256 dx
) external view returns (uint256);
function get_dx(
int128 i,
int128 j,
uint256 dy
) external view returns (uint256);
function get_dy(
int128 i,
int128 j,
uint256 dx
) external view returns (uint256);
function get_virtual_price() external view returns (uint256);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment