[
    {
        "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": "provider",
                "type": "address"
            },
            {
                "indexed": false,
                "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"
            }
        ],
        "name": "AddLiquidity",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "provider",
                "type": "address"
            },
            {
                "indexed": false,
                "name": "token_amounts",
                "type": "uint256[3]"
            },
            {
                "indexed": false,
                "name": "fees",
                "type": "uint256[3]"
            },
            {
                "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"
            }
        ],
        "name": "RemoveLiquidityOne",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "provider",
                "type": "address"
            },
            {
                "indexed": false,
                "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"
            }
        ],
        "name": "RemoveLiquidityImbalance",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "name": "deadline",
                "type": "uint256",
                "unit": "sec"
            },
            {
                "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",
                "unit": "sec"
            },
            {
                "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",
                "unit": "sec"
            },
            {
                "indexed": false,
                "name": "future_time",
                "type": "uint256",
                "unit": "sec"
            }
        ],
        "name": "RampA",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "name": "A",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "t",
                "type": "uint256",
                "unit": "sec"
            }
        ],
        "name": "StopRampA",
        "type": "event"
    },
    {
        "constant": false,
        "inputs": [
            {
                "name": "_coins",
                "type": "address[3]"
            },
            {
                "name": "_pool_token",
                "type": "address"
            },
            {
                "name": "_A",
                "type": "uint256"
            },
            {
                "name": "_fee",
                "type": "uint256"
            }
        ],
        "outputs": [],
        "payable": false,
        "type": "constructor"
    },
    {
        "constant": true,
        "gas": 5227,
        "inputs": [],
        "name": "A",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 1150488,
        "inputs": [],
        "name": "get_virtual_price",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 4526955,
        "inputs": [
            {
                "name": "amounts",
                "type": "uint256[3]"
            },
            {
                "name": "deposit",
                "type": "bool"
            }
        ],
        "name": "calc_token_amount",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 6972762,
        "inputs": [
            {
                "name": "amounts",
                "type": "uint256[3]"
            },
            {
                "name": "min_mint_amount",
                "type": "uint256"
            }
        ],
        "name": "add_liquidity",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2687932,
        "inputs": [
            {
                "name": "i",
                "type": "int128"
            },
            {
                "name": "j",
                "type": "int128"
            },
            {
                "name": "dx",
                "type": "uint256"
            }
        ],
        "name": "get_dy",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2687745,
        "inputs": [
            {
                "name": "i",
                "type": "int128"
            },
            {
                "name": "j",
                "type": "int128"
            },
            {
                "name": "dx",
                "type": "uint256"
            }
        ],
        "name": "get_dy_underlying",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 5499133,
        "inputs": [
            {
                "name": "i",
                "type": "int128"
            },
            {
                "name": "j",
                "type": "int128"
            },
            {
                "name": "dx",
                "type": "uint256"
            },
            {
                "name": "min_dy",
                "type": "uint256"
            }
        ],
        "name": "exchange",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 196975,
        "inputs": [
            {
                "name": "_amount",
                "type": "uint256"
            },
            {
                "name": "min_amounts",
                "type": "uint256[3]"
            }
        ],
        "name": "remove_liquidity",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 6972281,
        "inputs": [
            {
                "name": "amounts",
                "type": "uint256[3]"
            },
            {
                "name": "max_burn_amount",
                "type": "uint256"
            }
        ],
        "name": "remove_liquidity_imbalance",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 15405,
        "inputs": [
            {
                "name": "_token_amount",
                "type": "uint256"
            },
            {
                "name": "i",
                "type": "int128"
            }
        ],
        "name": "calc_withdraw_one_coin",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 4044074,
        "inputs": [
            {
                "name": "_token_amount",
                "type": "uint256"
            },
            {
                "name": "i",
                "type": "int128"
            },
            {
                "name": "min_amount",
                "type": "uint256"
            }
        ],
        "name": "remove_liquidity_one_coin",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 151937,
        "inputs": [
            {
                "name": "_future_A",
                "type": "uint256"
            },
            {
                "name": "_future_time",
                "type": "uint256",
                "unit": "sec"
            }
        ],
        "name": "ramp_A",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 148697,
        "inputs": [],
        "name": "stop_ramp_A",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 110521,
        "inputs": [
            {
                "name": "new_fee",
                "type": "uint256"
            },
            {
                "name": "new_admin_fee",
                "type": "uint256"
            }
        ],
        "name": "commit_new_fee",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 97220,
        "inputs": [],
        "name": "apply_new_fee",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 21955,
        "inputs": [],
        "name": "revert_new_parameters",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 74632,
        "inputs": [
            {
                "name": "_owner",
                "type": "address"
            }
        ],
        "name": "commit_transfer_ownership",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 60688,
        "inputs": [],
        "name": "apply_transfer_ownership",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 22045,
        "inputs": [],
        "name": "revert_transfer_ownership",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 17565,
        "inputs": [],
        "name": "withdraw_admin_fees",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 37998,
        "inputs": [],
        "name": "kill_me",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": false,
        "gas": 22135,
        "inputs": [],
        "name": "unkill_me",
        "outputs": [],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2310,
        "inputs": [
            {
                "name": "arg0",
                "type": "int128"
            }
        ],
        "name": "coins",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2340,
        "inputs": [
            {
                "name": "arg0",
                "type": "int128"
            }
        ],
        "name": "balances",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2171,
        "inputs": [],
        "name": "fee",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2201,
        "inputs": [],
        "name": "admin_fee",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2231,
        "inputs": [],
        "name": "owner",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2261,
        "inputs": [],
        "name": "initial_A",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2291,
        "inputs": [],
        "name": "future_A",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2321,
        "inputs": [],
        "name": "initial_A_time",
        "outputs": [
            {
                "name": "",
                "type": "uint256",
                "unit": "sec"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2351,
        "inputs": [],
        "name": "future_A_time",
        "outputs": [
            {
                "name": "",
                "type": "uint256",
                "unit": "sec"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2381,
        "inputs": [],
        "name": "admin_actions_deadline",
        "outputs": [
            {
                "name": "",
                "type": "uint256",
                "unit": "sec"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2411,
        "inputs": [],
        "name": "transfer_ownership_deadline",
        "outputs": [
            {
                "name": "",
                "type": "uint256",
                "unit": "sec"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2441,
        "inputs": [],
        "name": "future_fee",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2471,
        "inputs": [],
        "name": "future_admin_fee",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "payable": false,
        "type": "function"
    },
    {
        "constant": true,
        "gas": 2501,
        "inputs": [],
        "name": "future_owner",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "payable": false,
        "type": "function"
    }
]
