Created
April 5, 2022 12:38
-
-
Save tumf/0c641d6cd1a28ed495d4b576ec34b694 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.9; | |
interface ICurvePool { | |
function A() external view returns (uint256); | |
function get_virtual_price() external view returns (uint256); | |
function calc_token_amount(uint256[3] calldata amounts, bool deposit) | |
external | |
view | |
returns (uint256); | |
function add_liquidity(uint256[3] calldata amounts, uint256 min_mint_amount) | |
external; | |
function get_dy( | |
int128 i, | |
int128 j, | |
uint256 dx | |
) external view returns (uint256); | |
function get_dy_underlying( | |
int128 i, | |
int128 j, | |
uint256 dx | |
) external view returns (uint256); | |
function exchange( | |
int128 i, | |
int128 j, | |
uint256 dx, | |
uint256 min_dy | |
) external; | |
function remove_liquidity(uint256 _amount, uint256[3] calldata min_amounts) | |
external; | |
function remove_liquidity_imbalance( | |
uint256[3] calldata amounts, | |
uint256 max_burn_amount | |
) external; | |
function calc_withdraw_one_coin(uint256 _token_amount, int128 i) | |
external | |
view | |
returns (uint256); | |
function remove_liquidity_one_coin( | |
uint256 _token_amount, | |
int128 i, | |
uint256 min_amount | |
) external; | |
function ramp_A(uint256 _future_A, uint256 _future_time) external; | |
function stop_ramp_A() external; | |
function commit_new_fee(uint256 new_fee, uint256 new_admin_fee) external; | |
function apply_new_fee() external; | |
function revert_new_parameters() external; | |
function commit_transfer_ownership(address _owner) external; | |
function apply_transfer_ownership() external; | |
function revert_transfer_ownership() external; | |
function admin_balances(uint256 i) external view returns (uint256); | |
function withdraw_admin_fees() external; | |
function donate_admin_fees() external; | |
function kill_me() external; | |
function unkill_me() external; | |
function coins(uint256 arg0) external view returns (address); | |
function balances(uint256 arg0) external view returns (uint256); | |
function fee() external view returns (uint256); | |
function admin_fee() external view returns (uint256); | |
function owner() external view returns (address); | |
function initial_A() external view returns (uint256); | |
function future_A() external view returns (uint256); | |
function initial_A_time() external view returns (uint256); | |
function future_A_time() external view returns (uint256); | |
function admin_actions_deadline() external view returns (uint256); | |
function transfer_ownership_deadline() external view returns (uint256); | |
function future_fee() external view returns (uint256); | |
function future_admin_fee() external view returns (uint256); | |
function future_owner() external view returns (address); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment