[
    {
        "name": "TokenExchange",
        "inputs": [
            {
                "name": "buyer",
                "type": "address",
                "indexed": true
            },
            {
                "name": "sold_id",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "tokens_sold",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "bought_id",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "tokens_bought",
                "type": "uint256",
                "indexed": false
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "name": "AddLiquidity",
        "inputs": [
            {
                "name": "provider",
                "type": "address",
                "indexed": true
            },
            {
                "name": "token_amounts",
                "type": "uint256[2]",
                "indexed": false
            },
            {
                "name": "fee",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "token_supply",
                "type": "uint256",
                "indexed": false
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "name": "RemoveLiquidity",
        "inputs": [
            {
                "name": "provider",
                "type": "address",
                "indexed": true
            },
            {
                "name": "token_amounts",
                "type": "uint256[2]",
                "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_index",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "coin_amount",
                "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": "NewAdmin",
        "inputs": [
            {
                "name": "admin",
                "type": "address",
                "indexed": true
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "name": "CommitNewParameters",
        "inputs": [
            {
                "name": "deadline",
                "type": "uint256",
                "indexed": true
            },
            {
                "name": "admin_fee",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "mid_fee",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "out_fee",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "fee_gamma",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "allowed_extra_profit",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "adjustment_step",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "ma_half_time",
                "type": "uint256",
                "indexed": false
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "name": "NewParameters",
        "inputs": [
            {
                "name": "admin_fee",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "mid_fee",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "out_fee",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "fee_gamma",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "allowed_extra_profit",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "adjustment_step",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "ma_half_time",
                "type": "uint256",
                "indexed": false
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "name": "RampAgamma",
        "inputs": [
            {
                "name": "initial_A",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "future_A",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "initial_gamma",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "future_gamma",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "initial_time",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "future_time",
                "type": "uint256",
                "indexed": false
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "name": "StopRampA",
        "inputs": [
            {
                "name": "current_A",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "current_gamma",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "time",
                "type": "uint256",
                "indexed": false
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "name": "ClaimAdminFee",
        "inputs": [
            {
                "name": "admin",
                "type": "address",
                "indexed": true
            },
            {
                "name": "tokens",
                "type": "uint256",
                "indexed": false
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "stateMutability": "nonpayable",
        "type": "constructor",
        "inputs": [
            {
                "name": "owner",
                "type": "address"
            },
            {
                "name": "admin_fee_receiver",
                "type": "address"
            },
            {
                "name": "A",
                "type": "uint256"
            },
            {
                "name": "gamma",
                "type": "uint256"
            },
            {
                "name": "mid_fee",
                "type": "uint256"
            },
            {
                "name": "out_fee",
                "type": "uint256"
            },
            {
                "name": "allowed_extra_profit",
                "type": "uint256"
            },
            {
                "name": "fee_gamma",
                "type": "uint256"
            },
            {
                "name": "adjustment_step",
                "type": "uint256"
            },
            {
                "name": "admin_fee",
                "type": "uint256"
            },
            {
                "name": "ma_half_time",
                "type": "uint256"
            },
            {
                "name": "initial_price",
                "type": "uint256"
            }
        ],
        "outputs": [],
        "name": "constructor"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "token",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "gas": "426"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "coins",
        "inputs": [
            {
                "name": "i",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "gas": "558"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "A",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "595"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "gamma",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "6499"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "9743"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "get_virtual_price",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "360707"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "exchange",
        "inputs": [
            {
                "name": "i",
                "type": "uint256"
            },
            {
                "name": "j",
                "type": "uint256"
            },
            {
                "name": "dx",
                "type": "uint256"
            },
            {
                "name": "min_dy",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "16670379"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "get_dy",
        "inputs": [
            {
                "name": "i",
                "type": "uint256"
            },
            {
                "name": "j",
                "type": "uint256"
            },
            {
                "name": "dx",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "4557895"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "add_liquidity",
        "inputs": [
            {
                "name": "amounts",
                "type": "uint256[2]"
            },
            {
                "name": "min_mint_amount",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "17621237"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "remove_liquidity",
        "inputs": [
            {
                "name": "_amount",
                "type": "uint256"
            },
            {
                "name": "min_amounts",
                "type": "uint256[2]"
            }
        ],
        "outputs": [],
        "gas": "174292"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "calc_token_amount",
        "inputs": [
            {
                "name": "amounts",
                "type": "uint256[2]"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "5182497"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "calc_withdraw_one_coin",
        "inputs": [
            {
                "name": "token_amount",
                "type": "uint256"
            },
            {
                "name": "i",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "7264"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "remove_liquidity_one_coin",
        "inputs": [
            {
                "name": "token_amount",
                "type": "uint256"
            },
            {
                "name": "i",
                "type": "uint256"
            },
            {
                "name": "min_amount",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "16601846"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "claim_admin_fees",
        "inputs": [],
        "outputs": [],
        "gas": "3226971"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "ramp_A_gamma",
        "inputs": [
            {
                "name": "future_A",
                "type": "uint256"
            },
            {
                "name": "future_gamma",
                "type": "uint256"
            },
            {
                "name": "future_time",
                "type": "uint256"
            }
        ],
        "outputs": [],
        "gas": "153778"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "stop_ramp_A_gamma",
        "inputs": [],
        "outputs": [],
        "gas": "150123"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "commit_new_parameters",
        "inputs": [
            {
                "name": "_new_mid_fee",
                "type": "uint256"
            },
            {
                "name": "_new_out_fee",
                "type": "uint256"
            },
            {
                "name": "_new_admin_fee",
                "type": "uint256"
            },
            {
                "name": "_new_fee_gamma",
                "type": "uint256"
            },
            {
                "name": "_new_allowed_extra_profit",
                "type": "uint256"
            },
            {
                "name": "_new_adjustment_step",
                "type": "uint256"
            },
            {
                "name": "_new_ma_half_time",
                "type": "uint256"
            }
        ],
        "outputs": [],
        "gas": "293264"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "apply_new_parameters",
        "inputs": [],
        "outputs": [],
        "gas": "3504861"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "revert_new_parameters",
        "inputs": [],
        "outputs": [],
        "gas": "21722"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "commit_transfer_ownership",
        "inputs": [
            {
                "name": "_owner",
                "type": "address"
            }
        ],
        "outputs": [],
        "gas": "76107"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "apply_transfer_ownership",
        "inputs": [],
        "outputs": [],
        "gas": "61722"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "revert_transfer_ownership",
        "inputs": [],
        "outputs": [],
        "gas": "21812"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "kill_me",
        "inputs": [],
        "outputs": [],
        "gas": "37735"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "unkill_me",
        "inputs": [],
        "outputs": [],
        "gas": "21872"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "set_admin_fee_receiver",
        "inputs": [
            {
                "name": "_admin_fee_receiver",
                "type": "address"
            }
        ],
        "outputs": [],
        "gas": "37062"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "price_scale",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "1976"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "price_oracle",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2006"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "last_prices",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2036"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "last_prices_timestamp",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2066"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "initial_A_gamma",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2096"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_A_gamma",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2126"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "initial_A_gamma_time",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2156"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_A_gamma_time",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2186"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "allowed_extra_profit",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2216"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_allowed_extra_profit",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2246"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "fee_gamma",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2276"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_fee_gamma",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2306"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "adjustment_step",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2336"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_adjustment_step",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2366"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "ma_half_time",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2396"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_ma_half_time",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2426"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "mid_fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2456"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "out_fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2486"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "admin_fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2516"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_mid_fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2546"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_out_fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2576"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_admin_fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2606"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "balances",
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2681"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "D",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2666"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "owner",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "gas": "2696"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_owner",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "gas": "2726"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "xcp_profit",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2756"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "xcp_profit_a",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2786"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "virtual_price",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2816"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "is_killed",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "bool"
            }
        ],
        "gas": "2846"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "kill_deadline",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2876"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "transfer_ownership_deadline",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2906"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "admin_actions_deadline",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2936"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "admin_fee_receiver",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "gas": "2966"
    }
]
