Module brontes_classifier::CurveBase4
source · Expand description
Generated by the following Solidity interface…
interface CurveBase4 {
event AddLiquidity(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 invariant, uint256 token_supply);
event CommitNewAdmin(uint256 indexed deadline, address indexed admin);
event CommitNewParameters(uint256 indexed deadline, uint256 A, uint256 fee, uint256 admin_fee);
event NewAdmin(address indexed admin);
event NewParameters(uint256 A, uint256 fee, uint256 admin_fee);
event RemoveLiquidity(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 token_supply);
event RemoveLiquidityImbalance(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 invariant, uint256 token_supply);
event TokenExchange(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought);
event TokenExchangeUnderlying(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought);
constructor(address[4] _coins, address[4] _underlying_coins, address _pool_token, uint256 _A, uint256 _fee);
function A() external view returns (uint256 out);
function add_liquidity(uint256[4] memory amounts, uint256 min_mint_amount) external;
function admin_actions_deadline() external view returns (uint256 out);
function admin_fee() external view returns (uint256 out);
function apply_new_parameters() external;
function apply_transfer_ownership() external;
function balances(int128 arg0) external view returns (uint256 out);
function calc_token_amount(uint256[4] memory amounts, bool deposit) external view returns (uint256 out);
function coins(int128 arg0) external view returns (address out);
function commit_new_parameters(uint256 amplification, 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 exchange_underlying(int128 i, int128 j, uint256 dx, uint256 min_dy) external;
function fee() external view returns (uint256 out);
function future_A() external view returns (uint256 out);
function future_admin_fee() external view returns (uint256 out);
function future_fee() external view returns (uint256 out);
function future_owner() external view returns (address out);
function get_dx(int128 i, int128 j, uint256 dy) external view returns (uint256 out);
function get_dx_underlying(int128 i, int128 j, uint256 dy) external view returns (uint256 out);
function get_dy(int128 i, int128 j, uint256 dx) external view returns (uint256 out);
function get_dy_underlying(int128 i, int128 j, uint256 dx) external view returns (uint256 out);
function get_virtual_price() external view returns (uint256 out);
function kill_me() external;
function owner() external view returns (address out);
function remove_liquidity(uint256 _amount, uint256[4] memory min_amounts) external;
function remove_liquidity_imbalance(uint256[4] memory amounts, uint256 max_burn_amount) external;
function revert_new_parameters() external;
function revert_transfer_ownership() external;
function transfer_ownership_deadline() external view returns (uint256 out);
function underlying_coins(int128 arg0) external view returns (address out);
function unkill_me() external;
function withdraw_admin_fees() external;
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "_coins",
"type": "address[4]"
},
{
"name": "_underlying_coins",
"type": "address[4]"
},
{
"name": "_pool_token",
"type": "address"
},
{
"name": "_A",
"type": "uint256"
},
{
"name": "_fee",
"type": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "A",
"inputs": [],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "add_liquidity",
"inputs": [
{
"name": "amounts",
"type": "uint256[4]"
},
{
"name": "min_mint_amount",
"type": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "admin_actions_deadline",
"inputs": [],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "admin_fee",
"inputs": [],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "apply_new_parameters",
"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": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "calc_token_amount",
"inputs": [
{
"name": "amounts",
"type": "uint256[4]"
},
{
"name": "deposit",
"type": "bool"
}
],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "coins",
"inputs": [
{
"name": "arg0",
"type": "int128"
}
],
"outputs": [
{
"name": "out",
"type": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "commit_new_parameters",
"inputs": [
{
"name": "amplification",
"type": "uint256"
},
{
"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": "exchange_underlying",
"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": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "future_A",
"inputs": [],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "future_admin_fee",
"inputs": [],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "future_fee",
"inputs": [],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "future_owner",
"inputs": [],
"outputs": [
{
"name": "out",
"type": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "get_dx",
"inputs": [
{
"name": "i",
"type": "int128"
},
{
"name": "j",
"type": "int128"
},
{
"name": "dy",
"type": "uint256"
}
],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "get_dx_underlying",
"inputs": [
{
"name": "i",
"type": "int128"
},
{
"name": "j",
"type": "int128"
},
{
"name": "dy",
"type": "uint256"
}
],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "get_dy",
"inputs": [
{
"name": "i",
"type": "int128"
},
{
"name": "j",
"type": "int128"
},
{
"name": "dx",
"type": "uint256"
}
],
"outputs": [
{
"name": "out",
"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": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "get_virtual_price",
"inputs": [],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "kill_me",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "out",
"type": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "remove_liquidity",
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "min_amounts",
"type": "uint256[4]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "remove_liquidity_imbalance",
"inputs": [
{
"name": "amounts",
"type": "uint256[4]"
},
{
"name": "max_burn_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": "transfer_ownership_deadline",
"inputs": [],
"outputs": [
{
"name": "out",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "underlying_coins",
"inputs": [
{
"name": "arg0",
"type": "int128"
}
],
"outputs": [
{
"name": "out",
"type": "address"
}
],
"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[4]",
"indexed": false
},
{
"name": "fees",
"type": "uint256[4]",
"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": "CommitNewParameters",
"inputs": [
{
"name": "deadline",
"type": "uint256",
"indexed": true
},
{
"name": "A",
"type": "uint256",
"indexed": false
},
{
"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": "NewParameters",
"inputs": [
{
"name": "A",
"type": "uint256",
"indexed": false
},
{
"name": "fee",
"type": "uint256",
"indexed": false
},
{
"name": "admin_fee",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "RemoveLiquidity",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": true
},
{
"name": "token_amounts",
"type": "uint256[4]",
"indexed": false
},
{
"name": "fees",
"type": "uint256[4]",
"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[4]",
"indexed": false
},
{
"name": "fees",
"type": "uint256[4]",
"indexed": false
},
{
"name": "invariant",
"type": "uint256",
"indexed": false
},
{
"name": "token_supply",
"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
},
{
"type": "event",
"name": "TokenExchangeUnderlying",
"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[4],uint256[4],uint256,uint256)
and selector0x3f1915775e0c9a38a57a7bb7f1f9005f486fb904e1f84aa215364d567319a58d
. - Event with signature
CommitNewAdmin(uint256,address)
and selector0x181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb935
. - Event with signature
CommitNewParameters(uint256,uint256,uint256,uint256)
and selector0x6081daa3b61098baf24d9c69bcd53af932e0635c89c6fd0617534b9ba76a7f73
. - Event with signature
NewAdmin(address)
and selector0x71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c
. - Event with signature
NewParameters(uint256,uint256,uint256)
and selector0x752a27d1853eb7af3ee4ff764f2c4a51619386af721573dd3809e929c39db99e
. - Event with signature
RemoveLiquidity(address,uint256[4],uint256[4],uint256)
and selector0x9878ca375e106f2a43c3b599fc624568131c4c9a4ba66a14563715763be9d59d
. - Event with signature
RemoveLiquidityImbalance(address,uint256[4],uint256[4],uint256,uint256)
and selector0xb964b72f73f5ef5bf0fdc559b2fab9a7b12a39e47817a547f1f0aee47febd602
. - Event with signature
TokenExchange(address,int128,uint256,int128,uint256)
and selector0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140
. - Event with signature
TokenExchangeUnderlying(address,int128,uint256,int128,uint256)
and selector0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b
. - Function with signature
add_liquidity(uint256[4],uint256)
and selector0x029b2f34
. - Container type for the return parameters of the
add_liquidity(uint256[4],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_parameters()
and selector0x2a7dd7cd
. - Container type for the return parameters of the
apply_new_parameters()
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[4],bool)
and selector0xcf701ff7
. - Container type for the return parameters of the
calc_token_amount(uint256[4],bool)
function. - Function with signature
coins(int128)
and selector0x23746eb8
. - Container type for the return parameters of the
coins(int128)
function. - Function with signature
commit_new_parameters(uint256,uint256,uint256)
and selector0xee11f5b6
. - Container type for the return parameters of the
commit_new_parameters(uint256,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
exchange_underlying(int128,int128,uint256,uint256)
and selector0xa6417ed6
. - Container type for the return parameters of the
exchange_underlying(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_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_dx(int128,int128,uint256)
and selector0x67df02ca
. - Container type for the return parameters of the
get_dx(int128,int128,uint256)
function. - Function with signature
get_dx_underlying(int128,int128,uint256)
and selector0x0e71d1b9
. - Container type for the return parameters of the
get_dx_underlying(int128,int128,uint256)
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
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
remove_liquidity(uint256,uint256[4])
and selector0x7d49d875
. - Container type for the return parameters of the
remove_liquidity(uint256,uint256[4])
function. - Function with signature
remove_liquidity_imbalance(uint256[4],uint256)
and selector0x18a7bd76
. - Container type for the return parameters of the
remove_liquidity_imbalance(uint256[4],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
transfer_ownership_deadline()
and selector0xe0a0b586
. - Container type for the return parameters of the
transfer_ownership_deadline()
function. - Function with signature
underlying_coins(int128)
and selector0xb739953e
. - Container type for the return parameters of the
underlying_coins(int128)
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
CurveBase4
function calls. - Container for all the
CurveBase4
events.