[
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "buyer",
                "type": "address"
            },
            {
                "indexed": false,
                "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"
            }
        ],
        "name": "TokenExchange",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "buyer",
                "type": "address"
            },
            {
                "indexed": false,
                "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"
            }
        ],
        "name": "TokenExchangeUnderlying",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "provider",
                "type": "address"
            },
            {
                "indexed": false,
                "name": "token_amounts",
                "type": "uint256[2]"
            },
            {
                "indexed": false,
                "name": "fees",
                "type": "uint256[2]"
            },
            {
                "indexed": false,
                "name": "invariant",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "token_supply",
                "type": "uint256"
            }
        ],
        "name": "AddLiquidity",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "provider",
                "type": "address"
            },
            {
                "indexed": false,
                "name": "token_amounts",
                "type": "uint256[2]"
            },
            {
                "indexed": false,
                "name": "fees",
                "type": "uint256[2]"
            },
            {
                "indexed": false,
                "name": "token_supply",
                "type": "uint256"
            }
        ],
        "name": "RemoveLiquidity",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "provider",
                "type": "address"
            },
            {
                "indexed": false,
                "name": "token_amount",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "coin_amount",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "token_supply",
                "type": "uint256"
            }
        ],
        "name": "RemoveLiquidityOne",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "provider",
                "type": "address"
            },
            {
                "indexed": false,
                "name": "token_amounts",
                "type": "uint256[2]"
            },
            {
                "indexed": false,
                "name": "fees",
                "type": "uint256[2]"
            },
            {
                "indexed": false,
                "name": "invariant",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "token_supply",
                "type": "uint256"
            }
        ],
        "name": "RemoveLiquidityImbalance",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "deadline",
                "type": "uint256"
            },
            {
                "indexed": true,
                "name": "admin",
                "type": "address"
            }
        ],
        "name": "CommitNewAdmin",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "admin",
                "type": "address"
            }
        ],
        "name": "NewAdmin",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "deadline",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "fee",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "admin_fee",
                "type": "uint256"
            }
        ],
        "name": "CommitNewFee",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "name": "fee",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "admin_fee",
                "type": "uint256"
            }
        ],
        "name": "NewFee",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "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"
            }
        ],
        "name": "RampA",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "name": "A",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "t",
                "type": "uint256"
            }
        ],
        "name": "StopRampA",
        "type": "event"
    },
    {
        "inputs": [
            {
                "name": "_owner",
                "type": "address"
            },
            {
                "name": "_coins",
                "type": "address[2]"
            },
            {
                "name": "_pool_token",
                "type": "address"
            },
            {
                "name": "_base_pool",
                "type": "address"
            },
            {
                "name": "_A",
                "type": "uint256"
            },
            {
                "name": "_fee",
                "type": "uint256"
            },
            {
                "name": "_admin_fee",
                "type": "uint256"
            }
        ],
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "constructor"
    },
    {
        "gas": 5199,
        "inputs": [],
        "name": "A",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 5161,
        "inputs": [],
        "name": "A_precise",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 992460,
        "inputs": [],
        "name": "get_virtual_price",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3938567,
        "inputs": [
            {
                "name": "amounts",
                "type": "uint256[2]"
            },
            {
                "name": "is_deposit",
                "type": "bool"
            }
        ],
        "name": "calc_token_amount",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 6136485,
        "inputs": [
            {
                "name": "amounts",
                "type": "uint256[2]"
            },
            {
                "name": "min_mint_amount",
                "type": "uint256"
            }
        ],
        "name": "add_liquidity",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 2390018,
        "inputs": [
            {
                "name": "i",
                "type": "int128"
            },
            {
                "name": "j",
                "type": "int128"
            },
            {
                "name": "dx",
                "type": "uint256"
            }
        ],
        "name": "get_dy",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2393224,
        "inputs": [
            {
                "name": "i",
                "type": "int128"
            },
            {
                "name": "j",
                "type": "int128"
            },
            {
                "name": "dx",
                "type": "uint256"
            }
        ],
        "name": "get_dy_underlying",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2617039,
        "inputs": [
            {
                "name": "i",
                "type": "int128"
            },
            {
                "name": "j",
                "type": "int128"
            },
            {
                "name": "dx",
                "type": "uint256"
            },
            {
                "name": "min_dy",
                "type": "uint256"
            }
        ],
        "name": "exchange",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 2631854,
        "inputs": [
            {
                "name": "i",
                "type": "int128"
            },
            {
                "name": "j",
                "type": "int128"
            },
            {
                "name": "dx",
                "type": "uint256"
            },
            {
                "name": "min_dy",
                "type": "uint256"
            }
        ],
        "name": "exchange_underlying",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 163158,
        "inputs": [
            {
                "name": "_amount",
                "type": "uint256"
            },
            {
                "name": "min_amounts",
                "type": "uint256[2]"
            }
        ],
        "name": "remove_liquidity",
        "outputs": [
            {
                "name": "",
                "type": "uint256[2]"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 6136334,
        "inputs": [
            {
                "name": "amounts",
                "type": "uint256[2]"
            },
            {
                "name": "max_burn_amount",
                "type": "uint256"
            }
        ],
        "name": "remove_liquidity_imbalance",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 4389,
        "inputs": [
            {
                "name": "_token_amount",
                "type": "uint256"
            },
            {
                "name": "i",
                "type": "int128"
            }
        ],
        "name": "calc_withdraw_one_coin",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3826262,
        "inputs": [
            {
                "name": "_token_amount",
                "type": "uint256"
            },
            {
                "name": "i",
                "type": "int128"
            },
            {
                "name": "_min_amount",
                "type": "uint256"
            }
        ],
        "name": "remove_liquidity_one_coin",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 151894,
        "inputs": [
            {
                "name": "_future_A",
                "type": "uint256"
            },
            {
                "name": "_future_time",
                "type": "uint256"
            }
        ],
        "name": "ramp_A",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 148655,
        "inputs": [],
        "name": "stop_ramp_A",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 110491,
        "inputs": [
            {
                "name": "new_fee",
                "type": "uint256"
            },
            {
                "name": "new_admin_fee",
                "type": "uint256"
            }
        ],
        "name": "commit_new_fee",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 97272,
        "inputs": [],
        "name": "apply_new_fee",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 21925,
        "inputs": [],
        "name": "revert_new_parameters",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 74663,
        "inputs": [
            {
                "name": "_owner",
                "type": "address"
            }
        ],
        "name": "commit_transfer_ownership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 60740,
        "inputs": [],
        "name": "apply_transfer_ownership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 22015,
        "inputs": [],
        "name": "revert_transfer_ownership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 3511,
        "inputs": [
            {
                "name": "i",
                "type": "uint256"
            }
        ],
        "name": "admin_balances",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 9232,
        "inputs": [],
        "name": "withdraw_admin_fees",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 74995,
        "inputs": [],
        "name": "donate_admin_fees",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 38028,
        "inputs": [],
        "name": "kill_me",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 22165,
        "inputs": [],
        "name": "unkill_me",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 2250,
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            }
        ],
        "name": "coins",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2280,
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            }
        ],
        "name": "balances",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2201,
        "inputs": [],
        "name": "fee",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2231,
        "inputs": [],
        "name": "admin_fee",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2261,
        "inputs": [],
        "name": "owner",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2291,
        "inputs": [],
        "name": "token",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2321,
        "inputs": [],
        "name": "base_pool",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2351,
        "inputs": [],
        "name": "base_virtual_price",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2381,
        "inputs": [],
        "name": "base_cache_updated",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2520,
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            }
        ],
        "name": "base_coins",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2441,
        "inputs": [],
        "name": "initial_A",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2471,
        "inputs": [],
        "name": "future_A",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2501,
        "inputs": [],
        "name": "initial_A_time",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2531,
        "inputs": [],
        "name": "future_A_time",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2561,
        "inputs": [],
        "name": "admin_actions_deadline",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2591,
        "inputs": [],
        "name": "transfer_ownership_deadline",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2621,
        "inputs": [],
        "name": "future_fee",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2651,
        "inputs": [],
        "name": "future_admin_fee",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2681,
        "inputs": [],
        "name": "future_owner",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    }
]
