13333 lines
411 KiB
JSON
13333 lines
411 KiB
JSON
{
|
|
"id": "c7be7fdaca5f53e533216ccdd3c8ed6f",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.3",
|
|
"solcLongVersion": "0.8.3+commit.8d00100c",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/modules/common/SimpleOracle.sol": {
|
|
"content": "\r\n\r\n// SPDX-License-Identifier: GPL-3.0-only\r\npragma solidity ^0.8.3;\r\n\r\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol\";\r\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol\";\r\n\r\ncontract SimpleOracle {\r\n\r\n address internal immutable weth;\r\n address internal immutable uniswapV2Factory;\r\n\r\n constructor(address _uniswapRouter) {\r\n weth = IUniswapV2Router01(_uniswapRouter).WETH();\r\n uniswapV2Factory = IUniswapV2Router01(_uniswapRouter).factory();\r\n }\r\n\r\n function inToken(address _token, uint256 _ethAmount) internal view returns (uint256) {\r\n (uint256 wethReserve, uint256 tokenReserve) = getReservesForTokenPool(_token);\r\n return _ethAmount * tokenReserve / wethReserve;\r\n }\r\n\r\n function getReservesForTokenPool(address _token) internal view returns (uint256 wethReserve, uint256 tokenReserve) {\r\n if (weth < _token) {\r\n address pair = getPairForSorted(weth, _token);\r\n (wethReserve, tokenReserve,) = IUniswapV2Pair(pair).getReserves();\r\n } else {\r\n address pair = getPairForSorted(_token, weth);\r\n (tokenReserve, wethReserve,) = IUniswapV2Pair(pair).getReserves();\r\n }\r\n require(wethReserve != 0 && tokenReserve != 0, \"SO: no liquidity\");\r\n }\r\n\r\n function getPairForSorted(address tokenA, address tokenB) internal virtual view returns (address pair) { \r\n pair = address(uint160(uint256(keccak256(abi.encodePacked(\r\n hex'ff',\r\n uniswapV2Factory,\r\n keccak256(abi.encodePacked(tokenA, tokenB)),\r\n hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f'\r\n )))));\r\n }\r\n}"
|
|
},
|
|
"@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol": {
|
|
"content": "pragma solidity >=0.5.0;\n\ninterface IUniswapV2Pair {\n event Approval(address indexed owner, address indexed spender, uint value);\n event Transfer(address indexed from, address indexed to, uint value);\n\n function name() external pure returns (string memory);\n function symbol() external pure returns (string memory);\n function decimals() external pure returns (uint8);\n function totalSupply() external view returns (uint);\n function balanceOf(address owner) external view returns (uint);\n function allowance(address owner, address spender) external view returns (uint);\n\n function approve(address spender, uint value) external returns (bool);\n function transfer(address to, uint value) external returns (bool);\n function transferFrom(address from, address to, uint value) external returns (bool);\n\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n function PERMIT_TYPEHASH() external pure returns (bytes32);\n function nonces(address owner) external view returns (uint);\n\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\n\n event Mint(address indexed sender, uint amount0, uint amount1);\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\n event Swap(\n address indexed sender,\n uint amount0In,\n uint amount1In,\n uint amount0Out,\n uint amount1Out,\n address indexed to\n );\n event Sync(uint112 reserve0, uint112 reserve1);\n\n function MINIMUM_LIQUIDITY() external pure returns (uint);\n function factory() external view returns (address);\n function token0() external view returns (address);\n function token1() external view returns (address);\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\n function price0CumulativeLast() external view returns (uint);\n function price1CumulativeLast() external view returns (uint);\n function kLast() external view returns (uint);\n\n function mint(address to) external returns (uint liquidity);\n function burn(address to) external returns (uint amount0, uint amount1);\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\n function skim(address to) external;\n function sync() external;\n\n function initialize(address, address) external;\n}\n"
|
|
},
|
|
"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol": {
|
|
"content": "pragma solidity >=0.6.2;\n\ninterface IUniswapV2Router01 {\n function factory() external pure returns (address);\n function WETH() external pure returns (address);\n\n function addLiquidity(\n address tokenA,\n address tokenB,\n uint amountADesired,\n uint amountBDesired,\n uint amountAMin,\n uint amountBMin,\n address to,\n uint deadline\n ) external returns (uint amountA, uint amountB, uint liquidity);\n function addLiquidityETH(\n address token,\n uint amountTokenDesired,\n uint amountTokenMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external payable returns (uint amountToken, uint amountETH, uint liquidity);\n function removeLiquidity(\n address tokenA,\n address tokenB,\n uint liquidity,\n uint amountAMin,\n uint amountBMin,\n address to,\n uint deadline\n ) external returns (uint amountA, uint amountB);\n function removeLiquidityETH(\n address token,\n uint liquidity,\n uint amountTokenMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external returns (uint amountToken, uint amountETH);\n function removeLiquidityWithPermit(\n address tokenA,\n address tokenB,\n uint liquidity,\n uint amountAMin,\n uint amountBMin,\n address to,\n uint deadline,\n bool approveMax, uint8 v, bytes32 r, bytes32 s\n ) external returns (uint amountA, uint amountB);\n function removeLiquidityETHWithPermit(\n address token,\n uint liquidity,\n uint amountTokenMin,\n uint amountETHMin,\n address to,\n uint deadline,\n bool approveMax, uint8 v, bytes32 r, bytes32 s\n ) external returns (uint amountToken, uint amountETH);\n function swapExactTokensForTokens(\n uint amountIn,\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external returns (uint[] memory amounts);\n function swapTokensForExactTokens(\n uint amountOut,\n uint amountInMax,\n address[] calldata path,\n address to,\n uint deadline\n ) external returns (uint[] memory amounts);\n function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)\n external\n payable\n returns (uint[] memory amounts);\n function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\n external\n returns (uint[] memory amounts);\n function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\n external\n returns (uint[] memory amounts);\n function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)\n external\n payable\n returns (uint[] memory amounts);\n\n function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);\n function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);\n function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);\n function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);\n function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);\n}\n"
|
|
}
|
|
},
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": false,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"": [
|
|
"ast"
|
|
],
|
|
"*": [
|
|
"abi",
|
|
"metadata",
|
|
"devdoc",
|
|
"userdoc",
|
|
"storageLayout",
|
|
"evm.legacyAssembly",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers",
|
|
"evm.gasEstimates",
|
|
"evm.assembly"
|
|
]
|
|
}
|
|
},
|
|
"remappings": []
|
|
}
|
|
},
|
|
"output": {
|
|
"contracts": {
|
|
"@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol": {
|
|
"IUniswapV2Pair": {
|
|
"abi": [
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "owner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "spender",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "value",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Approval",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "sender",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount0",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount1",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "Burn",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "sender",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount0",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount1",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Mint",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "sender",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount0In",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount1In",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount0Out",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount1Out",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "Swap",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint112",
|
|
"name": "reserve0",
|
|
"type": "uint112"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint112",
|
|
"name": "reserve1",
|
|
"type": "uint112"
|
|
}
|
|
],
|
|
"name": "Sync",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "from",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "value",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Transfer",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "DOMAIN_SEPARATOR",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "MINIMUM_LIQUIDITY",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "PERMIT_TYPEHASH",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "owner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "spender",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "allowance",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "spender",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "value",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "approve",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "owner",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "balanceOf",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "burn",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount0",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount1",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "decimals",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "factory",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getReserves",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint112",
|
|
"name": "reserve0",
|
|
"type": "uint112"
|
|
},
|
|
{
|
|
"internalType": "uint112",
|
|
"name": "reserve1",
|
|
"type": "uint112"
|
|
},
|
|
{
|
|
"internalType": "uint32",
|
|
"name": "blockTimestampLast",
|
|
"type": "uint32"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "initialize",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "kLast",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "mint",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "liquidity",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "name",
|
|
"outputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "owner",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "nonces",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "owner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "spender",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "value",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "v",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "r",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "s",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "permit",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "price0CumulativeLast",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "price1CumulativeLast",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "skim",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount0Out",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount1Out",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "data",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "swap",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "symbol",
|
|
"outputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "sync",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "token0",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "token1",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "totalSupply",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "value",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "transfer",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "from",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "value",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "transferFrom",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": null,
|
|
"methodIdentifiers": {
|
|
"DOMAIN_SEPARATOR()": "3644e515",
|
|
"MINIMUM_LIQUIDITY()": "ba9a7a56",
|
|
"PERMIT_TYPEHASH()": "30adf81f",
|
|
"allowance(address,address)": "dd62ed3e",
|
|
"approve(address,uint256)": "095ea7b3",
|
|
"balanceOf(address)": "70a08231",
|
|
"burn(address)": "89afcb44",
|
|
"decimals()": "313ce567",
|
|
"factory()": "c45a0155",
|
|
"getReserves()": "0902f1ac",
|
|
"initialize(address,address)": "485cc955",
|
|
"kLast()": "7464fc3d",
|
|
"mint(address)": "6a627842",
|
|
"name()": "06fdde03",
|
|
"nonces(address)": "7ecebe00",
|
|
"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
|
|
"price0CumulativeLast()": "5909c0d5",
|
|
"price1CumulativeLast()": "5a3d5493",
|
|
"skim(address)": "bc25cf77",
|
|
"swap(uint256,uint256,address,bytes)": "022c0d9f",
|
|
"symbol()": "95d89b41",
|
|
"sync()": "fff6cae9",
|
|
"token0()": "0dfe1681",
|
|
"token1()": "d21220a7",
|
|
"totalSupply()": "18160ddd",
|
|
"transfer(address,uint256)": "a9059cbb",
|
|
"transferFrom(address,address,uint256)": "23b872dd"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.3+commit.8d00100c\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint112\",\"name\":\"reserve0\",\"type\":\"uint112\"},{\"indexed\":false,\"internalType\":\"uint112\",\"name\":\"reserve1\",\"type\":\"uint112\"}],\"name\":\"Sync\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINIMUM_LIQUIDITY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint112\",\"name\":\"reserve0\",\"type\":\"uint112\"},{\"internalType\":\"uint112\",\"name\":\"reserve1\",\"type\":\"uint112\"},{\"internalType\":\"uint32\",\"name\":\"blockTimestampLast\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"kLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"price0CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"price1CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"skim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sync\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol\":\"IUniswapV2Pair\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol\":{\"keccak256\":\"0x7c9bc70e5996c763e02ff38905282bc24fb242b0ef2519a003b36824fc524a4b\",\"urls\":[\"bzz-raw://85d5ad2dd23ee127f40907a12865a1e8cb5828814f6f2480285e1827dd72dedf\",\"dweb:/ipfs/QmayKQWJgWmr46DqWseADyUanmqxh662hPNdAkdHRjiQQH\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
},
|
|
"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol": {
|
|
"IUniswapV2Router01": {
|
|
"abi": [
|
|
{
|
|
"inputs": [],
|
|
"name": "WETH",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "tokenA",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "tokenB",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountADesired",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountBDesired",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountAMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountBMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "addLiquidity",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountA",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountB",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "liquidity",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "token",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountTokenDesired",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountTokenMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountETHMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "addLiquidityETH",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountToken",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountETH",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "liquidity",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "factory",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountOut",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "reserveIn",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "reserveOut",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "getAmountIn",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountIn",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountIn",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "reserveIn",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "reserveOut",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "getAmountOut",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountOut",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountOut",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "path",
|
|
"type": "address[]"
|
|
}
|
|
],
|
|
"name": "getAmountsIn",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "amounts",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountIn",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "path",
|
|
"type": "address[]"
|
|
}
|
|
],
|
|
"name": "getAmountsOut",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "amounts",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountA",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "reserveA",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "reserveB",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "quote",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountB",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "tokenA",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "tokenB",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "liquidity",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountAMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountBMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "removeLiquidity",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountA",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountB",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "token",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "liquidity",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountTokenMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountETHMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "removeLiquidityETH",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountToken",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountETH",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "token",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "liquidity",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountTokenMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountETHMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "approveMax",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "v",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "r",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "s",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "removeLiquidityETHWithPermit",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountToken",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountETH",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "tokenA",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "tokenB",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "liquidity",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountAMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountBMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "approveMax",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "v",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "r",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "s",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "removeLiquidityWithPermit",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountA",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountB",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountOut",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "path",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "swapETHForExactTokens",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "amounts",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountOutMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "path",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "swapExactETHForTokens",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "amounts",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountIn",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountOutMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "path",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "swapExactTokensForETH",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "amounts",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountIn",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountOutMin",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "path",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "swapExactTokensForTokens",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "amounts",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountOut",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountInMax",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "path",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "swapTokensForExactETH",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "amounts",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountOut",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountInMax",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "path",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "swapTokensForExactTokens",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "amounts",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": null,
|
|
"methodIdentifiers": {
|
|
"WETH()": "ad5c4648",
|
|
"addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256)": "e8e33700",
|
|
"addLiquidityETH(address,uint256,uint256,uint256,address,uint256)": "f305d719",
|
|
"factory()": "c45a0155",
|
|
"getAmountIn(uint256,uint256,uint256)": "85f8c259",
|
|
"getAmountOut(uint256,uint256,uint256)": "054d50d4",
|
|
"getAmountsIn(uint256,address[])": "1f00ca74",
|
|
"getAmountsOut(uint256,address[])": "d06ca61f",
|
|
"quote(uint256,uint256,uint256)": "ad615dec",
|
|
"removeLiquidity(address,address,uint256,uint256,uint256,address,uint256)": "baa2abde",
|
|
"removeLiquidityETH(address,uint256,uint256,uint256,address,uint256)": "02751cec",
|
|
"removeLiquidityETHWithPermit(address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": "ded9382a",
|
|
"removeLiquidityWithPermit(address,address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": "2195995c",
|
|
"swapETHForExactTokens(uint256,address[],address,uint256)": "fb3bdb41",
|
|
"swapExactETHForTokens(uint256,address[],address,uint256)": "7ff36ab5",
|
|
"swapExactTokensForETH(uint256,uint256,address[],address,uint256)": "18cbafe5",
|
|
"swapExactTokensForTokens(uint256,uint256,address[],address,uint256)": "38ed1739",
|
|
"swapTokensForExactETH(uint256,uint256,address[],address,uint256)": "4a25d94a",
|
|
"swapTokensForExactTokens(uint256,uint256,address[],address,uint256)": "8803dbee"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.3+commit.8d00100c\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountADesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsIn\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsOut\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveB\",\"type\":\"uint256\"}],\"name\":\"quote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapETHForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol\":\"IUniswapV2Router01\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol\":{\"keccak256\":\"0x8a3c5c449d4b7cd76513ed6995f4b86e4a86f222c770f8442f5fc128ce29b4d2\",\"urls\":[\"bzz-raw://1df63ca373dafae3bd0ee7fe70f890a1dc7c45ed869c01de68413e0e97ff9deb\",\"dweb:/ipfs/QmefJgEYGUL8KX7kQKYTrDweF8GB7yjy3nw5Bmqzryg7PG\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
},
|
|
"contracts/modules/common/SimpleOracle.sol": {
|
|
"SimpleOracle": {
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_uniswapRouter",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "constructor"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": " /* \"contracts/modules/common/SimpleOracle.sol\":220:1735 contract SimpleOracle {\r... */\n mstore(0x40, 0xc0)\n /* \"contracts/modules/common/SimpleOracle.sol\":341:518 constructor(address _uniswapRouter) {\r... */\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\ntag_1:\n pop\n mload(0x40)\n sub(codesize, bytecodeSize)\n dup1\n bytecodeSize\n dup4\n codecopy\n dup2\n dup2\n add\n 0x40\n mstore\n dup2\n add\n swap1\n tag_2\n swap2\n swap1\n tag_3\n jump\t// in\ntag_2:\n /* \"contracts/modules/common/SimpleOracle.sol\":414:428 _uniswapRouter */\n dup1\n /* \"contracts/modules/common/SimpleOracle.sol\":395:434 IUniswapV2Router01(_uniswapRouter).WETH */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n 0xad5c4648\n /* \"contracts/modules/common/SimpleOracle.sol\":395:436 IUniswapV2Router01(_uniswapRouter).WETH() */\n mload(0x40)\n dup2\n 0xffffffff\n and\n 0xe0\n shl\n dup2\n mstore\n 0x04\n add\n 0x20\n mload(0x40)\n dup1\n dup4\n sub\n dup2\n dup7\n dup1\n extcodesize\n iszero\n dup1\n iszero\n tag_6\n jumpi\n 0x00\n dup1\n revert\ntag_6:\n pop\n gas\n staticcall\n iszero\n dup1\n iszero\n tag_8\n jumpi\n returndatasize\n 0x00\n dup1\n returndatacopy\n revert(0x00, returndatasize)\ntag_8:\n pop\n pop\n pop\n pop\n mload(0x40)\n returndatasize\n not(0x1f)\n 0x1f\n dup3\n add\n and\n dup3\n add\n dup1\n 0x40\n mstore\n pop\n dup2\n add\n swap1\n tag_9\n swap2\n swap1\n tag_3\n jump\t// in\ntag_9:\n /* \"contracts/modules/common/SimpleOracle.sol\":388:436 weth = IUniswapV2Router01(_uniswapRouter).WETH() */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n 0x80\n dup2\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n 0x60\n shl\n dup2\n mstore\n pop\n pop\n /* \"contracts/modules/common/SimpleOracle.sol\":485:499 _uniswapRouter */\n dup1\n /* \"contracts/modules/common/SimpleOracle.sol\":466:508 IUniswapV2Router01(_uniswapRouter).factory */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n 0xc45a0155\n /* \"contracts/modules/common/SimpleOracle.sol\":466:510 IUniswapV2Router01(_uniswapRouter).factory() */\n mload(0x40)\n dup2\n 0xffffffff\n and\n 0xe0\n shl\n dup2\n mstore\n 0x04\n add\n 0x20\n mload(0x40)\n dup1\n dup4\n sub\n dup2\n dup7\n dup1\n extcodesize\n iszero\n dup1\n iszero\n tag_10\n jumpi\n 0x00\n dup1\n revert\ntag_10:\n pop\n gas\n staticcall\n iszero\n dup1\n iszero\n tag_12\n jumpi\n returndatasize\n 0x00\n dup1\n returndatacopy\n revert(0x00, returndatasize)\ntag_12:\n pop\n pop\n pop\n pop\n mload(0x40)\n returndatasize\n not(0x1f)\n 0x1f\n dup3\n add\n and\n dup3\n add\n dup1\n 0x40\n mstore\n pop\n dup2\n add\n swap1\n tag_13\n swap2\n swap1\n tag_3\n jump\t// in\ntag_13:\n /* \"contracts/modules/common/SimpleOracle.sol\":447:510 uniswapV2Factory = IUniswapV2Router01(_uniswapRouter).factory() */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n 0xa0\n dup2\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n 0x60\n shl\n dup2\n mstore\n pop\n pop\n /* \"contracts/modules/common/SimpleOracle.sol\":341:518 constructor(address _uniswapRouter) {\r... */\n pop\n /* \"contracts/modules/common/SimpleOracle.sol\":220:1735 contract SimpleOracle {\r... */\n jump(tag_14)\n /* \"#utility.yul\":7:150 */\ntag_16:\n 0x00\n /* \"#utility.yul\":95:101 */\n dup2\n /* \"#utility.yul\":89:102 */\n mload\n /* \"#utility.yul\":80:102 */\n swap1\n pop\n /* \"#utility.yul\":111:144 */\n tag_18\n /* \"#utility.yul\":138:143 */\n dup2\n /* \"#utility.yul\":111:144 */\n tag_19\n jump\t// in\ntag_18:\n /* \"#utility.yul\":70:150 */\n swap3\n swap2\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":156:440 */\ntag_3:\n 0x00\n /* \"#utility.yul\":275:277 */\n 0x20\n /* \"#utility.yul\":263:272 */\n dup3\n /* \"#utility.yul\":254:261 */\n dup5\n /* \"#utility.yul\":250:273 */\n sub\n /* \"#utility.yul\":246:278 */\n slt\n /* \"#utility.yul\":243:245 */\n iszero\n tag_21\n jumpi\n /* \"#utility.yul\":291:292 */\n 0x00\n /* \"#utility.yul\":288:289 */\n dup1\n /* \"#utility.yul\":281:293 */\n revert\n /* \"#utility.yul\":243:245 */\ntag_21:\n /* \"#utility.yul\":334:335 */\n 0x00\n /* \"#utility.yul\":359:423 */\n tag_22\n /* \"#utility.yul\":415:422 */\n dup5\n /* \"#utility.yul\":406:412 */\n dup3\n /* \"#utility.yul\":395:404 */\n dup6\n /* \"#utility.yul\":391:413 */\n add\n /* \"#utility.yul\":359:423 */\n tag_16\n jump\t// in\ntag_22:\n /* \"#utility.yul\":349:423 */\n swap2\n pop\n /* \"#utility.yul\":305:433 */\n pop\n /* \"#utility.yul\":233:440 */\n swap3\n swap2\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":446:542 */\ntag_23:\n 0x00\n /* \"#utility.yul\":512:536 */\n tag_25\n /* \"#utility.yul\":530:535 */\n dup3\n /* \"#utility.yul\":512:536 */\n tag_26\n jump\t// in\ntag_25:\n /* \"#utility.yul\":501:536 */\n swap1\n pop\n /* \"#utility.yul\":491:542 */\n swap2\n swap1\n pop\n jump\t// out\n /* \"#utility.yul\":548:674 */\ntag_26:\n 0x00\n /* \"#utility.yul\":625:667 */\n 0xffffffffffffffffffffffffffffffffffffffff\n /* \"#utility.yul\":618:623 */\n dup3\n /* \"#utility.yul\":614:668 */\n and\n /* \"#utility.yul\":603:668 */\n swap1\n pop\n /* \"#utility.yul\":593:674 */\n swap2\n swap1\n pop\n jump\t// out\n /* \"#utility.yul\":680:802 */\ntag_19:\n /* \"#utility.yul\":753:777 */\n tag_29\n /* \"#utility.yul\":771:776 */\n dup2\n /* \"#utility.yul\":753:777 */\n tag_23\n jump\t// in\ntag_29:\n /* \"#utility.yul\":746:751 */\n dup2\n /* \"#utility.yul\":743:778 */\n eq\n /* \"#utility.yul\":733:735 */\n tag_30\n jumpi\n /* \"#utility.yul\":792:793 */\n 0x00\n /* \"#utility.yul\":789:790 */\n dup1\n /* \"#utility.yul\":782:794 */\n revert\n /* \"#utility.yul\":733:735 */\ntag_30:\n /* \"#utility.yul\":723:802 */\n pop\n jump\t// out\n /* \"contracts/modules/common/SimpleOracle.sol\":220:1735 contract SimpleOracle {\r... */\ntag_14:\n shr(0x60, mload(0x80))\n shr(0x60, mload(0xa0))\n codecopy(0x00, dataOffset(sub_0), dataSize(sub_0))\n 0x00\n assignImmutable(\"0x2208a16c73715b9b46b6a43eb7945ef73c11236cc17a73d6e0af3980c7c3c293\")\n 0x00\n assignImmutable(\"0x22615f586e4a86b23ead367df957a03709c50c3e9f8d9d951d77eb93984a0744\")\n return(0x00, dataSize(sub_0))\nstop\n\nsub_0: assembly {\n /* \"contracts/modules/common/SimpleOracle.sol\":220:1735 contract SimpleOracle {\r... */\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa2646970667358221220daf900886916f17feec468f27f220ef16360bf5aa840983046484d3c25fb9eac64736f6c63430008030033\n}\n",
|
|
"bytecode": {
|
|
"generatedSources": [
|
|
{
|
|
"ast": {
|
|
"nodeType": "YulBlock",
|
|
"src": "0:805:3",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "70:80:3",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "80:22:3",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "95:6:3"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "89:5:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "89:13:3"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "80:5:3"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "138:5:3"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "validator_revert_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "111:26:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "111:33:3"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "111:33:3"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_t_address_fromMemory",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "48:6:3",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "56:3:3",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "64:5:3",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "7:143:3"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "233:207:3",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "279:16:3",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "288:1:3",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "291:1:3",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "281:6:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "281:12:3"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "281:12:3"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "254:7:3"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "263:9:3"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "250:3:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "250:23:3"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "275:2:3",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "246:3:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "246:32:3"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "243:2:3"
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "305:128:3",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "320:15:3",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "334:1:3",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "324:6:3",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "349:74:3",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "395:9:3"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "406:6:3"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "391:3:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "391:22:3"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "415:7:3"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_address_fromMemory",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "359:31:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "359:64:3"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "349:6:3"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_address_fromMemory",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "203:9:3",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulTypedName",
|
|
"src": "214:7:3",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "226:6:3",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "156:284:3"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "491:51:3",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "501:35:3",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "530:5:3"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint160",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "512:17:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "512:24:3"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "501:7:3"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "473:5:3",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "483:7:3",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "446:96:3"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "593:81:3",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "603:65:3",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "618:5:3"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "625:42:3",
|
|
"type": "",
|
|
"value": "0xffffffffffffffffffffffffffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "and",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "614:3:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "614:54:3"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "603:7:3"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_uint160",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "575:5:3",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "585:7:3",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "548:126:3"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "723:79:3",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "780:16:3",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "789:1:3",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "792:1:3",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "782:6:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "782:12:3"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "782:12:3"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "746:5:3"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "771:5:3"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "753:17:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "753:24:3"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "eq",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "743:2:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "743:35:3"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "736:6:3"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "736:43:3"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "733:2:3"
|
|
}
|
|
]
|
|
},
|
|
"name": "validator_revert_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "716:5:3",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "680:122:3"
|
|
}
|
|
]
|
|
},
|
|
"contents": "{\n\n function abi_decode_t_address_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_address(value)\n }\n\n function abi_decode_tuple_t_address_fromMemory(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_address_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\n }\n\n}\n",
|
|
"id": 3,
|
|
"language": "Yul",
|
|
"name": "#utility.yul"
|
|
}
|
|
],
|
|
"linkReferences": {},
|
|
"object": "60c060405234801561001057600080fd5b50604051610289380380610289833981810160405281019061003291906101b5565b8073ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561007857600080fd5b505afa15801561008c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100b091906101b5565b73ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561012c57600080fd5b505afa158015610140573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061016491906101b5565b73ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050610227565b6000815190506101af81610210565b92915050565b6000602082840312156101c757600080fd5b60006101d5848285016101a0565b91505092915050565b60006101e9826101f0565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b610219816101de565b811461022457600080fd5b50565b60805160601c60a05160601c603f61024a6000396000505060005050603f6000f3fe6080604052600080fdfea2646970667358221220daf900886916f17feec468f27f220ef16360bf5aa840983046484d3c25fb9eac64736f6c63430008030033",
|
|
"opcodes": "PUSH1 0xC0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x289 CODESIZE SUB DUP1 PUSH2 0x289 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE DUP2 ADD SWAP1 PUSH2 0x32 SWAP2 SWAP1 PUSH2 0x1B5 JUMP JUMPDEST DUP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xAD5C4648 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x78 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x8C JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xB0 SWAP2 SWAP1 PUSH2 0x1B5 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x80 DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x60 SHL DUP2 MSTORE POP POP DUP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xC45A0155 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x12C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x140 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x164 SWAP2 SWAP1 PUSH2 0x1B5 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0xA0 DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x60 SHL DUP2 MSTORE POP POP POP PUSH2 0x227 JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP PUSH2 0x1AF DUP2 PUSH2 0x210 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1C7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x1D5 DUP5 DUP3 DUP6 ADD PUSH2 0x1A0 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1E9 DUP3 PUSH2 0x1F0 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x219 DUP2 PUSH2 0x1DE JUMP JUMPDEST DUP2 EQ PUSH2 0x224 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x80 MLOAD PUSH1 0x60 SHR PUSH1 0xA0 MLOAD PUSH1 0x60 SHR PUSH1 0x3F PUSH2 0x24A PUSH1 0x0 CODECOPY PUSH1 0x0 POP POP PUSH1 0x0 POP POP PUSH1 0x3F PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xDA 0xF9 STOP DUP9 PUSH10 0x16F17FEEC468F27F220E CALL PUSH4 0x60BF5AA8 BLOCKHASH SWAP9 ADDRESS CHAINID 0x48 0x4D EXTCODECOPY 0x25 0xFB SWAP15 0xAC PUSH5 0x736F6C6343 STOP ADDMOD SUB STOP CALLER ",
|
|
"sourceMap": "220:1515:2:-:0;;;341:177;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;414:14;395:39;;;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;388:48;;;;;;;;;;;;485:14;466:42;;;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;447:63;;;;;;;;;;;;341:177;220:1515;;7:143:3;;95:6;89:13;80:22;;111:33;138:5;111:33;:::i;:::-;70:80;;;;:::o;156:284::-;;275:2;263:9;254:7;250:23;246:32;243:2;;;291:1;288;281:12;243:2;334:1;359:64;415:7;406:6;395:9;391:22;359:64;:::i;:::-;349:74;;305:128;233:207;;;;:::o;446:96::-;;512:24;530:5;512:24;:::i;:::-;501:35;;491:51;;;:::o;548:126::-;;625:42;618:5;614:54;603:65;;593:81;;;:::o;680:122::-;753:24;771:5;753:24;:::i;:::-;746:5;743:35;733:2;;792:1;789;782:12;733:2;723:79;:::o;220:1515:2:-;;;;;;;;;;;;;;;;;;;"
|
|
},
|
|
"deployedBytecode": {
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "6080604052600080fdfea2646970667358221220daf900886916f17feec468f27f220ef16360bf5aa840983046484d3c25fb9eac64736f6c63430008030033",
|
|
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xDA 0xF9 STOP DUP9 PUSH10 0x16F17FEEC468F27F220E CALL PUSH4 0x60BF5AA8 BLOCKHASH SWAP9 ADDRESS CHAINID 0x48 0x4D EXTCODECOPY 0x25 0xFB SWAP15 0xAC PUSH5 0x736F6C6343 STOP ADDMOD SUB STOP CALLER ",
|
|
"sourceMap": "220:1515:2:-:0;;;;;"
|
|
},
|
|
"gasEstimates": {
|
|
"creation": {
|
|
"codeDepositCost": "12600",
|
|
"executionCost": "infinite",
|
|
"totalCost": "infinite"
|
|
},
|
|
"internal": {
|
|
"getPairForSorted(address,address)": "infinite",
|
|
"getReservesForTokenPool(address)": "infinite",
|
|
"inToken(address,uint256)": "infinite"
|
|
}
|
|
},
|
|
"legacyAssembly": {
|
|
".code": [
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "C0"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "CALLVALUE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "ISZERO",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "JUMPI",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "REVERT",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "tag",
|
|
"source": 2,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "JUMPDEST",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "MLOAD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "PUSHSIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "CODESIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "SUB",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "PUSHSIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "DUP4",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "CODECOPY",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "ADD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "ADD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "SWAP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "2"
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "SWAP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "SWAP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "3"
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "JUMP",
|
|
"source": 2,
|
|
"value": "[in]"
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "tag",
|
|
"source": 2,
|
|
"value": "2"
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "JUMPDEST",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 414,
|
|
"end": 428,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 434,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 434,
|
|
"name": "AND",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 434,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "AD5C4648"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "MLOAD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "FFFFFFFF"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "AND",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "E0"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "SHL",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "4"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "ADD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "20"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "MLOAD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP4",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "SUB",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP7",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "EXTCODESIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "ISZERO",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "ISZERO",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "6"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "JUMPI",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "REVERT",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "tag",
|
|
"source": 2,
|
|
"value": "6"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "JUMPDEST",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "GAS",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "STATICCALL",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "ISZERO",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "ISZERO",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "8"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "JUMPI",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "RETURNDATASIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "RETURNDATACOPY",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "RETURNDATASIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "REVERT",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "tag",
|
|
"source": 2,
|
|
"value": "8"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "JUMPDEST",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "MLOAD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "RETURNDATASIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "1F"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "NOT",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "1F"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP3",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "ADD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "AND",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP3",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "ADD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "ADD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "SWAP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "9"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "SWAP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "SWAP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "3"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "JUMP",
|
|
"source": 2,
|
|
"value": "[in]"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "tag",
|
|
"source": 2,
|
|
"value": "9"
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 436,
|
|
"name": "JUMPDEST",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "AND",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "80"
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "AND",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "60"
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "SHL",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 388,
|
|
"end": 436,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 485,
|
|
"end": 499,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 508,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 508,
|
|
"name": "AND",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 508,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "C45A0155"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "MLOAD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "FFFFFFFF"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "AND",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "E0"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "SHL",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "4"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "ADD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "20"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "MLOAD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP4",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "SUB",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP7",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "EXTCODESIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "ISZERO",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "ISZERO",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "10"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "JUMPI",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "REVERT",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "tag",
|
|
"source": 2,
|
|
"value": "10"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "JUMPDEST",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "GAS",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "STATICCALL",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "ISZERO",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "ISZERO",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "12"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "JUMPI",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "RETURNDATASIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "RETURNDATACOPY",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "RETURNDATASIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "REVERT",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "tag",
|
|
"source": 2,
|
|
"value": "12"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "JUMPDEST",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "MLOAD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "RETURNDATASIZE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "1F"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "NOT",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "1F"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP3",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "ADD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "AND",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP3",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "ADD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "ADD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "SWAP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "13"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "SWAP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "SWAP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "3"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "JUMP",
|
|
"source": 2,
|
|
"value": "[in]"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "tag",
|
|
"source": 2,
|
|
"value": "13"
|
|
},
|
|
{
|
|
"begin": 466,
|
|
"end": 510,
|
|
"name": "JUMPDEST",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "AND",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "A0"
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "AND",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "60"
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "SHL",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 447,
|
|
"end": 510,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 341,
|
|
"end": 518,
|
|
"name": "POP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "14"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "JUMP",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 7,
|
|
"end": 150,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "16"
|
|
},
|
|
{
|
|
"begin": 7,
|
|
"end": 150,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 7,
|
|
"end": 150,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 95,
|
|
"end": 101,
|
|
"name": "DUP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 89,
|
|
"end": 102,
|
|
"name": "MLOAD",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 80,
|
|
"end": 102,
|
|
"name": "SWAP1",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 80,
|
|
"end": 102,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 111,
|
|
"end": 144,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "18"
|
|
},
|
|
{
|
|
"begin": 138,
|
|
"end": 143,
|
|
"name": "DUP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 111,
|
|
"end": 144,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "19"
|
|
},
|
|
{
|
|
"begin": 111,
|
|
"end": 144,
|
|
"name": "JUMP",
|
|
"source": 3,
|
|
"value": "[in]"
|
|
},
|
|
{
|
|
"begin": 111,
|
|
"end": 144,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "18"
|
|
},
|
|
{
|
|
"begin": 111,
|
|
"end": 144,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 70,
|
|
"end": 150,
|
|
"name": "SWAP3",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 70,
|
|
"end": 150,
|
|
"name": "SWAP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 70,
|
|
"end": 150,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 70,
|
|
"end": 150,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 70,
|
|
"end": 150,
|
|
"name": "JUMP",
|
|
"source": 3,
|
|
"value": "[out]"
|
|
},
|
|
{
|
|
"begin": 156,
|
|
"end": 440,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "3"
|
|
},
|
|
{
|
|
"begin": 156,
|
|
"end": 440,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 156,
|
|
"end": 440,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 275,
|
|
"end": 277,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "20"
|
|
},
|
|
{
|
|
"begin": 263,
|
|
"end": 272,
|
|
"name": "DUP3",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 254,
|
|
"end": 261,
|
|
"name": "DUP5",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 250,
|
|
"end": 273,
|
|
"name": "SUB",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 246,
|
|
"end": 278,
|
|
"name": "SLT",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 243,
|
|
"end": 245,
|
|
"name": "ISZERO",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 243,
|
|
"end": 245,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "21"
|
|
},
|
|
{
|
|
"begin": 243,
|
|
"end": 245,
|
|
"name": "JUMPI",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 291,
|
|
"end": 292,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 288,
|
|
"end": 289,
|
|
"name": "DUP1",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 281,
|
|
"end": 293,
|
|
"name": "REVERT",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 243,
|
|
"end": 245,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "21"
|
|
},
|
|
{
|
|
"begin": 243,
|
|
"end": 245,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 334,
|
|
"end": 335,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 359,
|
|
"end": 423,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "22"
|
|
},
|
|
{
|
|
"begin": 415,
|
|
"end": 422,
|
|
"name": "DUP5",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 406,
|
|
"end": 412,
|
|
"name": "DUP3",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 395,
|
|
"end": 404,
|
|
"name": "DUP6",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 391,
|
|
"end": 413,
|
|
"name": "ADD",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 359,
|
|
"end": 423,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "16"
|
|
},
|
|
{
|
|
"begin": 359,
|
|
"end": 423,
|
|
"name": "JUMP",
|
|
"source": 3,
|
|
"value": "[in]"
|
|
},
|
|
{
|
|
"begin": 359,
|
|
"end": 423,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "22"
|
|
},
|
|
{
|
|
"begin": 359,
|
|
"end": 423,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 349,
|
|
"end": 423,
|
|
"name": "SWAP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 349,
|
|
"end": 423,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 305,
|
|
"end": 433,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 233,
|
|
"end": 440,
|
|
"name": "SWAP3",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 233,
|
|
"end": 440,
|
|
"name": "SWAP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 233,
|
|
"end": 440,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 233,
|
|
"end": 440,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 233,
|
|
"end": 440,
|
|
"name": "JUMP",
|
|
"source": 3,
|
|
"value": "[out]"
|
|
},
|
|
{
|
|
"begin": 446,
|
|
"end": 542,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "23"
|
|
},
|
|
{
|
|
"begin": 446,
|
|
"end": 542,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 446,
|
|
"end": 542,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 512,
|
|
"end": 536,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "25"
|
|
},
|
|
{
|
|
"begin": 530,
|
|
"end": 535,
|
|
"name": "DUP3",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 512,
|
|
"end": 536,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "26"
|
|
},
|
|
{
|
|
"begin": 512,
|
|
"end": 536,
|
|
"name": "JUMP",
|
|
"source": 3,
|
|
"value": "[in]"
|
|
},
|
|
{
|
|
"begin": 512,
|
|
"end": 536,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "25"
|
|
},
|
|
{
|
|
"begin": 512,
|
|
"end": 536,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 501,
|
|
"end": 536,
|
|
"name": "SWAP1",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 501,
|
|
"end": 536,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 491,
|
|
"end": 542,
|
|
"name": "SWAP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 491,
|
|
"end": 542,
|
|
"name": "SWAP1",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 491,
|
|
"end": 542,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 491,
|
|
"end": 542,
|
|
"name": "JUMP",
|
|
"source": 3,
|
|
"value": "[out]"
|
|
},
|
|
{
|
|
"begin": 548,
|
|
"end": 674,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "26"
|
|
},
|
|
{
|
|
"begin": 548,
|
|
"end": 674,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 548,
|
|
"end": 674,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 625,
|
|
"end": 667,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
|
},
|
|
{
|
|
"begin": 618,
|
|
"end": 623,
|
|
"name": "DUP3",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 614,
|
|
"end": 668,
|
|
"name": "AND",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 603,
|
|
"end": 668,
|
|
"name": "SWAP1",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 603,
|
|
"end": 668,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 593,
|
|
"end": 674,
|
|
"name": "SWAP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 593,
|
|
"end": 674,
|
|
"name": "SWAP1",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 593,
|
|
"end": 674,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 593,
|
|
"end": 674,
|
|
"name": "JUMP",
|
|
"source": 3,
|
|
"value": "[out]"
|
|
},
|
|
{
|
|
"begin": 680,
|
|
"end": 802,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "19"
|
|
},
|
|
{
|
|
"begin": 680,
|
|
"end": 802,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 753,
|
|
"end": 777,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "29"
|
|
},
|
|
{
|
|
"begin": 771,
|
|
"end": 776,
|
|
"name": "DUP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 753,
|
|
"end": 777,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "23"
|
|
},
|
|
{
|
|
"begin": 753,
|
|
"end": 777,
|
|
"name": "JUMP",
|
|
"source": 3,
|
|
"value": "[in]"
|
|
},
|
|
{
|
|
"begin": 753,
|
|
"end": 777,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "29"
|
|
},
|
|
{
|
|
"begin": 753,
|
|
"end": 777,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 746,
|
|
"end": 751,
|
|
"name": "DUP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 743,
|
|
"end": 778,
|
|
"name": "EQ",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 733,
|
|
"end": 735,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "30"
|
|
},
|
|
{
|
|
"begin": 733,
|
|
"end": 735,
|
|
"name": "JUMPI",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 792,
|
|
"end": 793,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 789,
|
|
"end": 790,
|
|
"name": "DUP1",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 782,
|
|
"end": 794,
|
|
"name": "REVERT",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 733,
|
|
"end": 735,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "30"
|
|
},
|
|
{
|
|
"begin": 733,
|
|
"end": 735,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 723,
|
|
"end": 802,
|
|
"name": "POP",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 723,
|
|
"end": 802,
|
|
"name": "JUMP",
|
|
"source": 3,
|
|
"value": "[out]"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "tag",
|
|
"source": 2,
|
|
"value": "14"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "JUMPDEST",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "80"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "MLOAD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "60"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "SHR",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "A0"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "MLOAD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "60"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "SHR",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH #[$]",
|
|
"source": 2,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH [$]",
|
|
"source": 2,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "CODECOPY",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "ASSIGNIMMUTABLE",
|
|
"source": 2,
|
|
"value": "557"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "ASSIGNIMMUTABLE",
|
|
"source": 2,
|
|
"value": "555"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH #[$]",
|
|
"source": 2,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "RETURN",
|
|
"source": 2
|
|
}
|
|
],
|
|
".data": {
|
|
"0": {
|
|
".auxdata": "a2646970667358221220daf900886916f17feec468f27f220ef16360bf5aa840983046484d3c25fb9eac64736f6c63430008030033",
|
|
".code": [
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "80"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 220,
|
|
"end": 1735,
|
|
"name": "REVERT",
|
|
"source": 2
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"methodIdentifiers": {}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.3+commit.8d00100c\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_uniswapRouter\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/modules/common/SimpleOracle.sol\":\"SimpleOracle\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol\":{\"keccak256\":\"0x7c9bc70e5996c763e02ff38905282bc24fb242b0ef2519a003b36824fc524a4b\",\"urls\":[\"bzz-raw://85d5ad2dd23ee127f40907a12865a1e8cb5828814f6f2480285e1827dd72dedf\",\"dweb:/ipfs/QmayKQWJgWmr46DqWseADyUanmqxh662hPNdAkdHRjiQQH\"]},\"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol\":{\"keccak256\":\"0x8a3c5c449d4b7cd76513ed6995f4b86e4a86f222c770f8442f5fc128ce29b4d2\",\"urls\":[\"bzz-raw://1df63ca373dafae3bd0ee7fe70f890a1dc7c45ed869c01de68413e0e97ff9deb\",\"dweb:/ipfs/QmefJgEYGUL8KX7kQKYTrDweF8GB7yjy3nw5Bmqzryg7PG\"]},\"contracts/modules/common/SimpleOracle.sol\":{\"keccak256\":\"0x551e7f920aa5b02feeabbac24f23c45d745221f7b133b3ed975de1a21d514d88\",\"license\":\"GPL-3.0-only\",\"urls\":[\"bzz-raw://aec67514a3e109ac41a1661eb735536b185375a7184c1f928bc91780499c06aa\",\"dweb:/ipfs/QmWzBh5zzTd8a9L7CLw686UsgZdgmwwAmN8ezH1ntgYq3f\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"errors": [
|
|
{
|
|
"component": "general",
|
|
"errorCode": "1878",
|
|
"formattedMessage": "Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.\n--> @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol\n\n",
|
|
"message": "SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.",
|
|
"severity": "warning",
|
|
"sourceLocation": {
|
|
"end": -1,
|
|
"file": "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol",
|
|
"start": -1
|
|
},
|
|
"type": "Warning"
|
|
},
|
|
{
|
|
"component": "general",
|
|
"errorCode": "1878",
|
|
"formattedMessage": "Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.\n--> @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol\n\n",
|
|
"message": "SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.",
|
|
"severity": "warning",
|
|
"sourceLocation": {
|
|
"end": -1,
|
|
"file": "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol",
|
|
"start": -1
|
|
},
|
|
"type": "Warning"
|
|
}
|
|
],
|
|
"sources": {
|
|
"@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol": {
|
|
"ast": {
|
|
"absolutePath": "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol",
|
|
"exportedSymbols": {
|
|
"IUniswapV2Pair": [
|
|
241
|
|
]
|
|
},
|
|
"id": 242,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
">=",
|
|
"0.5",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:24:0"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 241,
|
|
"linearizedBaseContracts": [
|
|
241
|
|
],
|
|
"name": "IUniswapV2Pair",
|
|
"nameLocation": "36:14:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"anonymous": false,
|
|
"id": 9,
|
|
"name": "Approval",
|
|
"nameLocation": "63:8:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 8,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "88:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 9,
|
|
"src": "72:21:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 2,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "72:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "spender",
|
|
"nameLocation": "111:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 9,
|
|
"src": "95:23:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 4,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "95:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 7,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "value",
|
|
"nameLocation": "125:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 9,
|
|
"src": "120:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 6,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "120:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "71:60:0"
|
|
},
|
|
"src": "57:75:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"id": 17,
|
|
"name": "Transfer",
|
|
"nameLocation": "143:8:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 16,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 11,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "from",
|
|
"nameLocation": "168:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "152:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 10,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "152:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 13,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "190:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "174:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 12,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "174:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 15,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "value",
|
|
"nameLocation": "199:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17,
|
|
"src": "194:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 14,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "194:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "151:54:0"
|
|
},
|
|
"src": "137:69:0"
|
|
},
|
|
{
|
|
"functionSelector": "06fdde03",
|
|
"id": 22,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "name",
|
|
"nameLocation": "221:4:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 18,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "225:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 21,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 20,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "251:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 19,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "251:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "250:15:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "212:54:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "95d89b41",
|
|
"id": 27,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "symbol",
|
|
"nameLocation": "280:6:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 23,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "286:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 26,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 25,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 27,
|
|
"src": "312:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 24,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "312:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "311:15:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "271:56:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "313ce567",
|
|
"id": 32,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "decimals",
|
|
"nameLocation": "341:8:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 28,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "349:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 31,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 30,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 32,
|
|
"src": "375:5:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 29,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "375:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "374:7:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "332:50:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "18160ddd",
|
|
"id": 37,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "totalSupply",
|
|
"nameLocation": "396:11:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 33,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "407:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 36,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 35,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 37,
|
|
"src": "433:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 34,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "433:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "432:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "387:52:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "70a08231",
|
|
"id": 44,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "balanceOf",
|
|
"nameLocation": "453:9:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 40,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 39,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "471:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 44,
|
|
"src": "463:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 38,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "463:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "462:15:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 43,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 42,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 44,
|
|
"src": "501:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 41,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "501:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "500:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "444:63:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "dd62ed3e",
|
|
"id": 53,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "allowance",
|
|
"nameLocation": "521:9:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 49,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 46,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "539:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 53,
|
|
"src": "531:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 45,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "531:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 48,
|
|
"mutability": "mutable",
|
|
"name": "spender",
|
|
"nameLocation": "554:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 53,
|
|
"src": "546:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 47,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "546:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "530:32:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 52,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 51,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 53,
|
|
"src": "586:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 50,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "586:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "585:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "512:80:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "095ea7b3",
|
|
"id": 62,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "approve",
|
|
"nameLocation": "607:7:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 58,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 55,
|
|
"mutability": "mutable",
|
|
"name": "spender",
|
|
"nameLocation": "623:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 62,
|
|
"src": "615:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 54,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "615:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 57,
|
|
"mutability": "mutable",
|
|
"name": "value",
|
|
"nameLocation": "637:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 62,
|
|
"src": "632:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 56,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "632:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "614:29:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 61,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 60,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 62,
|
|
"src": "662:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 59,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "662:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "661:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "598:70:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "a9059cbb",
|
|
"id": 71,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "transfer",
|
|
"nameLocation": "682:8:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 67,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 64,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "699:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 71,
|
|
"src": "691:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 63,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "691:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 66,
|
|
"mutability": "mutable",
|
|
"name": "value",
|
|
"nameLocation": "708:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 71,
|
|
"src": "703:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 65,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "703:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "690:24:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 70,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 69,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 71,
|
|
"src": "733:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 68,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "733:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "732:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "673:66:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "23b872dd",
|
|
"id": 82,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "transferFrom",
|
|
"nameLocation": "753:12:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 78,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 73,
|
|
"mutability": "mutable",
|
|
"name": "from",
|
|
"nameLocation": "774:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 82,
|
|
"src": "766:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 72,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "766:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 75,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "788:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 82,
|
|
"src": "780:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 74,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "780:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 77,
|
|
"mutability": "mutable",
|
|
"name": "value",
|
|
"nameLocation": "797:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 82,
|
|
"src": "792:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 76,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "792:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "765:38:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 81,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 80,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 82,
|
|
"src": "822:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 79,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "822:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "821:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "744:84:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "3644e515",
|
|
"id": 87,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "DOMAIN_SEPARATOR",
|
|
"nameLocation": "843:16:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 83,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "859:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 86,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 85,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 87,
|
|
"src": "885:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 84,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "885:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "884:9:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "834:60:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "30adf81f",
|
|
"id": 92,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "PERMIT_TYPEHASH",
|
|
"nameLocation": "908:15:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 88,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "923:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 91,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 90,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 92,
|
|
"src": "949:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 89,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "949:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "948:9:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "899:59:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "7ecebe00",
|
|
"id": 99,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "nonces",
|
|
"nameLocation": "972:6:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 95,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 94,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "987:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 99,
|
|
"src": "979:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 93,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "979:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "978:15:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 98,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 97,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 99,
|
|
"src": "1017:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 96,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1017:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1016:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "963:60:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "d505accf",
|
|
"id": 116,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "permit",
|
|
"nameLocation": "1038:6:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 114,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 101,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "1053:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "1045:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 100,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1045:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 103,
|
|
"mutability": "mutable",
|
|
"name": "spender",
|
|
"nameLocation": "1068:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "1060:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 102,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1060:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 105,
|
|
"mutability": "mutable",
|
|
"name": "value",
|
|
"nameLocation": "1082:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "1077:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 104,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1077:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 107,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "1094:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "1089:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 106,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1089:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 109,
|
|
"mutability": "mutable",
|
|
"name": "v",
|
|
"nameLocation": "1110:1:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "1104:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 108,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1104:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 111,
|
|
"mutability": "mutable",
|
|
"name": "r",
|
|
"nameLocation": "1121:1:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "1113:9:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 110,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1113:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 113,
|
|
"mutability": "mutable",
|
|
"name": "s",
|
|
"nameLocation": "1132:1:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "1124:9:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 112,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1124:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1044:90:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 115,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1143:0:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "1029:115:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"id": 124,
|
|
"name": "Mint",
|
|
"nameLocation": "1156:4:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 123,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 118,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "sender",
|
|
"nameLocation": "1177:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 124,
|
|
"src": "1161:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 117,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1161:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 120,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount0",
|
|
"nameLocation": "1190:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 124,
|
|
"src": "1185:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 119,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1185:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 122,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount1",
|
|
"nameLocation": "1204:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 124,
|
|
"src": "1199:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 121,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1199:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1160:52:0"
|
|
},
|
|
"src": "1150:63:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"id": 134,
|
|
"name": "Burn",
|
|
"nameLocation": "1224:4:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 133,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 126,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "sender",
|
|
"nameLocation": "1245:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 134,
|
|
"src": "1229:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 125,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1229:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 128,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount0",
|
|
"nameLocation": "1258:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 134,
|
|
"src": "1253:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 127,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1253:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 130,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount1",
|
|
"nameLocation": "1272:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 134,
|
|
"src": "1267:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 129,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1267:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 132,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "1297:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 134,
|
|
"src": "1281:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 131,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1281:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1228:72:0"
|
|
},
|
|
"src": "1218:83:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"id": 148,
|
|
"name": "Swap",
|
|
"nameLocation": "1312:4:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 147,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 136,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "sender",
|
|
"nameLocation": "1342:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 148,
|
|
"src": "1326:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 135,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1326:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 138,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount0In",
|
|
"nameLocation": "1363:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 148,
|
|
"src": "1358:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 137,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1358:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 140,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount1In",
|
|
"nameLocation": "1387:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 148,
|
|
"src": "1382:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 139,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1382:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 142,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount0Out",
|
|
"nameLocation": "1411:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 148,
|
|
"src": "1406:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 141,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1406:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 144,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount1Out",
|
|
"nameLocation": "1436:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 148,
|
|
"src": "1431:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 143,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1431:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 146,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "1472:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 148,
|
|
"src": "1456:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 145,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1456:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1316:164:0"
|
|
},
|
|
"src": "1306:175:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"id": 154,
|
|
"name": "Sync",
|
|
"nameLocation": "1492:4:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 153,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 150,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "reserve0",
|
|
"nameLocation": "1505:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 154,
|
|
"src": "1497:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint112",
|
|
"typeString": "uint112"
|
|
},
|
|
"typeName": {
|
|
"id": 149,
|
|
"name": "uint112",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1497:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint112",
|
|
"typeString": "uint112"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 152,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "reserve1",
|
|
"nameLocation": "1523:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 154,
|
|
"src": "1515:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint112",
|
|
"typeString": "uint112"
|
|
},
|
|
"typeName": {
|
|
"id": 151,
|
|
"name": "uint112",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1515:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint112",
|
|
"typeString": "uint112"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1496:36:0"
|
|
},
|
|
"src": "1486:47:0"
|
|
},
|
|
{
|
|
"functionSelector": "ba9a7a56",
|
|
"id": 159,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "MINIMUM_LIQUIDITY",
|
|
"nameLocation": "1548:17:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 155,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1565:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 158,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 157,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 159,
|
|
"src": "1591:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 156,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1591:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1590:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "1539:58:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "c45a0155",
|
|
"id": 164,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "factory",
|
|
"nameLocation": "1611:7:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 160,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1618:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 163,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 162,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 164,
|
|
"src": "1644:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 161,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1644:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1643:9:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "1602:51:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "0dfe1681",
|
|
"id": 169,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "token0",
|
|
"nameLocation": "1667:6:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 165,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1673:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 168,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 167,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 169,
|
|
"src": "1699:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 166,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1699:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1698:9:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "1658:50:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "d21220a7",
|
|
"id": 174,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "token1",
|
|
"nameLocation": "1722:6:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 170,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1728:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 173,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 172,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 174,
|
|
"src": "1754:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 171,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1754:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1753:9:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "1713:50:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "0902f1ac",
|
|
"id": 183,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getReserves",
|
|
"nameLocation": "1777:11:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 175,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1788:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 182,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 177,
|
|
"mutability": "mutable",
|
|
"name": "reserve0",
|
|
"nameLocation": "1822:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 183,
|
|
"src": "1814:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint112",
|
|
"typeString": "uint112"
|
|
},
|
|
"typeName": {
|
|
"id": 176,
|
|
"name": "uint112",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1814:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint112",
|
|
"typeString": "uint112"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 179,
|
|
"mutability": "mutable",
|
|
"name": "reserve1",
|
|
"nameLocation": "1840:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 183,
|
|
"src": "1832:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint112",
|
|
"typeString": "uint112"
|
|
},
|
|
"typeName": {
|
|
"id": 178,
|
|
"name": "uint112",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1832:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint112",
|
|
"typeString": "uint112"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 181,
|
|
"mutability": "mutable",
|
|
"name": "blockTimestampLast",
|
|
"nameLocation": "1857:18:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 183,
|
|
"src": "1850:25:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 180,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1850:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1813:63:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "1768:109:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "5909c0d5",
|
|
"id": 188,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "price0CumulativeLast",
|
|
"nameLocation": "1891:20:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 184,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1911:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 187,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 186,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 188,
|
|
"src": "1937:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 185,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1937:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1936:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "1882:61:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "5a3d5493",
|
|
"id": 193,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "price1CumulativeLast",
|
|
"nameLocation": "1957:20:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 189,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1977:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 192,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 191,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 193,
|
|
"src": "2003:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 190,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2003:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2002:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "1948:61:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "7464fc3d",
|
|
"id": 198,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "kLast",
|
|
"nameLocation": "2023:5:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 194,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2028:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 197,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 196,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 198,
|
|
"src": "2054:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 195,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2054:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2053:6:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "2014:46:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "6a627842",
|
|
"id": 205,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mint",
|
|
"nameLocation": "2075:4:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 201,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 200,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2088:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 205,
|
|
"src": "2080:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 199,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2080:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2079:12:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 204,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 203,
|
|
"mutability": "mutable",
|
|
"name": "liquidity",
|
|
"nameLocation": "2115:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 205,
|
|
"src": "2110:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 202,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2110:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2109:16:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "2066:60:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "89afcb44",
|
|
"id": 214,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "burn",
|
|
"nameLocation": "2140:4:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 208,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 207,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2153:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 214,
|
|
"src": "2145:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 206,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2145:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2144:12:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 213,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 210,
|
|
"mutability": "mutable",
|
|
"name": "amount0",
|
|
"nameLocation": "2180:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 214,
|
|
"src": "2175:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 209,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2175:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 212,
|
|
"mutability": "mutable",
|
|
"name": "amount1",
|
|
"nameLocation": "2194:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 214,
|
|
"src": "2189:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 211,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2189:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2174:28:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "2131:72:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "022c0d9f",
|
|
"id": 225,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "swap",
|
|
"nameLocation": "2217:4:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 223,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 216,
|
|
"mutability": "mutable",
|
|
"name": "amount0Out",
|
|
"nameLocation": "2227:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 225,
|
|
"src": "2222:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 215,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2222:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 218,
|
|
"mutability": "mutable",
|
|
"name": "amount1Out",
|
|
"nameLocation": "2244:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 225,
|
|
"src": "2239:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 217,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2239:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 220,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2264:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 225,
|
|
"src": "2256:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 219,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2256:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 222,
|
|
"mutability": "mutable",
|
|
"name": "data",
|
|
"nameLocation": "2283:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 225,
|
|
"src": "2268:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 221,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2268:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2221:67:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 224,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2297:0:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "2208:90:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "bc25cf77",
|
|
"id": 230,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "skim",
|
|
"nameLocation": "2312:4:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 228,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 227,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2325:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 230,
|
|
"src": "2317:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 226,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2317:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2316:12:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 229,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2337:0:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "2303:35:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "fff6cae9",
|
|
"id": 233,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "sync",
|
|
"nameLocation": "2352:4:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 231,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2356:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 232,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2367:0:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "2343:25:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "485cc955",
|
|
"id": 240,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "initialize",
|
|
"nameLocation": "2383:10:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 238,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 235,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 240,
|
|
"src": "2394:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 234,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2394:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 237,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 240,
|
|
"src": "2403:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 236,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2403:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2393:18:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 239,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2420:0:0"
|
|
},
|
|
"scope": 241,
|
|
"src": "2374:47:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 242,
|
|
"src": "26:2397:0"
|
|
}
|
|
],
|
|
"src": "0:2424:0"
|
|
},
|
|
"id": 0
|
|
},
|
|
"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol": {
|
|
"ast": {
|
|
"absolutePath": "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol",
|
|
"exportedSymbols": {
|
|
"IUniswapV2Router01": [
|
|
549
|
|
]
|
|
},
|
|
"id": 550,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 243,
|
|
"literals": [
|
|
"solidity",
|
|
">=",
|
|
"0.6",
|
|
".2"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:24:1"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 549,
|
|
"linearizedBaseContracts": [
|
|
549
|
|
],
|
|
"name": "IUniswapV2Router01",
|
|
"nameLocation": "36:18:1",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"functionSelector": "c45a0155",
|
|
"id": 248,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "factory",
|
|
"nameLocation": "70:7:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 244,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "77:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 247,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 246,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 248,
|
|
"src": "103:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 245,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "103:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "102:9:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "61:51:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "ad5c4648",
|
|
"id": 253,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "WETH",
|
|
"nameLocation": "126:4:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 249,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "130:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 252,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 251,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 253,
|
|
"src": "156:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 250,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "156:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "155:9:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "117:48:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "e8e33700",
|
|
"id": 278,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "addLiquidity",
|
|
"nameLocation": "180:12:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 270,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 255,
|
|
"mutability": "mutable",
|
|
"name": "tokenA",
|
|
"nameLocation": "210:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "202:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 254,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "202:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 257,
|
|
"mutability": "mutable",
|
|
"name": "tokenB",
|
|
"nameLocation": "234:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "226:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 256,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "226:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 259,
|
|
"mutability": "mutable",
|
|
"name": "amountADesired",
|
|
"nameLocation": "255:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "250:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 258,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "250:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 261,
|
|
"mutability": "mutable",
|
|
"name": "amountBDesired",
|
|
"nameLocation": "284:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "279:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 260,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "279:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 263,
|
|
"mutability": "mutable",
|
|
"name": "amountAMin",
|
|
"nameLocation": "313:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "308:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 262,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "308:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 265,
|
|
"mutability": "mutable",
|
|
"name": "amountBMin",
|
|
"nameLocation": "338:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "333:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 264,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "333:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 267,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "366:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "358:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 266,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "358:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 269,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "383:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "378:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 268,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "378:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "192:205:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 277,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 272,
|
|
"mutability": "mutable",
|
|
"name": "amountA",
|
|
"nameLocation": "421:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "416:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 271,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "416:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 274,
|
|
"mutability": "mutable",
|
|
"name": "amountB",
|
|
"nameLocation": "435:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "430:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 273,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "430:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 276,
|
|
"mutability": "mutable",
|
|
"name": "liquidity",
|
|
"nameLocation": "449:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 278,
|
|
"src": "444:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 275,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "444:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "415:44:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "171:289:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "f305d719",
|
|
"id": 299,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "addLiquidityETH",
|
|
"nameLocation": "474:15:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 291,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 280,
|
|
"mutability": "mutable",
|
|
"name": "token",
|
|
"nameLocation": "507:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 299,
|
|
"src": "499:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 279,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "499:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 282,
|
|
"mutability": "mutable",
|
|
"name": "amountTokenDesired",
|
|
"nameLocation": "527:18:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 299,
|
|
"src": "522:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 281,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "522:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 284,
|
|
"mutability": "mutable",
|
|
"name": "amountTokenMin",
|
|
"nameLocation": "560:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 299,
|
|
"src": "555:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 283,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "555:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 286,
|
|
"mutability": "mutable",
|
|
"name": "amountETHMin",
|
|
"nameLocation": "589:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 299,
|
|
"src": "584:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 285,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "584:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 288,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "619:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 299,
|
|
"src": "611:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 287,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "611:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 290,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "636:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 299,
|
|
"src": "631:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 289,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "631:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "489:161:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 298,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 293,
|
|
"mutability": "mutable",
|
|
"name": "amountToken",
|
|
"nameLocation": "682:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 299,
|
|
"src": "677:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 292,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "677:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 295,
|
|
"mutability": "mutable",
|
|
"name": "amountETH",
|
|
"nameLocation": "700:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 299,
|
|
"src": "695:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 294,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "695:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 297,
|
|
"mutability": "mutable",
|
|
"name": "liquidity",
|
|
"nameLocation": "716:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 299,
|
|
"src": "711:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 296,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "711:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "676:50:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "465:262:1",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "baa2abde",
|
|
"id": 320,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "removeLiquidity",
|
|
"nameLocation": "741:15:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 314,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 301,
|
|
"mutability": "mutable",
|
|
"name": "tokenA",
|
|
"nameLocation": "774:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 320,
|
|
"src": "766:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 300,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "766:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 303,
|
|
"mutability": "mutable",
|
|
"name": "tokenB",
|
|
"nameLocation": "798:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 320,
|
|
"src": "790:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 302,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "790:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 305,
|
|
"mutability": "mutable",
|
|
"name": "liquidity",
|
|
"nameLocation": "819:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 320,
|
|
"src": "814:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 304,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "814:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 307,
|
|
"mutability": "mutable",
|
|
"name": "amountAMin",
|
|
"nameLocation": "843:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 320,
|
|
"src": "838:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 306,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "838:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 309,
|
|
"mutability": "mutable",
|
|
"name": "amountBMin",
|
|
"nameLocation": "868:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 320,
|
|
"src": "863:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 308,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "863:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 311,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "896:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 320,
|
|
"src": "888:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 310,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "888:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 313,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "913:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 320,
|
|
"src": "908:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 312,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "908:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "756:171:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 319,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 316,
|
|
"mutability": "mutable",
|
|
"name": "amountA",
|
|
"nameLocation": "951:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 320,
|
|
"src": "946:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 315,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "946:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 318,
|
|
"mutability": "mutable",
|
|
"name": "amountB",
|
|
"nameLocation": "965:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 320,
|
|
"src": "960:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 317,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "960:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "945:28:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "732:242:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "02751cec",
|
|
"id": 339,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "removeLiquidityETH",
|
|
"nameLocation": "988:18:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 333,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 322,
|
|
"mutability": "mutable",
|
|
"name": "token",
|
|
"nameLocation": "1024:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 339,
|
|
"src": "1016:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 321,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1016:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 324,
|
|
"mutability": "mutable",
|
|
"name": "liquidity",
|
|
"nameLocation": "1044:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 339,
|
|
"src": "1039:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 323,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1039:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 326,
|
|
"mutability": "mutable",
|
|
"name": "amountTokenMin",
|
|
"nameLocation": "1068:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 339,
|
|
"src": "1063:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 325,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1063:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 328,
|
|
"mutability": "mutable",
|
|
"name": "amountETHMin",
|
|
"nameLocation": "1097:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 339,
|
|
"src": "1092:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 327,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1092:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 330,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "1127:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 339,
|
|
"src": "1119:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 329,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1119:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 332,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "1144:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 339,
|
|
"src": "1139:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 331,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1139:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1006:152:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 338,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 335,
|
|
"mutability": "mutable",
|
|
"name": "amountToken",
|
|
"nameLocation": "1182:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 339,
|
|
"src": "1177:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 334,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1177:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 337,
|
|
"mutability": "mutable",
|
|
"name": "amountETH",
|
|
"nameLocation": "1200:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 339,
|
|
"src": "1195:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 336,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1195:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1176:34:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "979:232:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "2195995c",
|
|
"id": 368,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "removeLiquidityWithPermit",
|
|
"nameLocation": "1225:25:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 362,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 341,
|
|
"mutability": "mutable",
|
|
"name": "tokenA",
|
|
"nameLocation": "1268:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1260:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 340,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1260:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 343,
|
|
"mutability": "mutable",
|
|
"name": "tokenB",
|
|
"nameLocation": "1292:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1284:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 342,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1284:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 345,
|
|
"mutability": "mutable",
|
|
"name": "liquidity",
|
|
"nameLocation": "1313:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1308:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 344,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1308:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 347,
|
|
"mutability": "mutable",
|
|
"name": "amountAMin",
|
|
"nameLocation": "1337:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1332:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 346,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1332:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 349,
|
|
"mutability": "mutable",
|
|
"name": "amountBMin",
|
|
"nameLocation": "1362:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1357:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 348,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1357:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 351,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "1390:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1382:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 350,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1382:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 353,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "1407:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1402:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 352,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1402:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 355,
|
|
"mutability": "mutable",
|
|
"name": "approveMax",
|
|
"nameLocation": "1430:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1425:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 354,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1425:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 357,
|
|
"mutability": "mutable",
|
|
"name": "v",
|
|
"nameLocation": "1448:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1442:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 356,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1442:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 359,
|
|
"mutability": "mutable",
|
|
"name": "r",
|
|
"nameLocation": "1459:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1451:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 358,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1451:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 361,
|
|
"mutability": "mutable",
|
|
"name": "s",
|
|
"nameLocation": "1470:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1462:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 360,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1462:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1250:227:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 367,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 364,
|
|
"mutability": "mutable",
|
|
"name": "amountA",
|
|
"nameLocation": "1501:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1496:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 363,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1496:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 366,
|
|
"mutability": "mutable",
|
|
"name": "amountB",
|
|
"nameLocation": "1515:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 368,
|
|
"src": "1510:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 365,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1510:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1495:28:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "1216:308:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "ded9382a",
|
|
"id": 395,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "removeLiquidityETHWithPermit",
|
|
"nameLocation": "1538:28:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 389,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 370,
|
|
"mutability": "mutable",
|
|
"name": "token",
|
|
"nameLocation": "1584:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1576:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 369,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1576:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 372,
|
|
"mutability": "mutable",
|
|
"name": "liquidity",
|
|
"nameLocation": "1604:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1599:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 371,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1599:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 374,
|
|
"mutability": "mutable",
|
|
"name": "amountTokenMin",
|
|
"nameLocation": "1628:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1623:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 373,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1623:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 376,
|
|
"mutability": "mutable",
|
|
"name": "amountETHMin",
|
|
"nameLocation": "1657:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1652:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 375,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1652:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 378,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "1687:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1679:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 377,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1679:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 380,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "1704:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1699:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 379,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1699:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 382,
|
|
"mutability": "mutable",
|
|
"name": "approveMax",
|
|
"nameLocation": "1727:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1722:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 381,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1722:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 384,
|
|
"mutability": "mutable",
|
|
"name": "v",
|
|
"nameLocation": "1745:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1739:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 383,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1739:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 386,
|
|
"mutability": "mutable",
|
|
"name": "r",
|
|
"nameLocation": "1756:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1748:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 385,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1748:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 388,
|
|
"mutability": "mutable",
|
|
"name": "s",
|
|
"nameLocation": "1767:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1759:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 387,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1759:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1566:208:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 394,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 391,
|
|
"mutability": "mutable",
|
|
"name": "amountToken",
|
|
"nameLocation": "1798:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1793:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 390,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1793:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 393,
|
|
"mutability": "mutable",
|
|
"name": "amountETH",
|
|
"nameLocation": "1816:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 395,
|
|
"src": "1811:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 392,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1811:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1792:34:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "1529:298:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "38ed1739",
|
|
"id": 412,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "swapExactTokensForTokens",
|
|
"nameLocation": "1841:24:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 407,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 397,
|
|
"mutability": "mutable",
|
|
"name": "amountIn",
|
|
"nameLocation": "1880:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "1875:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 396,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1875:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 399,
|
|
"mutability": "mutable",
|
|
"name": "amountOutMin",
|
|
"nameLocation": "1903:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "1898:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 398,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1898:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 402,
|
|
"mutability": "mutable",
|
|
"name": "path",
|
|
"nameLocation": "1944:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "1925:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 400,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1925:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 401,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "1925:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 404,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "1966:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "1958:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 403,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1958:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 406,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "1983:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "1978:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 405,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1978:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1865:132:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 411,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 410,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "2030:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "2016:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 408,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2016:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 409,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2016:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2015:23:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "1832:207:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "8803dbee",
|
|
"id": 429,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "swapTokensForExactTokens",
|
|
"nameLocation": "2053:24:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 424,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 414,
|
|
"mutability": "mutable",
|
|
"name": "amountOut",
|
|
"nameLocation": "2092:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 429,
|
|
"src": "2087:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 413,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2087:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 416,
|
|
"mutability": "mutable",
|
|
"name": "amountInMax",
|
|
"nameLocation": "2116:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 429,
|
|
"src": "2111:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 415,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2111:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 419,
|
|
"mutability": "mutable",
|
|
"name": "path",
|
|
"nameLocation": "2156:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 429,
|
|
"src": "2137:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 417,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2137:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 418,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2137:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 421,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2178:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 429,
|
|
"src": "2170:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 420,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2170:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 423,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "2195:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 429,
|
|
"src": "2190:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 422,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2190:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2077:132:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 428,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 427,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "2242:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 429,
|
|
"src": "2228:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 425,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2228:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 426,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2228:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2227:23:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "2044:207:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "7ff36ab5",
|
|
"id": 444,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "swapExactETHForTokens",
|
|
"nameLocation": "2265:21:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 439,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 431,
|
|
"mutability": "mutable",
|
|
"name": "amountOutMin",
|
|
"nameLocation": "2292:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "2287:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 430,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2287:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 434,
|
|
"mutability": "mutable",
|
|
"name": "path",
|
|
"nameLocation": "2325:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "2306:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 432,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2306:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 433,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2306:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 436,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2339:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "2331:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 435,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2331:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 438,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "2348:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "2343:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 437,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2343:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2286:71:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 443,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 442,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "2422:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "2408:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 440,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2408:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 441,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2408:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2407:23:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "2256:175:1",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "4a25d94a",
|
|
"id": 461,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "swapTokensForExactETH",
|
|
"nameLocation": "2445:21:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 456,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 446,
|
|
"mutability": "mutable",
|
|
"name": "amountOut",
|
|
"nameLocation": "2472:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 461,
|
|
"src": "2467:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 445,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2467:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 448,
|
|
"mutability": "mutable",
|
|
"name": "amountInMax",
|
|
"nameLocation": "2488:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 461,
|
|
"src": "2483:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 447,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2483:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 451,
|
|
"mutability": "mutable",
|
|
"name": "path",
|
|
"nameLocation": "2520:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 461,
|
|
"src": "2501:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 449,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2501:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 450,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2501:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 453,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2534:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 461,
|
|
"src": "2526:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 452,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2526:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 455,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "2543:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 461,
|
|
"src": "2538:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 454,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2538:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2466:86:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 460,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 459,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "2601:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 461,
|
|
"src": "2587:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 457,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2587:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 458,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2587:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2586:23:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "2436:174:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "18cbafe5",
|
|
"id": 478,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "swapExactTokensForETH",
|
|
"nameLocation": "2624:21:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 473,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 463,
|
|
"mutability": "mutable",
|
|
"name": "amountIn",
|
|
"nameLocation": "2651:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 478,
|
|
"src": "2646:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 462,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2646:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 465,
|
|
"mutability": "mutable",
|
|
"name": "amountOutMin",
|
|
"nameLocation": "2666:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 478,
|
|
"src": "2661:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 464,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2661:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 468,
|
|
"mutability": "mutable",
|
|
"name": "path",
|
|
"nameLocation": "2699:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 478,
|
|
"src": "2680:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 466,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2680:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 467,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2680:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 470,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2713:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 478,
|
|
"src": "2705:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 469,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2705:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 472,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "2722:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 478,
|
|
"src": "2717:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 471,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2717:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2645:86:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 477,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 476,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "2780:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 478,
|
|
"src": "2766:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 474,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2766:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 475,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2766:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2765:23:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "2615:174:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "fb3bdb41",
|
|
"id": 493,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "swapETHForExactTokens",
|
|
"nameLocation": "2803:21:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 488,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 480,
|
|
"mutability": "mutable",
|
|
"name": "amountOut",
|
|
"nameLocation": "2830:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 493,
|
|
"src": "2825:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 479,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2825:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 483,
|
|
"mutability": "mutable",
|
|
"name": "path",
|
|
"nameLocation": "2860:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 493,
|
|
"src": "2841:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 481,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2841:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 482,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2841:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 485,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2874:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 493,
|
|
"src": "2866:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 484,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2866:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 487,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "2883:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 493,
|
|
"src": "2878:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 486,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2878:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2824:68:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 492,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 491,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "2957:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 493,
|
|
"src": "2943:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 489,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2943:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 490,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2943:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2942:23:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "2794:172:1",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "ad615dec",
|
|
"id": 504,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "quote",
|
|
"nameLocation": "2981:5:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 500,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 495,
|
|
"mutability": "mutable",
|
|
"name": "amountA",
|
|
"nameLocation": "2992:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 504,
|
|
"src": "2987:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 494,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2987:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 497,
|
|
"mutability": "mutable",
|
|
"name": "reserveA",
|
|
"nameLocation": "3006:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 504,
|
|
"src": "3001:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 496,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3001:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 499,
|
|
"mutability": "mutable",
|
|
"name": "reserveB",
|
|
"nameLocation": "3021:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 504,
|
|
"src": "3016:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 498,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3016:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2986:44:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 503,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 502,
|
|
"mutability": "mutable",
|
|
"name": "amountB",
|
|
"nameLocation": "3059:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 504,
|
|
"src": "3054:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 501,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3054:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3053:14:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "2972:96:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "054d50d4",
|
|
"id": 515,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getAmountOut",
|
|
"nameLocation": "3082:12:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 511,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 506,
|
|
"mutability": "mutable",
|
|
"name": "amountIn",
|
|
"nameLocation": "3100:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 515,
|
|
"src": "3095:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 505,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3095:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 508,
|
|
"mutability": "mutable",
|
|
"name": "reserveIn",
|
|
"nameLocation": "3115:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 515,
|
|
"src": "3110:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 507,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3110:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 510,
|
|
"mutability": "mutable",
|
|
"name": "reserveOut",
|
|
"nameLocation": "3131:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 515,
|
|
"src": "3126:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 509,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3126:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3094:48:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 514,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 513,
|
|
"mutability": "mutable",
|
|
"name": "amountOut",
|
|
"nameLocation": "3171:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 515,
|
|
"src": "3166:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 512,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3166:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3165:16:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "3073:109:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "85f8c259",
|
|
"id": 526,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getAmountIn",
|
|
"nameLocation": "3196:11:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 522,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 517,
|
|
"mutability": "mutable",
|
|
"name": "amountOut",
|
|
"nameLocation": "3213:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 526,
|
|
"src": "3208:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 516,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3208:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 519,
|
|
"mutability": "mutable",
|
|
"name": "reserveIn",
|
|
"nameLocation": "3229:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 526,
|
|
"src": "3224:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 518,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3224:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 521,
|
|
"mutability": "mutable",
|
|
"name": "reserveOut",
|
|
"nameLocation": "3245:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 526,
|
|
"src": "3240:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 520,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3240:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3207:49:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 525,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 524,
|
|
"mutability": "mutable",
|
|
"name": "amountIn",
|
|
"nameLocation": "3285:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 526,
|
|
"src": "3280:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 523,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3280:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3279:15:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "3187:108:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "d06ca61f",
|
|
"id": 537,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getAmountsOut",
|
|
"nameLocation": "3309:13:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 532,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 528,
|
|
"mutability": "mutable",
|
|
"name": "amountIn",
|
|
"nameLocation": "3328:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 537,
|
|
"src": "3323:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 527,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3323:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 531,
|
|
"mutability": "mutable",
|
|
"name": "path",
|
|
"nameLocation": "3357:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 537,
|
|
"src": "3338:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 529,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3338:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 530,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "3338:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3322:40:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 536,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 535,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "3400:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 537,
|
|
"src": "3386:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 533,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3386:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 534,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "3386:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3385:23:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "3300:109:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "1f00ca74",
|
|
"id": 548,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getAmountsIn",
|
|
"nameLocation": "3423:12:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 543,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 539,
|
|
"mutability": "mutable",
|
|
"name": "amountOut",
|
|
"nameLocation": "3441:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 548,
|
|
"src": "3436:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 538,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3436:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 542,
|
|
"mutability": "mutable",
|
|
"name": "path",
|
|
"nameLocation": "3471:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 548,
|
|
"src": "3452:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 540,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3452:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 541,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "3452:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3435:41:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 547,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 546,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "3514:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 548,
|
|
"src": "3500:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 544,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3500:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 545,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "3500:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3499:23:1"
|
|
},
|
|
"scope": 549,
|
|
"src": "3414:109:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 550,
|
|
"src": "26:3499:1"
|
|
}
|
|
],
|
|
"src": "0:3526:1"
|
|
},
|
|
"id": 1
|
|
},
|
|
"contracts/modules/common/SimpleOracle.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/modules/common/SimpleOracle.sol",
|
|
"exportedSymbols": {
|
|
"IUniswapV2Pair": [
|
|
241
|
|
],
|
|
"IUniswapV2Router01": [
|
|
549
|
|
],
|
|
"SimpleOracle": [
|
|
702
|
|
]
|
|
},
|
|
"id": 703,
|
|
"license": "GPL-3.0-only",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 551,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".3"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "46:23:2"
|
|
},
|
|
{
|
|
"absolutePath": "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol",
|
|
"file": "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol",
|
|
"id": 552,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 703,
|
|
"sourceUnit": 550,
|
|
"src": "73:75:2",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"absolutePath": "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol",
|
|
"file": "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol",
|
|
"id": 553,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 703,
|
|
"sourceUnit": 242,
|
|
"src": "150:66:2",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"fullyImplemented": true,
|
|
"id": 702,
|
|
"linearizedBaseContracts": [
|
|
702
|
|
],
|
|
"name": "SimpleOracle",
|
|
"nameLocation": "229:12:2",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"constant": false,
|
|
"id": 555,
|
|
"mutability": "immutable",
|
|
"name": "weth",
|
|
"nameLocation": "278:4:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 702,
|
|
"src": "251:31:2",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 554,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "251:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 557,
|
|
"mutability": "immutable",
|
|
"name": "uniswapV2Factory",
|
|
"nameLocation": "316:16:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 702,
|
|
"src": "289:43:2",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 556,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "289:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 578,
|
|
"nodeType": "Block",
|
|
"src": "377:141:2",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"id": 568,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 562,
|
|
"name": "weth",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 555,
|
|
"src": "388:4:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 564,
|
|
"name": "_uniswapRouter",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 559,
|
|
"src": "414:14:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 563,
|
|
"name": "IUniswapV2Router01",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 549,
|
|
"src": "395:18:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_IUniswapV2Router01_$549_$",
|
|
"typeString": "type(contract IUniswapV2Router01)"
|
|
}
|
|
},
|
|
"id": 565,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "395:34:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IUniswapV2Router01_$549",
|
|
"typeString": "contract IUniswapV2Router01"
|
|
}
|
|
},
|
|
"id": 566,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "WETH",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 253,
|
|
"src": "395:39:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_pure$__$returns$_t_address_$",
|
|
"typeString": "function () pure external returns (address)"
|
|
}
|
|
},
|
|
"id": 567,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "395:41:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "388:48:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 569,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "388:48:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 576,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 570,
|
|
"name": "uniswapV2Factory",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 557,
|
|
"src": "447:16:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 572,
|
|
"name": "_uniswapRouter",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 559,
|
|
"src": "485:14:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 571,
|
|
"name": "IUniswapV2Router01",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 549,
|
|
"src": "466:18:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_IUniswapV2Router01_$549_$",
|
|
"typeString": "type(contract IUniswapV2Router01)"
|
|
}
|
|
},
|
|
"id": 573,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "466:34:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IUniswapV2Router01_$549",
|
|
"typeString": "contract IUniswapV2Router01"
|
|
}
|
|
},
|
|
"id": 574,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "factory",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 248,
|
|
"src": "466:42:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_pure$__$returns$_t_address_$",
|
|
"typeString": "function () pure external returns (address)"
|
|
}
|
|
},
|
|
"id": 575,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "466:44:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "447:63:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 577,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "447:63:2"
|
|
}
|
|
]
|
|
},
|
|
"id": 579,
|
|
"implemented": true,
|
|
"kind": "constructor",
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 560,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 559,
|
|
"mutability": "mutable",
|
|
"name": "_uniswapRouter",
|
|
"nameLocation": "361:14:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 579,
|
|
"src": "353:22:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 558,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "353:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "352:24:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 561,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "377:0:2"
|
|
},
|
|
"scope": 702,
|
|
"src": "341:177:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 602,
|
|
"nodeType": "Block",
|
|
"src": "611:153:2",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
589,
|
|
591
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 589,
|
|
"mutability": "mutable",
|
|
"name": "wethReserve",
|
|
"nameLocation": "631:11:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 602,
|
|
"src": "623:19:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 588,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "623:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 591,
|
|
"mutability": "mutable",
|
|
"name": "tokenReserve",
|
|
"nameLocation": "652:12:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 602,
|
|
"src": "644:20:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 590,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "644:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 595,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"id": 593,
|
|
"name": "_token",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 581,
|
|
"src": "692:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 592,
|
|
"name": "getReservesForTokenPool",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 664,
|
|
"src": "668:23:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$_t_uint256_$",
|
|
"typeString": "function (address) view returns (uint256,uint256)"
|
|
}
|
|
},
|
|
"id": 594,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "668:31:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
|
|
"typeString": "tuple(uint256,uint256)"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "622:77:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 600,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 598,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 596,
|
|
"name": "_ethAmount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 583,
|
|
"src": "717:10:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "*",
|
|
"rightExpression": {
|
|
"id": 597,
|
|
"name": "tokenReserve",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 591,
|
|
"src": "730:12:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "717:25:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "/",
|
|
"rightExpression": {
|
|
"id": 599,
|
|
"name": "wethReserve",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 589,
|
|
"src": "745:11:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "717:39:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 587,
|
|
"id": 601,
|
|
"nodeType": "Return",
|
|
"src": "710:46:2"
|
|
}
|
|
]
|
|
},
|
|
"id": 603,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "inToken",
|
|
"nameLocation": "535:7:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 584,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 581,
|
|
"mutability": "mutable",
|
|
"name": "_token",
|
|
"nameLocation": "551:6:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 603,
|
|
"src": "543:14:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 580,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "543:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 583,
|
|
"mutability": "mutable",
|
|
"name": "_ethAmount",
|
|
"nameLocation": "567:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 603,
|
|
"src": "559:18:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 582,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "559:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "542:36:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 587,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 586,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 603,
|
|
"src": "602:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 585,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "602:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "601:9:2"
|
|
},
|
|
"scope": 702,
|
|
"src": "526:238:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 663,
|
|
"nodeType": "Block",
|
|
"src": "887:424:2",
|
|
"statements": [
|
|
{
|
|
"condition": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"id": 614,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 612,
|
|
"name": "weth",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 555,
|
|
"src": "902:4:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression": {
|
|
"id": 613,
|
|
"name": "_token",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 605,
|
|
"src": "909:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "902:13:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"falseBody": {
|
|
"id": 650,
|
|
"nodeType": "Block",
|
|
"src": "1075:152:2",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
634
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 634,
|
|
"mutability": "mutable",
|
|
"name": "pair",
|
|
"nameLocation": "1098:4:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 650,
|
|
"src": "1090:12:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 633,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1090:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 639,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"id": 636,
|
|
"name": "_token",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 605,
|
|
"src": "1122:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"id": 637,
|
|
"name": "weth",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 555,
|
|
"src": "1130:4:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 635,
|
|
"name": "getPairForSorted",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 701,
|
|
"src": "1105:16:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_address_$",
|
|
"typeString": "function (address,address) view returns (address)"
|
|
}
|
|
},
|
|
"id": 638,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1105:30:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "1090:45:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 648,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"components": [
|
|
{
|
|
"id": 640,
|
|
"name": "tokenReserve",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 610,
|
|
"src": "1151:12:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"id": 641,
|
|
"name": "wethReserve",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 608,
|
|
"src": "1165:11:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
null
|
|
],
|
|
"id": 642,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "TupleExpression",
|
|
"src": "1150:28:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$__$",
|
|
"typeString": "tuple(uint256,uint256,)"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 644,
|
|
"name": "pair",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 634,
|
|
"src": "1196:4:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 643,
|
|
"name": "IUniswapV2Pair",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 241,
|
|
"src": "1181:14:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_IUniswapV2Pair_$241_$",
|
|
"typeString": "type(contract IUniswapV2Pair)"
|
|
}
|
|
},
|
|
"id": 645,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1181:20:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IUniswapV2Pair_$241",
|
|
"typeString": "contract IUniswapV2Pair"
|
|
}
|
|
},
|
|
"id": 646,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "getReserves",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 183,
|
|
"src": "1181:32:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_uint112_$_t_uint112_$_t_uint32_$",
|
|
"typeString": "function () view external returns (uint112,uint112,uint32)"
|
|
}
|
|
},
|
|
"id": 647,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1181:34:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_uint112_$_t_uint112_$_t_uint32_$",
|
|
"typeString": "tuple(uint112,uint112,uint32)"
|
|
}
|
|
},
|
|
"src": "1150:65:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 649,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1150:65:2"
|
|
}
|
|
]
|
|
},
|
|
"id": 651,
|
|
"nodeType": "IfStatement",
|
|
"src": "898:329:2",
|
|
"trueBody": {
|
|
"id": 632,
|
|
"nodeType": "Block",
|
|
"src": "917:152:2",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
616
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 616,
|
|
"mutability": "mutable",
|
|
"name": "pair",
|
|
"nameLocation": "940:4:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 632,
|
|
"src": "932:12:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 615,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "932:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 621,
|
|
"initialValue": {
|
|
"arguments": [
|
|
{
|
|
"id": 618,
|
|
"name": "weth",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 555,
|
|
"src": "964:4:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"id": 619,
|
|
"name": "_token",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 605,
|
|
"src": "970:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 617,
|
|
"name": "getPairForSorted",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 701,
|
|
"src": "947:16:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_address_$",
|
|
"typeString": "function (address,address) view returns (address)"
|
|
}
|
|
},
|
|
"id": 620,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "947:30:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "932:45:2"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 630,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"components": [
|
|
{
|
|
"id": 622,
|
|
"name": "wethReserve",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 608,
|
|
"src": "993:11:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"id": 623,
|
|
"name": "tokenReserve",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 610,
|
|
"src": "1006:12:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
null
|
|
],
|
|
"id": 624,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": true,
|
|
"nodeType": "TupleExpression",
|
|
"src": "992:28:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$__$",
|
|
"typeString": "tuple(uint256,uint256,)"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"arguments": [],
|
|
"expression": {
|
|
"argumentTypes": [],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 626,
|
|
"name": "pair",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 616,
|
|
"src": "1038:4:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 625,
|
|
"name": "IUniswapV2Pair",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 241,
|
|
"src": "1023:14:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_IUniswapV2Pair_$241_$",
|
|
"typeString": "type(contract IUniswapV2Pair)"
|
|
}
|
|
},
|
|
"id": 627,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1023:20:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IUniswapV2Pair_$241",
|
|
"typeString": "contract IUniswapV2Pair"
|
|
}
|
|
},
|
|
"id": 628,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "getReserves",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 183,
|
|
"src": "1023:32:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$__$returns$_t_uint112_$_t_uint112_$_t_uint32_$",
|
|
"typeString": "function () view external returns (uint112,uint112,uint32)"
|
|
}
|
|
},
|
|
"id": 629,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1023:34:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_uint112_$_t_uint112_$_t_uint32_$",
|
|
"typeString": "tuple(uint112,uint112,uint32)"
|
|
}
|
|
},
|
|
"src": "992:65:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 631,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "992:65:2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"id": 659,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 655,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 653,
|
|
"name": "wethReserve",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 608,
|
|
"src": "1245:11:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "!=",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 654,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1260:1:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1245:16:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "&&",
|
|
"rightExpression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 658,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 656,
|
|
"name": "tokenReserve",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 610,
|
|
"src": "1265:12:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "!=",
|
|
"rightExpression": {
|
|
"hexValue": "30",
|
|
"id": 657,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1281:1:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"src": "1265:17:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"src": "1245:37:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "534f3a206e6f206c6971756964697479",
|
|
"id": 660,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1284:18:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_68c1efd20965cb8bd3ac15d75935268dfb294ef8e8fcdf53fa28791ff1195e8b",
|
|
"typeString": "literal_string \"SO: no liquidity\""
|
|
},
|
|
"value": "SO: no liquidity"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_68c1efd20965cb8bd3ac15d75935268dfb294ef8e8fcdf53fa28791ff1195e8b",
|
|
"typeString": "literal_string \"SO: no liquidity\""
|
|
}
|
|
],
|
|
"id": 652,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "1237:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 661,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1237:66:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 662,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1237:66:2"
|
|
}
|
|
]
|
|
},
|
|
"id": 664,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getReservesForTokenPool",
|
|
"nameLocation": "781:23:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 606,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 605,
|
|
"mutability": "mutable",
|
|
"name": "_token",
|
|
"nameLocation": "813:6:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 664,
|
|
"src": "805:14:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 604,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "805:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "804:16:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 611,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 608,
|
|
"mutability": "mutable",
|
|
"name": "wethReserve",
|
|
"nameLocation": "852:11:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 664,
|
|
"src": "844:19:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 607,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "844:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 610,
|
|
"mutability": "mutable",
|
|
"name": "tokenReserve",
|
|
"nameLocation": "873:12:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 664,
|
|
"src": "865:20:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 609,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "865:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "843:43:2"
|
|
},
|
|
"scope": 702,
|
|
"src": "772:539:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 700,
|
|
"nodeType": "Block",
|
|
"src": "1422:310:2",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"id": 698,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 673,
|
|
"name": "pair",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 671,
|
|
"src": "1437:4:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"hexValue": "ff",
|
|
"id": 683,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "hexString",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1513:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_8b1a944cf13a9a1c08facb2c9e98623ef3254d2ddb48113885c3e8e97fec8db9",
|
|
"typeString": "literal_string hex\"ff\""
|
|
}
|
|
},
|
|
{
|
|
"id": 684,
|
|
"name": "uniswapV2Factory",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 557,
|
|
"src": "1539:16:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"id": 688,
|
|
"name": "tokenA",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 666,
|
|
"src": "1601:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"id": 689,
|
|
"name": "tokenB",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 668,
|
|
"src": "1609:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"expression": {
|
|
"id": 686,
|
|
"name": "abi",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967295,
|
|
"src": "1584:3:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_abi",
|
|
"typeString": "abi"
|
|
}
|
|
},
|
|
"id": 687,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"memberName": "encodePacked",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1584:16:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
|
|
"typeString": "function () pure returns (bytes memory)"
|
|
}
|
|
},
|
|
"id": 690,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1584:32:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes memory"
|
|
}
|
|
],
|
|
"id": 685,
|
|
"name": "keccak256",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967288,
|
|
"src": "1574:9:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
|
|
"typeString": "function (bytes memory) pure returns (bytes32)"
|
|
}
|
|
},
|
|
"id": 691,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1574:43:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f",
|
|
"id": 692,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "hexString",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "1636:69:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_66d76495d34dc7613deaf40ec013ef0fbd2f03604ae509b7212971c455edfb7a",
|
|
"typeString": "literal_string hex\"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f\""
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_stringliteral_8b1a944cf13a9a1c08facb2c9e98623ef3254d2ddb48113885c3e8e97fec8db9",
|
|
"typeString": "literal_string hex\"ff\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_66d76495d34dc7613deaf40ec013ef0fbd2f03604ae509b7212971c455edfb7a",
|
|
"typeString": "literal_string hex\"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f\""
|
|
}
|
|
],
|
|
"expression": {
|
|
"id": 681,
|
|
"name": "abi",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967295,
|
|
"src": "1478:3:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_abi",
|
|
"typeString": "abi"
|
|
}
|
|
},
|
|
"id": 682,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"memberName": "encodePacked",
|
|
"nodeType": "MemberAccess",
|
|
"src": "1478:16:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
|
|
"typeString": "function () pure returns (bytes memory)"
|
|
}
|
|
},
|
|
"id": 693,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1478:242:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes memory"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes memory"
|
|
}
|
|
],
|
|
"id": 680,
|
|
"name": "keccak256",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967288,
|
|
"src": "1468:9:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
|
|
"typeString": "function (bytes memory) pure returns (bytes32)"
|
|
}
|
|
},
|
|
"id": 694,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1468:253:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
],
|
|
"id": 679,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "1460:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_uint256_$",
|
|
"typeString": "type(uint256)"
|
|
},
|
|
"typeName": {
|
|
"id": 678,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1460:7:2",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 695,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1460:262:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 677,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "1452:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_uint160_$",
|
|
"typeString": "type(uint160)"
|
|
},
|
|
"typeName": {
|
|
"id": 676,
|
|
"name": "uint160",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1452:7:2",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 696,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1452:271:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint160",
|
|
"typeString": "uint160"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint160",
|
|
"typeString": "uint160"
|
|
}
|
|
],
|
|
"id": 675,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"nodeType": "ElementaryTypeNameExpression",
|
|
"src": "1444:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_address_$",
|
|
"typeString": "type(address)"
|
|
},
|
|
"typeName": {
|
|
"id": 674,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1444:7:2",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"id": 697,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "1444:280:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"src": "1437:287:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 699,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "1437:287:2"
|
|
}
|
|
]
|
|
},
|
|
"id": 701,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getPairForSorted",
|
|
"nameLocation": "1328:16:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 669,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 666,
|
|
"mutability": "mutable",
|
|
"name": "tokenA",
|
|
"nameLocation": "1353:6:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 701,
|
|
"src": "1345:14:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 665,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1345:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 668,
|
|
"mutability": "mutable",
|
|
"name": "tokenB",
|
|
"nameLocation": "1369:6:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 701,
|
|
"src": "1361:14:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 667,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1361:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1344:32:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 672,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 671,
|
|
"mutability": "mutable",
|
|
"name": "pair",
|
|
"nameLocation": "1416:4:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 701,
|
|
"src": "1408:12:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 670,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1408:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1407:14:2"
|
|
},
|
|
"scope": 702,
|
|
"src": "1319:413:2",
|
|
"stateMutability": "view",
|
|
"virtual": true,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 703,
|
|
"src": "220:1515:2"
|
|
}
|
|
],
|
|
"src": "46:1689:2"
|
|
},
|
|
"id": 2
|
|
}
|
|
}
|
|
}
|
|
} |