[
    {
        "stateMutability": "nonpayable",
        "type": "constructor",
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            },
            {
                "name": "_base_pool",
                "type": "address"
            }
        ],
        "outputs": []
    },
    {
        "stateMutability": "payable",
        "type": "fallback"
    },
    {
        "stateMutability": "payable",
        "type": "function",
        "name": "add_liquidity",
        "inputs": [
            {
                "name": "_amounts",
                "type": "uint256[4]"
            },
            {
                "name": "_min_mint_amount",
                "type": "uint256"
            },
            {
                "name": "use_eth",
                "type": "bool"
            }
        ],
        "outputs": []
    },
    {
        "stateMutability": "payable",
        "type": "function",
        "name": "exchange_underlying",
        "inputs": [
            {
                "name": "i",
                "type": "uint256"
            },
            {
                "name": "j",
                "type": "uint256"
            },
            {
                "name": "_dx",
                "type": "uint256"
            },
            {
                "name": "_min_dy",
                "type": "uint256"
            },
            {
                "name": "use_eth",
                "type": "bool"
            }
        ],
        "outputs": []
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "remove_liquidity",
        "inputs": [
            {
                "name": "_amount",
                "type": "uint256"
            },
            {
                "name": "_min_amounts",
                "type": "uint256[4]"
            },
            {
                "name": "use_eth",
                "type": "bool"
            }
        ],
        "outputs": []
    },
    {
        "stateMutability": "nonpayable",
        "type": "function",
        "name": "remove_liquidity_one_coin",
        "inputs": [
            {
                "name": "_token_amount",
                "type": "uint256"
            },
            {
                "name": "i",
                "type": "uint256"
            },
            {
                "name": "_min_amount",
                "type": "uint256"
            },
            {
                "name": "use_eth",
                "type": "bool"
            }
        ],
        "outputs": []
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "get_dy_underlying",
        "inputs": [
            {
                "name": "i",
                "type": "uint256"
            },
            {
                "name": "j",
                "type": "uint256"
            },
            {
                "name": "_dx",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ]
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "calc_token_amount",
        "inputs": [
            {
                "name": "_amounts",
                "type": "uint256[4]"
            },
            {
                "name": "_is_deposit",
                "type": "bool"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ]
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "calc_withdraw_one_coin",
        "inputs": [
            {
                "name": "token_amount",
                "type": "uint256"
            },
            {
                "name": "i",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ]
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "coins",
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ]
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "underlying_coins",
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            }
        ],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ]
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "pool",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ]
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "base_pool",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ]
    },
    {
        "stateMutability": "view",
        "type": "function",
        "name": "token",
        "inputs": [],
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ]
    }
]
