Verified contractPartial
BPool
Address0x5df340aee23aee3feedeead6890fa1aaa94c19ed
- Balance
0 ETH
- Transactions
26
- Compiler
solc 0.5.12
- Same code
3,293 more contracts
Details
- Compiler
- solc 0.5.12+commit.7709ece9
- Language
- solidity
- Optimization
- Yes, 2,000 runs
- EVM version
- petersburg
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 10,261,392
- Creation transaction
- 0x61d5a19327…118966af4f
- Main copy (most transactions)
- 0x6b74fb4e…1d22fbfb
Read44
- BONE() → (uint256)
- BPOW_PRECISION() → (uint256)
- EXIT_FEE() → (uint256)
- INIT_POOL_SUPPLY() → (uint256)
- MAX_BOUND_TOKENS() → (uint256)
- MAX_BPOW_BASE() → (uint256)
- MAX_FEE() → (uint256)
- MAX_IN_RATIO() → (uint256)
- MAX_OUT_RATIO() → (uint256)
- MAX_TOTAL_WEIGHT() → (uint256)
- MAX_WEIGHT() → (uint256)
- MIN_BALANCE() → (uint256)
- MIN_BOUND_TOKENS() → (uint256)
- MIN_BPOW_BASE() → (uint256)
- MIN_FEE() → (uint256)
- MIN_WEIGHT() → (uint256)
- allowance(address,address) → (uint256)
- balanceOf(address) → (uint256)
- calcInGivenOut(uint256,uint256,uint256,uint256,uint256,uint256) → (uint256)
- calcOutGivenIn(uint256,uint256,uint256,uint256,uint256,uint256) → (uint256)
- calcPoolInGivenSingleOut(uint256,uint256,uint256,uint256,uint256,uint256) → (uint256)
- calcPoolOutGivenSingleIn(uint256,uint256,uint256,uint256,uint256,uint256) → (uint256)
- calcSingleInGivenPoolOut(uint256,uint256,uint256,uint256,uint256,uint256) → (uint256)
- calcSingleOutGivenPoolIn(uint256,uint256,uint256,uint256,uint256,uint256) → (uint256)
- calcSpotPrice(uint256,uint256,uint256,uint256,uint256) → (uint256)
- decimals() → (uint8)
- getBalance(address) → (uint256)
- getColor() → (bytes32)
- getController() → (address)
- getCurrentTokens() → (address[])
- getDenormalizedWeight(address) → (uint256)
- getFinalTokens() → (address[])
- getNormalizedWeight(address) → (uint256)
- getNumTokens() → (uint256)
- getSpotPrice(address,address) → (uint256)
- getSpotPriceSansFee(address,address) → (uint256)
- getSwapFee() → (uint256)
- getTotalDenormalizedWeight() → (uint256)
- isBound(address) → (bool)
- isFinalized() → (bool)
- isPublicSwap() → (bool)
- name() → (string)
- symbol() → (string)
- totalSupply() → (uint256)
Write21
- approve(address,uint256) → (bool)
- bind(address,uint256,uint256)
- decreaseApproval(address,uint256) → (bool)
- exitPool(uint256,uint256[])
- exitswapExternAmountOut(address,uint256,uint256) → (uint256)
- exitswapPoolAmountIn(address,uint256,uint256) → (uint256)
- finalize()
- gulp(address)
- increaseApproval(address,uint256) → (bool)
- joinPool(uint256,uint256[])
- joinswapExternAmountIn(address,uint256,uint256) → (uint256)
- joinswapPoolAmountOut(address,uint256,uint256) → (uint256)
- rebind(address,uint256,uint256)
- setController(address)
- setPublicSwap(bool)
- setSwapFee(uint256)
- swapExactAmountIn(address,uint256,address,uint256,uint256) → (uint256,uint256)
- swapExactAmountOut(address,uint256,address,uint256,uint256) → (uint256,uint256)
- transfer(address,uint256) → (bool)
- transferFrom(address,address,uint256) → (bool)
- unbind(address)
Events6
- Approval(address,address,uint256)
- LOG_CALL(bytes4,address,bytes)
- LOG_EXIT(address,address,uint256)
- LOG_JOIN(address,address,uint256)
- LOG_SWAP(address,address,address,uint256,uint256)
- Transfer(address,address,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [],
"payable": false,
"stateMutability": "nonpayable"
},
{
"name": "Approval",
"type": "event",
"inputs": [
{
"name": "src",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "dst",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amt",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "LOG_CALL",
"type": "event",
"inputs": [
{
"name": "sig",
"type": "bytes4",
"indexed": true,
"internalType": "bytes4"
},
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": true
},
{
"name": "LOG_EXIT",
"type": "event",
"inputs": [
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenAmountOut",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "LOG_JOIN",
"type": "event",
"inputs": [
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenIn",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenAmountIn",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "LOG_SWAP",
"type": "event",
"inputs": [
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenIn",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenAmountIn",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "tokenAmountOut",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Transfer",
"type": "event",
"inputs": [
{
"name": "src",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "dst",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amt",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "BONE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "BPOW_PRECISION",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "EXIT_FEE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "INIT_POOL_SUPPLY",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MAX_BOUND_TOKENS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MAX_BPOW_BASE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MAX_FEE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MAX_IN_RATIO",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MAX_OUT_RATIO",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MAX_TOTAL_WEIGHT",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MAX_WEIGHT",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MIN_BALANCE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MIN_BOUND_TOKENS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MIN_BPOW_BASE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MIN_FEE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "MIN_WEIGHT",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "allowance",
"type": "function",
"inputs": [
{
"name": "src",
"type": "address",
"internalType": "address"
},
{
"name": "dst",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "approve",
"type": "function",
"inputs": [
{
"name": "dst",
"type": "address",
"internalType": "address"
},
{
"name": "amt",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "balanceOf",
"type": "function",
"inputs": [
{
"name": "whom",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "bind",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "balance",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "denorm",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "calcInGivenOut",
"type": "function",
"inputs": [
{
"name": "tokenBalanceIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenWeightIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenBalanceOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenWeightOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenAmountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "swapFee",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "tokenAmountIn",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "pure"
},
{
"name": "calcOutGivenIn",
"type": "function",
"inputs": [
{
"name": "tokenBalanceIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenWeightIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenBalanceOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenWeightOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenAmountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "swapFee",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "tokenAmountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "pure"
},
{
"name": "calcPoolInGivenSingleOut",
"type": "function",
"inputs": [
{
"name": "tokenBalanceOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenWeightOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "poolSupply",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalWeight",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenAmountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "swapFee",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "poolAmountIn",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "pure"
},
{
"name": "calcPoolOutGivenSingleIn",
"type": "function",
"inputs": [
{
"name": "tokenBalanceIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenWeightIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "poolSupply",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalWeight",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenAmountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "swapFee",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "poolAmountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "pure"
},
{
"name": "calcSingleInGivenPoolOut",
"type": "function",
"inputs": [
{
"name": "tokenBalanceIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenWeightIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "poolSupply",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalWeight",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "poolAmountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "swapFee",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "tokenAmountIn",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "pure"
},
{
"name": "calcSingleOutGivenPoolIn",
"type": "function",
"inputs": [
{
"name": "tokenBalanceOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenWeightOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "poolSupply",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalWeight",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "poolAmountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "swapFee",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "tokenAmountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "pure"
},
{
"name": "calcSpotPrice",
"type": "function",
"inputs": [
{
"name": "tokenBalanceIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenWeightIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenBalanceOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenWeightOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "swapFee",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "spotPrice",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "pure"
},
{
"name": "decimals",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "decreaseApproval",
"type": "function",
"inputs": [
{
"name": "dst",
"type": "address",
"internalType": "address"
},
{
"name": "amt",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "exitPool",
"type": "function",
"inputs": [
{
"name": "poolAmountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minAmountsOut",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "exitswapExternAmountOut",
"type": "function",
"inputs": [
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
},
{
"name": "tokenAmountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxPoolAmountIn",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "poolAmountIn",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "exitswapPoolAmountIn",
"type": "function",
"inputs": [
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
},
{
"name": "poolAmountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minAmountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "tokenAmountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "finalize",
"type": "function",
"inputs": [],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "getBalance",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getColor",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getController",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getCurrentTokens",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getDenormalizedWeight",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getFinalTokens",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getNormalizedWeight",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getNumTokens",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getSpotPrice",
"type": "function",
"inputs": [
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "spotPrice",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getSpotPriceSansFee",
"type": "function",
"inputs": [
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "spotPrice",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getSwapFee",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "getTotalDenormalizedWeight",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "gulp",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "increaseApproval",
"type": "function",
"inputs": [
{
"name": "dst",
"type": "address",
"internalType": "address"
},
{
"name": "amt",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "isBound",
"type": "function",
"inputs": [
{
"name": "t",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "isFinalized",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "isPublicSwap",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "joinPool",
"type": "function",
"inputs": [
{
"name": "poolAmountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxAmountsIn",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "joinswapExternAmountIn",
"type": "function",
"inputs": [
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "tokenAmountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minPoolAmountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "poolAmountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "joinswapPoolAmountOut",
"type": "function",
"inputs": [
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "poolAmountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxAmountIn",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "tokenAmountIn",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "name",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "rebind",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "balance",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "denorm",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setController",
"type": "function",
"inputs": [
{
"name": "manager",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setPublicSwap",
"type": "function",
"inputs": [
{
"name": "public_",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "setSwapFee",
"type": "function",
"inputs": [
{
"name": "swapFee",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "swapExactAmountIn",
"type": "function",
"inputs": [
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "tokenAmountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
},
{
"name": "minAmountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxPrice",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "tokenAmountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "spotPriceAfter",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "swapExactAmountOut",
"type": "function",
"inputs": [
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "maxAmountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
},
{
"name": "tokenAmountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxPrice",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "tokenAmountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "spotPriceAfter",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "symbol",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "totalSupply",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "transfer",
"type": "function",
"inputs": [
{
"name": "dst",
"type": "address",
"internalType": "address"
},
{
"name": "amt",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "transferFrom",
"type": "function",
"inputs": [
{
"name": "src",
"type": "address",
"internalType": "address"
},
{
"name": "dst",
"type": "address",
"internalType": "address"
},
{
"name": "amt",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "unbind",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.