-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathICurvePool.sol
More file actions
80 lines (63 loc) · 2.06 KB
/
ICurvePool.sol
File metadata and controls
80 lines (63 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
pragma solidity ^0.8.13;
interface ICurvePool {
function price_oracle(uint256 k) external view returns (uint256);
function get_virtual_price() external view returns (uint256);
function price_oracle() external view returns (uint256);
function add_liquidity(
uint256[2] memory _amounts,
uint256 _min_mint_amount,
address _receiver
) external returns (uint256);
function add_liquidity(
uint256[] memory _amounts,
uint256 _min_mint_amount,
address _receiver
) external returns (uint256);
function add_liquidity(
uint256[2] memory _amounts,
uint256 _min_mint_amount
) external returns (uint256);
function add_liquidity(
uint256[] memory _amounts,
uint256 _min_mint_amount
) external returns (uint256);
function add_liquidity(
uint256[3] memory _amounts,
uint256 _min_mint_amount,
address _receiver
) external returns (uint256);
function add_liquidity(
uint256[3] memory _amounts,
uint256 _min_mint_amount
) external returns (uint256);
function remove_liquidity_one_coin(
uint256 _burn_amount,
int128 i,
uint256 _min_received,
address _receiver
) external returns (uint256);
function coins(uint index) external view returns (address);
function exchange(
uint i,
uint j,
uint dx,
uint min_dy,
bool use_eth,
address receiver
) external payable returns (uint);
function calc_token_amount(
uint256[2] memory _amounts,
bool _is_deposit
) external view returns (uint256);
function calc_token_amount(
uint256[] memory _amounts,
bool _is_deposit
) external view returns (uint256);
function calc_withdraw_one_coin(
uint256 _burn_amount,
int128 i
) external view returns (uint256);
function symbol() external view returns (string memory);
function lp_token() external view returns (address);
function decimals() external view returns (uint256);
}