ocean-subgraph/abis/BPool.json

1715 lines
129 KiB
JSON
Raw Normal View History

2021-11-12 14:22:35 +01:00
{
2021-11-19 15:42:17 +01:00
"_format": "hh-sol-artifact-1",
"contractName": "BPool",
"sourceName": "contracts/pools/balancer/BPool.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "src",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "bptAmount",
"type": "uint256"
}
],
"name": "LOG_BPT",
"type": "event"
},
2021-11-24 15:00:24 +01:00
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "bptAmount",
"type": "uint256"
}
],
"name": "LOG_BPT_SS",
"type": "event"
},
2021-11-19 15:42:17 +01:00
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes4",
"name": "sig",
"type": "bytes4"
},
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "LOG_CALL",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "LOG_EXIT",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "LOG_JOIN",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "baseToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "baseTokenAmountIn",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "baseTokenWeight",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "dataToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "dataTokenAmountIn",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "dataTokenWeight",
"type": "uint256"
}
],
"name": "LOG_SETUP",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "LOG_SWAP",
"type": "event"
},
2021-11-24 15:00:24 +01:00
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newMarketCollector",
"type": "address"
}
],
"name": "MarketCollectorChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "marketAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "MarketFee",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "OPFWallet",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "OPFFee",
"type": "event"
},
2021-11-19 15:42:17 +01:00
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "swapFeeAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "oceanFeeAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "marketFeeAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "tokenFees",
"type": "address"
}
],
"name": "SWAP_FEES",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "src",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [],
"name": "BONE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "BPOW_PRECISION",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "EXIT_FEE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "INIT_POOL_SUPPLY",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_BOUND_TOKENS",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_BPOW_BASE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_FEE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_IN_RATIO",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_OUT_RATIO",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_TOTAL_WEIGHT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_WEIGHT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_BALANCE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_BOUND_TOKENS",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_BPOW_BASE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_FEE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_WEIGHT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_marketCollector",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_opfCollector",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_swapMarketFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "src",
"type": "address"
},
{
"internalType": "address",
"name": "dst",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "whom",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
}
],
"name": "calcPoolInSingleOut",
"outputs": [
{
"internalType": "uint256",
"name": "poolAmountIn",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
}
],
"name": "calcPoolOutSingleIn",
"outputs": [
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
}
],
"name": "calcSingleInPoolOut",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "poolAmountIn",
"type": "uint256"
}
],
"name": "calcSingleOutPoolIn",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
2021-11-24 15:00:24 +01:00
"inputs": [],
2021-11-19 15:42:17 +01:00
"name": "collectMarketFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "collectOPF",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "communityFees",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "decreaseApproval",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "poolAmountIn",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "minAmountsOut",
"type": "uint256[]"
}
],
"name": "exitPool",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPoolAmountIn",
"type": "uint256"
}
],
"name": "exitswapExternAmountOut",
"outputs": [
{
"internalType": "uint256",
"name": "poolAmountIn",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "poolAmountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minAmountOut",
"type": "uint256"
}
],
"name": "exitswapPoolAmountIn",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
}
],
"name": "getAmountInExactOut",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
}
],
"name": "getAmountOutExactIn",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "getBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getBaseTokenAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getController",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
2021-11-24 15:00:24 +01:00
{
"inputs": [],
"name": "getCurrentMarketFees",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getCurrentOPFFees",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
2021-11-19 15:42:17 +01:00
{
"inputs": [],
"name": "getCurrentTokens",
"outputs": [
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDataTokenAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "getDenormalizedWeight",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getFinalTokens",
"outputs": [
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
2021-11-24 15:00:24 +01:00
{
"inputs": [],
"name": "getMarketFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
2021-11-19 15:42:17 +01:00
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "getNormalizedWeight",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNumTokens",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getOPFFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
}
],
"name": "getSpotPrice",
"outputs": [
{
"internalType": "uint256",
"name": "spotPrice",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getSwapFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTotalDenormalizedWeight",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "increaseApproval",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "controller",
"type": "address"
},
{
"internalType": "address",
"name": "factory",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "swapFees",
"type": "uint256[]"
},
{
"internalType": "bool",
"name": "publicSwap",
"type": "bool"
},
{
"internalType": "bool",
"name": "finalized",
"type": "bool"
},
{
"internalType": "address[2]",
"name": "tokens",
"type": "address[2]"
},
{
"internalType": "address[2]",
"name": "feeCollectors",
"type": "address[2]"
}
],
"name": "initialize",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "t",
"type": "address"
}
],
"name": "isBound",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isFinalized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isInitialized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isPublicSwap",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "maxAmountsIn",
"type": "uint256[]"
}
],
"name": "joinPool",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minPoolAmountOut",
"type": "uint256"
}
],
"name": "joinswapExternAmountIn",
"outputs": [
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxAmountIn",
"type": "uint256"
}
],
"name": "joinswapPoolAmountOut",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "marketFees",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "swapFee",
"type": "uint256"
}
],
"name": "setSwapFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dataTokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "dataTokenAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "dataTokenWeight",
"type": "uint256"
},
{
"internalType": "address",
"name": "baseTokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "baseTokenAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "baseTokenWeight",
"type": "uint256"
}
],
"name": "setup",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "minAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPrice",
"type": "uint256"
}
],
"name": "swapExactAmountIn",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "spotPriceAfter",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "maxAmountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPrice",
"type": "uint256"
}
],
"name": "swapExactAmountOut",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "spotPriceAfter",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "src",
"type": "address"
},
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newCollector",
"type": "address"
}
],
"name": "updateMarketFeeCollector",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
2021-11-24 15:00:24 +01:00
"bytecode": "0x60c0604052601360808190527f42616c616e63657220506f6f6c20546f6b656e0000000000000000000000000060a09081526200004091600a91906200008f565b506040805180820190915260038082526210941560ea1b60209092019182526200006d91600b916200008f565b50600c805460ff191660121790553480156200008857600080fd5b5062000172565b8280546200009d9062000135565b90600052602060002090601f016020900481019282620000c157600085556200010c565b82601f10620000dc57805160ff19168380011785556200010c565b828001600101855582156200010c579182015b828111156200010c578251825591602001919060010190620000ef565b506200011a9291506200011e565b5090565b5b808211156200011a57600081556001016200011f565b600181811c908216806200014a57607f821691505b602082108114156200016c57634e487b7160e01b600052602260045260246000fd5b50919050565b615d0780620001826000396000f3fe608060405234801561001057600080fd5b50600436106104285760003560e01c80638201aa3f1161022b578063c070a6d811610130578063dd62ed3e116100b8578063f1b8a9b711610087578063f1b8a9b7146108b1578063f68045a5146108c4578063f8b2cb4f146108cc578063fde924f7146108df578063ff9b1850146108f157600080fd5b8063dd62ed3e1461085d578063e4a28a52146104b0578063ec09302114610896578063f0f13f0b1461089e57600080fd5b8063c8ff1833116100ff578063c8ff18331461082a578063cc77828d14610832578063cd2ed8fb1461083a578063d4cadf6814610842578063d73dd6231461084a57600080fd5b8063c070a6d8146107f9578063c36596a6146104f0578063c44a42831461080c578063c6580d121461082257600080fd5b8063a562ddf0116101b3578063b7b800a411610182578063b7b800a4146107c4578063ba019dab146107cc578063bc063e1a146107d4578063bc694ea2146107dc578063be3bbd2e146107e457600080fd5b8063a562ddf01461078b578063a9059cbb1461079e578063b02f0b73146107b1578063b0e0d136146107c457600080fd5b80639381cd2b116101fa5780639381cd2b1461074d578063948d8ce61461075557806395d89b4114610768578063992e2a9214610770578063a3b3a16d1461077857600080fd5b80638201aa3f14610718578063867378c51461072b5780638d4e408314610733578063936c34771461074557600080fd5b8063380376a6116103315780635e123add116102b9578063703305181161028857806370330518146106a457806370a08231146106b757806376c7a3c7146106e05780637c5e9ea4146106e857806380ca73081461071057600080fd5b80635e123add1461066e57806366188463146106765780636d06dfa014610689578063700dd7e81461069c57600080fd5b806346ab38f11161030057806346ab38f11461061b57806349e9350f1461062e5780634df947d0146106375780634f69c0d4146106485780635db342771461065b57600080fd5b8063380376a6146105d0578063392e53cd146105e35780633950b3fd146105f5578063430ed5d01461060857600080fd5b8063218b5382116103b4578063300621921161038357806330062192146105515780633018205f14610571578063313ce5671461058857806331e2761b1461059d57806334e19907146105bd57600080fd5b8063218b5382146104f057806323b872dd146104ff5780632ea07d8a146105125780632f37b6241461052557600080fd5b806309a3bbe4116103fb57806309a3bbe4146104b057806309ef3f5b146104b857806315e84af9146104cd57806318160ddd146104e0578063189d00ca146104e857600080fd5b806302c967481461042d57806304ad79541461045357806306fdde0314610478578063095ea7b31461048d575b600080fd5b61044061043b366004615770565b610904565b6040519081526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161044a565b610480610da8565b60405161044a9190615968565b6104a061049b3660046156f8565b610e3a565b604051901515815260200161044a565b610440610e95565b6104cb6104c63660046157a3565b610eab565b005b6104406104db3660046155dc565b6110a4565b600954610440565b610440611188565b610440670de0b6b3a764000081565b6104a061050d3660046156bc565b61119f565b6104406105203660046156bc565b6112f3565b6104a06105333660046155c1565b6001600160a01b031660009081526010602052604090205460ff1690565b61044061055f3660046155c1565b60056020526000908152604090205481565b600c546201000090046001600160a01b0316610460565b600c5460405160ff909116815260200161044a565b6104406105ab3660046155c1565b60066020526000908152604090205481565b6104cb6105cb366004615818565b6113ae565b6104406105de3660046156bc565b6114f7565b601254600160a01b900460ff166104a0565b6104406106033660046156f8565b6115a8565b6104406106163660046156f8565b611610565b610440610629366004615770565b611670565b61044060005481565b6004546001600160a01b0316610460565b6104cb61065636600461584a565b611ab9565b610440610669366004615770565b611ce0565b600054610440
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106104285760003560e01c80638201aa3f1161022b578063c070a6d811610130578063dd62ed3e116100b8578063f1b8a9b711610087578063f1b8a9b7146108b1578063f68045a5146108c4578063f8b2cb4f146108cc578063fde924f7146108df578063ff9b1850146108f157600080fd5b8063dd62ed3e1461085d578063e4a28a52146104b0578063ec09302114610896578063f0f13f0b1461089e57600080fd5b8063c8ff1833116100ff578063c8ff18331461082a578063cc77828d14610832578063cd2ed8fb1461083a578063d4cadf6814610842578063d73dd6231461084a57600080fd5b8063c070a6d8146107f9578063c36596a6146104f0578063c44a42831461080c578063c6580d121461082257600080fd5b8063a562ddf0116101b3578063b7b800a411610182578063b7b800a4146107c4578063ba019dab146107cc578063bc063e1a146107d4578063bc694ea2146107dc578063be3bbd2e146107e457600080fd5b8063a562ddf01461078b578063a9059cbb1461079e578063b02f0b73146107b1578063b0e0d136146107c457600080fd5b80639381cd2b116101fa5780639381cd2b1461074d578063948d8ce61461075557806395d89b4114610768578063992e2a9214610770578063a3b3a16d1461077857600080fd5b80638201aa3f14610718578063867378c51461072b5780638d4e408314610733578063936c34771461074557600080fd5b8063380376a6116103315780635e123add116102b9578063703305181161028857806370330518146106a457806370a08231146106b757806376c7a3c7146106e05780637c5e9ea4146106e857806380ca73081461071057600080fd5b80635e123add1461066e57806366188463146106765780636d06dfa014610689578063700dd7e81461069c57600080fd5b806346ab38f11161030057806346ab38f11461061b57806349e9350f1461062e5780634df947d0146106375780634f69c0d4146106485780635db342771461065b57600080fd5b8063380376a6146105d0578063392e53cd146105e35780633950b3fd146105f5578063430ed5d01461060857600080fd5b8063218b5382116103b4578063300621921161038357806330062192146105515780633018205f14610571578063313ce5671461058857806331e2761b1461059d57806334e19907146105bd57600080fd5b8063218b5382146104f057806323b872dd146104ff5780632ea07d8a146105125780632f37b6241461052557600080fd5b806309a3bbe4116103fb57806309a3bbe4146104b057806309ef3f5b146104b857806315e84af9146104cd57806318160ddd146104e0578063189d00ca146104e857600080fd5b806302c967481461042d57806304ad79541461045357806306fdde0314610478578063095ea7b31461048d575b600080fd5b61044061043b366004615770565b610904565b6040519081526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161044a565b610480610da8565b60405161044a9190615968565b6104a061049b3660046156f8565b610e3a565b604051901515815260200161044a565b610440610e95565b6104cb6104c63660046157a3565b610eab565b005b6104406104db3660046155dc565b6110a4565b600954610440565b610440611188565b610440670de0b6b3a764000081565b6104a061050d3660046156bc565b61119f565b6104406105203660046156bc565b6112f3565b6104a06105333660046155c1565b6001600160a01b031660009081526010602052604090205460ff1690565b61044061055f3660046155c1565b60056020526000908152604090205481565b600c546201000090046001600160a01b0316610460565b600c5460405160ff909116815260200161044a565b6104406105ab3660046155c1565b60066020526000908152604090205481565b6104cb6105cb366004615818565b6113ae565b6104406105de3660046156bc565b6114f7565b601254600160a01b900460ff166104a0565b6104406106033660046156f8565b6115a8565b6104406106163660046156f8565b611610565b610440610629366004615770565b611670565b61044060005481565b6004546001600160a01b0316610460565b6104cb61065636600461584a565b611ab9565b610440610669366004615770565b611ce0565b600054610440565b6104a06106843660046156f8565b6120e4565b610440610697366004615770565b6121ba565b6104406125d9565b6104cb6106b23660046155c1565b612662565b6104406106c53660046155c1565b6001600160a01b031660009081526007602052604090205490565b61044061270f565b6106fb6106f6366004615722565b612724565b6040805192835260208301919091520161044a565b6104cb612a75565b6106fb610726366004615722565b612c5e565b610440612f93565b600e54600160a01b900460ff166104a0565b610440612faa565b610440612fdc565b6104406107633660046155c1565b612fef565b610480613075565b610440613084565b6104406107863660046156f8565b6130a2565b600d54610460906001600160a01b031681565b6104a06107ac3660046156f8565b613102565b6104cb6107bf36600461584a565b613118565b610440600281565b610440600181565b610440613374565b610440613387565b6107ec6133a6565b60405161044a
2021-11-19 15:42:17 +01:00
"linkReferences": {},
"deployedLinkReferences": {}
2021-11-24 15:00:24 +01:00
}