Module brontes_classifier::CurveBase3
source · Expand description
Generated by the following Solidity interface…
interface CurveBase3 {
event AddLiquidity(address indexed provider, uint256[3] token_amounts, uint256[3] fees, uint256 invariant, uint256 token_supply);
event CommitNewAdmin(uint256 indexed deadline, address indexed admin);
event CommitNewFee(uint256 indexed deadline, uint256 fee, uint256 admin_fee);
event NewAdmin(address indexed admin);
event NewFee(uint256 fee, uint256 admin_fee);
event RampA(uint256 old_A, uint256 new_A, uint256 initial_time, uint256 future_time);
event RemoveLiquidity(address indexed provider, uint256[3] token_amounts, uint256[3] fees, uint256 token_supply);
event RemoveLiquidityImbalance(address indexed provider, uint256[3] token_amounts, uint256[3] fees, uint256 invariant, uint256 token_supply);
event RemoveLiquidityOne(address indexed provider, uint256 token_amount, uint256 coin_amount);
event StopRampA(uint256 A, uint256 t);
event TokenExchange(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought);
constructor(address[3] _coins, address _pool_token, uint256 _A, uint256 _fee);
function A() external view returns (uint256);
function add_liquidity(uint256[3] memory amounts, uint256 min_mint_amount) external;
function admin_actions_deadline() external view returns (uint256);
function admin_fee() external view returns (uint256);
function apply_new_fee() external;
function apply_transfer_ownership() external;
function balances(int128 arg0) external view returns (uint256);
function calc_token_amount(uint256[3] memory amounts, bool deposit) external view returns (uint256);
function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external view returns (uint256);
function coins(int128 arg0) external view returns (address);
function commit_new_fee(uint256 new_fee, uint256 new_admin_fee) external;
function commit_transfer_ownership(address _owner) external;
function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) external;
function fee() external view returns (uint256);
function future_A() external view returns (uint256);
function future_A_time() external view returns (uint256);
function future_admin_fee() external view returns (uint256);
function future_fee() external view returns (uint256);
function future_owner() external view returns (address);
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 get_virtual_price() external view returns (uint256);
function initial_A() external view returns (uint256);
function initial_A_time() external view returns (uint256);
function kill_me() external;
function owner() external view returns (address);
function ramp_A(uint256 _future_A, uint256 _future_time) external;
function remove_liquidity(uint256 _amount, uint256[3] memory min_amounts) external;
function remove_liquidity_imbalance(uint256[3] memory amounts, uint256 max_burn_amount) external;
function remove_liquidity_one_coin(uint256 _token_amount, int128 i, uint256 min_amount) external;
function revert_new_parameters() external;
function revert_transfer_ownership() external;
function stop_ramp_A() external;
function transfer_ownership_deadline() external view returns (uint256);
function unkill_me() external;
function withdraw_admin_fees() external;
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "_coins",
"type": "address[3]"
},
{
"name": "_pool_token",
"type": "address"
},
{
"name": "_A",
"type": "uint256"
},
{
"name": "_fee",
"type": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "A",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "add_liquidity",
"inputs": [
{
"name": "amounts",
"type": "uint256[3]"
},
{
"name": "min_mint_amount",
"type": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "admin_actions_deadline",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "admin_fee",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "apply_new_fee",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "apply_transfer_ownership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "balances",
"inputs": [
{
"name": "arg0",
"type": "int128"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "calc_token_amount",
"inputs": [
{
"name": "amounts",
"type": "uint256[3]"
},
{
"name": "deposit",
"type": "bool"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "calc_withdraw_one_coin",
"inputs": [
{
"name": "_token_amount",
"type": "uint256"
},
{
"name": "i",
"type": "int128"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "coins",
"inputs": [
{
"name": "arg0",
"type": "int128"
}
],
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "commit_new_fee",
"inputs": [
{
"name": "new_fee",
"type": "uint256"
},
{
"name": "new_admin_fee",
"type": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "commit_transfer_ownership",
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "exchange",
"inputs": [
{
"name": "i",
"type": "int128"
},
{
"name": "j",
"type": "int128"
},
{
"name": "dx",
"type": "uint256"
},
{
"name": "min_dy",
"type": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "fee",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "future_A",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "future_A_time",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "future_admin_fee",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "future_fee",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "future_owner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "get_dy",
"inputs": [
{
"name": "i",
"type": "int128"
},
{
"name": "j",
"type": "int128"
},
{
"name": "dx",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "get_dy_underlying",
"inputs": [
{
"name": "i",
"type": "int128"
},
{
"name": "j",
"type": "int128"
},
{
"name": "dx",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "get_virtual_price",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initial_A",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initial_A_time",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "kill_me",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ramp_A",
"inputs": [
{
"name": "_future_A",
"type": "uint256"
},
{
"name": "_future_time",
"type": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "remove_liquidity",
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "min_amounts",
"type": "uint256[3]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "remove_liquidity_imbalance",
"inputs": [
{
"name": "amounts",
"type": "uint256[3]"
},
{
"name": "max_burn_amount",
"type": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "remove_liquidity_one_coin",
"inputs": [
{
"name": "_token_amount",
"type": "uint256"
},
{
"name": "i",
"type": "int128"
},
{
"name": "min_amount",
"type": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "revert_new_parameters",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "revert_transfer_ownership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "stop_ramp_A",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transfer_ownership_deadline",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "unkill_me",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "withdraw_admin_fees",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "AddLiquidity",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true
},
{
"name": "token_amounts",
"type": "uint256[3]",
"indexed": false
},
{
"name": "fees",
"type": "uint256[3]",
"indexed": false
},
{
"name": "invariant",
"type": "uint256",
"indexed": false
},
{
"name": "token_supply",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "CommitNewAdmin",
"inputs": [
{
"name": "deadline",
"type": "uint256",
"indexed": true
},
{
"name": "admin",
"type": "address",
"indexed": true
}
],
"anonymous": false
},
{
"type": "event",
"name": "CommitNewFee",
"inputs": [
{
"name": "deadline",
"type": "uint256",
"indexed": true
},
{
"name": "fee",
"type": "uint256",
"indexed": false
},
{
"name": "admin_fee",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "NewAdmin",
"inputs": [
{
"name": "admin",
"type": "address",
"indexed": true
}
],
"anonymous": false
},
{
"type": "event",
"name": "NewFee",
"inputs": [
{
"name": "fee",
"type": "uint256",
"indexed": false
},
{
"name": "admin_fee",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "RampA",
"inputs": [
{
"name": "old_A",
"type": "uint256",
"indexed": false
},
{
"name": "new_A",
"type": "uint256",
"indexed": false
},
{
"name": "initial_time",
"type": "uint256",
"indexed": false
},
{
"name": "future_time",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "RemoveLiquidity",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true
},
{
"name": "token_amounts",
"type": "uint256[3]",
"indexed": false
},
{
"name": "fees",
"type": "uint256[3]",
"indexed": false
},
{
"name": "token_supply",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "RemoveLiquidityImbalance",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true
},
{
"name": "token_amounts",
"type": "uint256[3]",
"indexed": false
},
{
"name": "fees",
"type": "uint256[3]",
"indexed": false
},
{
"name": "invariant",
"type": "uint256",
"indexed": false
},
{
"name": "token_supply",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "RemoveLiquidityOne",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true
},
{
"name": "token_amount",
"type": "uint256",
"indexed": false
},
{
"name": "coin_amount",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "StopRampA",
"inputs": [
{
"name": "A",
"type": "uint256",
"indexed": false
},
{
"name": "t",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "TokenExchange",
"inputs": [
{
"name": "buyer",
"type": "address",
"indexed": true
},
{
"name": "sold_id",
"type": "int128",
"indexed": false
},
{
"name": "tokens_sold",
"type": "uint256",
"indexed": false
},
{
"name": "bought_id",
"type": "int128",
"indexed": false
},
{
"name": "tokens_bought",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
}
]
Structs§
- Function with signature
A()
and selector0xf446c1d0
. - Container type for the return parameters of the
A()
function. - Event with signature
AddLiquidity(address,uint256[3],uint256[3],uint256,uint256)
and selector0x423f6495a08fc652425cf4ed0d1f9e37e571d9b9529b1c1c23cce780b2e7df0d
. - Event with signature
CommitNewAdmin(uint256,address)
and selector0x181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb935
. - Event with signature
CommitNewFee(uint256,uint256,uint256)
and selector0x351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe0
. - Event with signature
NewAdmin(address)
and selector0x71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c
. - Event with signature
NewFee(uint256,uint256)
and selector0xbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d1
. - Event with signature
RampA(uint256,uint256,uint256,uint256)
and selector0xa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c254
. - Event with signature
RemoveLiquidity(address,uint256[3],uint256[3],uint256)
and selector0xa49d4cf02656aebf8c771f5a8585638a2a15ee6c97cf7205d4208ed7c1df252d
. - Event with signature
RemoveLiquidityImbalance(address,uint256[3],uint256[3],uint256,uint256)
and selector0x173599dbf9c6ca6f7c3b590df07ae98a45d74ff54065505141e7de6c46a624c2
. - Event with signature
RemoveLiquidityOne(address,uint256,uint256)
and selector0x9e96dd3b997a2a257eec4df9bb6eaf626e206df5f543bd963682d143300be310
. - Event with signature
StopRampA(uint256,uint256)
and selector0x46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc201938
. - Event with signature
TokenExchange(address,int128,uint256,int128,uint256)
and selector0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140
. - Function with signature
add_liquidity(uint256[3],uint256)
and selector0x4515cef3
. - Container type for the return parameters of the
add_liquidity(uint256[3],uint256)
function. - Function with signature
admin_actions_deadline()
and selector0x405e28f8
. - Container type for the return parameters of the
admin_actions_deadline()
function. - Function with signature
admin_fee()
and selector0xfee3f7f9
. - Container type for the return parameters of the
admin_fee()
function. - Function with signature
apply_new_fee()
and selector0x4f12fe97
. - Container type for the return parameters of the
apply_new_fee()
function. - Function with signature
apply_transfer_ownership()
and selector0x6a1c05ae
. - Container type for the return parameters of the
apply_transfer_ownership()
function. - Function with signature
balances(int128)
and selector0x065a80d8
. - Container type for the return parameters of the
balances(int128)
function. - Function with signature
calc_token_amount(uint256[3],bool)
and selector0x3883e119
. - Container type for the return parameters of the
calc_token_amount(uint256[3],bool)
function. - Function with signature
calc_withdraw_one_coin(uint256,int128)
and selector0xcc2b27d7
. - Container type for the return parameters of the
calc_withdraw_one_coin(uint256,int128)
function. - Function with signature
coins(int128)
and selector0x23746eb8
. - Container type for the return parameters of the
coins(int128)
function. - Function with signature
commit_new_fee(uint256,uint256)
and selector0x5b5a1467
. - Container type for the return parameters of the
commit_new_fee(uint256,uint256)
function. - Function with signature
commit_transfer_ownership(address)
and selector0x6b441a40
. - Container type for the return parameters of the
commit_transfer_ownership(address)
function. - Constructor`.
- Function with signature
exchange(int128,int128,uint256,uint256)
and selector0x3df02124
. - Container type for the return parameters of the
exchange(int128,int128,uint256,uint256)
function. - Function with signature
fee()
and selector0xddca3f43
. - Container type for the return parameters of the
fee()
function. - Function with signature
future_A()
and selector0xb4b577ad
. - Container type for the return parameters of the
future_A()
function. - Function with signature
future_A_time()
and selector0x14052288
. - Container type for the return parameters of the
future_A_time()
function. - Function with signature
future_admin_fee()
and selector0xe3824462
. - Container type for the return parameters of the
future_admin_fee()
function. - Function with signature
future_fee()
and selector0x58680d0b
. - Container type for the return parameters of the
future_fee()
function. - Function with signature
future_owner()
and selector0x1ec0cdc1
. - Container type for the return parameters of the
future_owner()
function. - Function with signature
get_dy(int128,int128,uint256)
and selector0x5e0d443f
. - Container type for the return parameters of the
get_dy(int128,int128,uint256)
function. - Function with signature
get_dy_underlying(int128,int128,uint256)
and selector0x07211ef7
. - Container type for the return parameters of the
get_dy_underlying(int128,int128,uint256)
function. - Function with signature
get_virtual_price()
and selector0xbb7b8b80
. - Container type for the return parameters of the
get_virtual_price()
function. - Function with signature
initial_A()
and selector0x5409491a
. - Container type for the return parameters of the
initial_A()
function. - Function with signature
initial_A_time()
and selector0x2081066c
. - Container type for the return parameters of the
initial_A_time()
function. - Function with signature
kill_me()
and selector0xe3698853
. - Container type for the return parameters of the
kill_me()
function. - Function with signature
owner()
and selector0x8da5cb5b
. - Container type for the return parameters of the
owner()
function. - Function with signature
ramp_A(uint256,uint256)
and selector0x3c157e64
. - Container type for the return parameters of the
ramp_A(uint256,uint256)
function. - Function with signature
remove_liquidity(uint256,uint256[3])
and selector0xecb586a5
. - Container type for the return parameters of the
remove_liquidity(uint256,uint256[3])
function. - Function with signature
remove_liquidity_imbalance(uint256[3],uint256)
and selector0x9fdaea0c
. - Container type for the return parameters of the
remove_liquidity_imbalance(uint256[3],uint256)
function. - Function with signature
remove_liquidity_one_coin(uint256,int128,uint256)
and selector0x1a4d01d2
. - Container type for the return parameters of the
remove_liquidity_one_coin(uint256,int128,uint256)
function. - Function with signature
revert_new_parameters()
and selector0x226840fb
. - Container type for the return parameters of the
revert_new_parameters()
function. - Function with signature
revert_transfer_ownership()
and selector0x86fbf193
. - Container type for the return parameters of the
revert_transfer_ownership()
function. - Function with signature
stop_ramp_A()
and selector0x551a6588
. - Container type for the return parameters of the
stop_ramp_A()
function. - Function with signature
transfer_ownership_deadline()
and selector0xe0a0b586
. - Container type for the return parameters of the
transfer_ownership_deadline()
function. - Function with signature
unkill_me()
and selector0x3046f972
. - Container type for the return parameters of the
unkill_me()
function. - Function with signature
withdraw_admin_fees()
and selector0x30c54085
. - Container type for the return parameters of the
withdraw_admin_fees()
function.
Enums§
- Container for all the
CurveBase3
function calls. - Container for all the
CurveBase3
events.