[
    {
        "name": "Transfer",
        "inputs": [
            {
                "name": "sender",
                "type": "address",
                "indexed": true
            },
            {
                "name": "receiver",
                "type": "address",
                "indexed": true
            },
            {
                "name": "value",
                "type": "uint256",
                "indexed": false
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "name": "Approval",
        "inputs": [
            {
                "name": "owner",
                "type": "address",
                "indexed": true
            },
            {
                "name": "spender",
                "type": "address",
                "indexed": true
            },
            {
                "name": "value",
                "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,
        "type": "event"
    },
    {
        "name": "AddLiquidity",
        "inputs": [
            {
                "name": "provider",
                "type": "address",
                "indexed": true
            },
            {
                "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",
                "indexed": false
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "name": "RemoveLiquidity",
        "inputs": [
            {
                "name": "provider",
                "type": "address",
                "indexed": true
            },
            {
                "name": "token_amounts",
                "type": "uint256[2]",
                "indexed": false
            },
            {
                "name": "fees",
                "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_amount",
                "type": "uint256",
                "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[2]",
                "indexed": false
            },
            {
                "name": "fees",
                "type": "uint256[2]",
                "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": "NewAdmin",
        "inputs": [
            {
                "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": "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": "StopRampA",
        "inputs": [
            {
                "name": "A",
                "type": "uint256",
                "indexed": false
            },
            {
                "name": "t",
                "type": "uint256",
                "indexed": false
            }
        ],
        "anonymous": false,
        "type": "event"
    },
    {
        "stateMutability": "nonpayable",
        "type": "constructor",
        "inputs": [
            {
                "name": "_name",
                "type": "string"
            },
            {
                "name": "_symbol",
                "type": "string"
            },
            {
                "name": "_owner",
                "type": "address"
            },
            {
                "name": "_coin",
                "type": "address"
            },
            {
                "name": "_A",
                "type": "uint256"
            },
            {
                "name": "_fee",
                "type": "uint256"
            },
            {
                "name": "_admin_fee",
                "type": "uint256"
            }
        ],
        "outputs": []
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "decimals",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "288"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "transfer",
        "inputs": [
            {
                "name": "_to",
                "type": "address"
            },
            {
                "name": "_value",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "bool"
            }
        ],
        "gas": "75317"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "transferFrom",
        "inputs": [
            {
                "name": "_from",
                "type": "address"
            },
            {
                "name": "_to",
                "type": "address"
            },
            {
                "name": "_value",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "bool"
            }
        ],
        "gas": "111952"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "approve",
        "inputs": [
            {
                "name": "_spender",
                "type": "address"
            },
            {
                "name": "_value",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "bool"
            }
        ],
        "gas": "37821"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "get_previous_balances",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256[2]"
            }
        ],
        "gas": "2221"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "get_balances",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256[2]"
            }
        ],
        "gas": "2251"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "get_twap_balances",
        "inputs": [
            {
                "name": "_first_balances",
                "type": "uint256[2]"
            },
            {
                "name": "_last_balances",
                "type": "uint256[2]"
            },
            {
                "name": "_time_elapsed",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256[2]"
            }
        ],
        "gas": "1489"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "get_price_cumulative_last",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256[2]"
            }
        ],
        "gas": "2311"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "A",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "5654"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "A_precise",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "5616"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "get_virtual_price",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "1010459"
    },
    {
        "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": "calc_token_amount",
        "inputs": [
            {
                "name": "_amounts",
                "type": "uint256[2]"
            },
            {
                "name": "_is_deposit",
                "type": "bool"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ]
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "add_liquidity",
        "inputs": [
            {
                "name": "_amounts",
                "type": "uint256[2]"
            },
            {
                "name": "_min_mint_amount",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ]
    },
    {
        "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": [
            {
                "name": "",
                "type": "uint256"
            }
        ]
    },
    {
        "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": [
            {
                "name": "",
                "type": "uint256"
            }
        ]
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "remove_liquidity",
        "inputs": [
            {
                "name": "_burn_amount",
                "type": "uint256"
            },
            {
                "name": "_min_amounts",
                "type": "uint256[2]"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256[2]"
            }
        ]
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "remove_liquidity_imbalance",
        "inputs": [
            {
                "name": "_amounts",
                "type": "uint256[2]"
            },
            {
                "name": "_max_burn_amount",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ]
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "calc_withdraw_one_coin",
        "inputs": [
            {
                "name": "_burn_amount",
                "type": "uint256"
            },
            {
                "name": "i",
                "type": "int128"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ]
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "remove_liquidity_one_coin",
        "inputs": [
            {
                "name": "_burn_amount",
                "type": "uint256"
            },
            {
                "name": "i",
                "type": "int128"
            },
            {
                "name": "_min_amount",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ]
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "ramp_A",
        "inputs": [
            {
                "name": "_future_A",
                "type": "uint256"
            },
            {
                "name": "_future_time",
                "type": "uint256"
            }
        ],
        "outputs": [],
        "gas": "152079"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "stop_ramp_A",
        "inputs": [],
        "outputs": [],
        "gas": "148840"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "commit_new_fee",
        "inputs": [
            {
                "name": "_new_fee",
                "type": "uint256"
            },
            {
                "name": "_new_admin_fee",
                "type": "uint256"
            }
        ],
        "outputs": [],
        "gas": "110458"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "apply_new_fee",
        "inputs": [],
        "outputs": [],
        "gas": "97239"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "revert_new_parameters",
        "inputs": [],
        "outputs": [],
        "gas": "21892"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "commit_transfer_ownership",
        "inputs": [
            {
                "name": "_owner",
                "type": "address"
            }
        ],
        "outputs": [],
        "gas": "74630"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "apply_transfer_ownership",
        "inputs": [],
        "outputs": [],
        "gas": "60707"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "revert_transfer_ownership",
        "inputs": [],
        "outputs": [],
        "gas": "21982"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "admin_balances",
        "inputs": [
            {
                "name": "i",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "3478"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "withdraw_admin_fees",
        "inputs": [],
        "outputs": [],
        "gas": "10340"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "donate_admin_fees",
        "inputs": [],
        "outputs": [],
        "gas": "74962"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "kill_me",
        "inputs": [],
        "outputs": [],
        "gas": "37995"
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "unkill_me",
        "inputs": [],
        "outputs": [],
        "gas": "22132"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "coins",
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "gas": "2217"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "balances",
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2247"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2168"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "admin_fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2198"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "block_timestamp_last",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2228"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "owner",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "gas": "2258"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "initial_A",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2288"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_A",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2318"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "initial_A_time",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2348"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_A_time",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2378"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "admin_actions_deadline",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2408"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "transfer_ownership_deadline",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2438"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2468"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_admin_fee",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2498"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "future_owner",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "gas": "2528"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "name",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "string"
            }
        ],
        "gas": "8960"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "symbol",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "string"
            }
        ],
        "gas": "8013"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "balanceOf",
        "inputs": [
            {
                "name": "arg0",
                "type": "address"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2833"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "allowance",
        "inputs": [
            {
                "name": "arg0",
                "type": "address"
            },
            {
                "name": "arg1",
                "type": "address"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "3078"
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "totalSupply",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "gas": "2678"
    }
]
