Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 2 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19415414 | 168 days ago | Contract Creation | 0 ETH | |||
15004353 | 797 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x1305597A...75Fc48edc The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
RARESwapFactory
Compiler Version
v0.5.16+commit.9c3226ce
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-06-17 */ pragma solidity >=0.5.0; interface IToken { function addPair(address pair, address token) external; function depositLPFee(uint amount, address token) external; } pragma solidity >=0.5.0; interface IRARESwapCallee { function rareSwapCall(address sender, uint amount0, uint amount1, bytes calldata data) external; } pragma solidity >=0.5.0; interface IERC20 { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); } pragma solidity =0.5.16; // a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format)) // range: [0, 2**112 - 1] // resolution: 1 / 2**112 library UQ112x112 { uint224 constant Q112 = 2**112; // encode a uint112 as a UQ112x112 function encode(uint112 y) internal pure returns (uint224 z) { z = uint224(y) * Q112; // never overflows } // divide a UQ112x112 by a uint112, returning a UQ112x112 function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) { z = x / uint224(y); } } pragma solidity =0.5.16; // a library for performing various math operations library Math { function min(uint x, uint y) internal pure returns (uint z) { z = x < y ? x : y; } // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) function sqrt(uint y) internal pure returns (uint z) { if (y > 3) { z = y; uint x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } } pragma solidity =0.5.16; // a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math) library SafeMath { function add(uint x, uint y) internal pure returns (uint z) { require((z = x + y) >= x, 'ds-math-add-overflow'); } function sub(uint x, uint y) internal pure returns (uint z) { require((z = x - y) <= x, 'ds-math-sub-underflow'); } function mul(uint x, uint y) internal pure returns (uint z) { require(y == 0 || (z = x * y) / y == x, 'ds-math-mul-overflow'); } function div(uint x, uint y) internal pure returns (uint z) { require(y > 0, "ds-math-div-underflow"); z = x / y; } } pragma solidity >=0.5.0; interface IRARESwapERC20 { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; } pragma solidity =0.5.16; contract RARESwapERC20 is IRARESwapERC20 { using SafeMath for uint; string public constant name = 'RARESwap-LP'; string public constant symbol = 'RARE-LP'; uint8 public constant decimals = 18; uint public totalSupply; mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) public allowance; bytes32 public DOMAIN_SEPARATOR; // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9; mapping(address => uint) public nonces; event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); constructor() public { uint chainId; assembly { chainId := chainid } DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'), keccak256(bytes(name)), keccak256(bytes('1')), chainId, address(this) ) ); } function _mint(address to, uint value) internal { totalSupply = totalSupply.add(value); balanceOf[to] = balanceOf[to].add(value); emit Transfer(address(0), to, value); } function _burn(address from, uint value) internal { balanceOf[from] = balanceOf[from].sub(value); totalSupply = totalSupply.sub(value); emit Transfer(from, address(0), value); } function _approve(address owner, address spender, uint value) private { allowance[owner][spender] = value; emit Approval(owner, spender, value); } function _transfer(address from, address to, uint value) private { balanceOf[from] = balanceOf[from].sub(value); balanceOf[to] = balanceOf[to].add(value); emit Transfer(from, to, value); } function approve(address spender, uint value) external returns (bool) { _approve(msg.sender, spender, value); return true; } function transfer(address to, uint value) external returns (bool) { _transfer(msg.sender, to, value); return true; } function transferFrom(address from, address to, uint value) external returns (bool) { if (allowance[from][msg.sender] != uint(-1)) { allowance[from][msg.sender] = allowance[from][msg.sender].sub(value); } _transfer(from, to, value); return true; } function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external { require(deadline >= block.timestamp, 'RARESwap: EXPIRED'); bytes32 digest = keccak256( abi.encodePacked( '\x19\x01', DOMAIN_SEPARATOR, keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline)) ) ); address recoveredAddress = ecrecover(digest, v, r, s); require(recoveredAddress != address(0) && recoveredAddress == owner, 'RARESwap: INVALID_SIGNATURE'); _approve(owner, spender, value); } } pragma solidity >=0.5.16; interface IRARESwapRouter { function pairFeeAddress(address pair) external view returns (address); function adminFee() external view returns (uint256); function feeAddressGet() external view returns (address); } pragma solidity >=0.5.0; interface IRARESwapPair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function baseToken() external view returns (address); function getTotalFee() external view returns (uint); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function updateTotalFee(uint totalFee) external returns (bool); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast, address _baseToken); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, uint amount0Fee, uint amount1Fee, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; function setBaseToken(address _baseToken) external; } pragma solidity >=0.5.0; interface IRARESwapFactory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function pairExist(address pair) external view returns (bool); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; function routerInitialize(address) external; function routerAddress() external view returns (address); } pragma solidity =0.5.16; contract RARESwapPair is IRARESwapPair, RARESwapERC20 { using SafeMath for uint; using UQ112x112 for uint224; uint public constant MINIMUM_LIQUIDITY = 10**3; bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)'))); IRARESwapRouter public routerAddress; address public factory; address public token0; address public token1; address public baseToken; uint public totalFee = 0; uint112 private reserve0; // uses single storage slot, accessible via getReserves uint112 private reserve1; // uses single storage slot, accessible via getReserves uint32 private blockTimestampLast; // uses single storage slot, accessible via getReserves uint public price0CumulativeLast; uint public price1CumulativeLast; uint public kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event uint private unlocked = 1; modifier lock() { require(msg.sender == address(routerAddress), "only router accessible"); require(unlocked == 1, 'RARESwap: LOCKED'); unlocked = 0; _; unlocked = 1; } function getReserves() public view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast, address _baseToken) { _reserve0 = reserve0; _reserve1 = reserve1; _blockTimestampLast = blockTimestampLast; _baseToken = baseToken; } function _safeTransfer(address token, address to, uint value, bool isSwapping) private { if(value == 0){ return; } if (routerAddress.pairFeeAddress(address(this)) == token && isSwapping){ uint256 adminFee = routerAddress.adminFee(); if(adminFee != 0){ uint256 getOutFee = value.mul(adminFee) / (10000); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, routerAddress.feeAddressGet(), getOutFee)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'RARESwap: TRANSFER_FAILED'); value = value.sub(getOutFee); } (bool success1, bytes memory data1) = token.call(abi.encodeWithSelector(SELECTOR, to, value)); require(success1 && (data1.length == 0 || abi.decode(data1, (bool))), 'RARESwap: TRANSFER_FAILED'); }else { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'RARESwap: TRANSFER_FAILED'); } } event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); constructor() public { factory = msg.sender; } // called once by the factory at time of deployment function initialize(address _token0, address _token1) external { require(msg.sender == factory, 'RARESwap: FORBIDDEN'); // sufficient check token0 = _token0; token1 = _token1; routerAddress = IRARESwapRouter(IRARESwapFactory(factory).routerAddress()); } // update reserves and, on the first call per block, price accumulators function _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) private { require(balance0 <= uint112(-1) && balance1 <= uint112(-1), 'RARESwap: OVERFLOW'); uint32 blockTimestamp = uint32(block.timestamp % 2**32); uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) { // * never overflows, and + overflow is desired price0CumulativeLast += uint(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed; price1CumulativeLast += uint(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) * timeElapsed; } reserve0 = uint112(balance0); reserve1 = uint112(balance1); blockTimestampLast = blockTimestamp; emit Sync(reserve0, reserve1); } // if fee is on, mint liquidity equivalent to 1/6th of the growth in sqrt(k) function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) { address feeTo = IRARESwapFactory(factory).feeTo(); feeOn = feeTo != address(0); uint _kLast = kLast; // gas savings if (feeOn) { if (_kLast != 0) { uint rootK = Math.sqrt(uint(_reserve0).mul(_reserve1)); uint rootKLast = Math.sqrt(_kLast); if (rootK > rootKLast) { uint numerator = totalSupply.mul(rootK.sub(rootKLast)); uint denominator = rootK.mul(5).add(rootKLast); uint liquidity = numerator / denominator; if (liquidity > 0) _mint(feeTo, liquidity); } } } else if (_kLast != 0) { kLast = 0; } } // this low-level function should be called from a contract which performs important safety checks function mint(address to) external lock returns (uint liquidity) { (uint112 _reserve0, uint112 _reserve1,,) = getReserves(); // gas savings uint balance0 = IERC20(token0).balanceOf(address(this)); uint balance1 = IERC20(token1).balanceOf(address(this)); uint amount0 = balance0.sub(_reserve0); uint amount1 = balance1.sub(_reserve1); bool feeOn = _mintFee(_reserve0, _reserve1); uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee if (_totalSupply == 0) { liquidity = Math.sqrt(amount0.mul(amount1)).sub(MINIMUM_LIQUIDITY); _mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens } else { liquidity = Math.min(amount0.mul(_totalSupply) / _reserve0, amount1.mul(_totalSupply) / _reserve1); } require(liquidity > 0, 'RARESwap: INSUFFICIENT_LIQUIDITY_MINTED'); _mint(to, liquidity); _update(balance0, balance1, _reserve0, _reserve1); if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date emit Mint(msg.sender, amount0, amount1); } // this low-level function should be called from a contract which performs important safety checks function burn(address to) external lock returns (uint amount0, uint amount1) { (uint112 _reserve0, uint112 _reserve1,,) = getReserves(); // gas savings address _token0 = token0; // gas savings address _token1 = token1; // gas savings uint balance0 = IERC20(_token0).balanceOf(address(this)); uint balance1 = IERC20(_token1).balanceOf(address(this)); uint liquidity = balanceOf[address(this)]; bool feeOn = _mintFee(_reserve0, _reserve1); uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee amount0 = liquidity.mul(balance0) / _totalSupply; // using balances ensures pro-rata distribution amount1 = liquidity.mul(balance1) / _totalSupply; // using balances ensures pro-rata distribution require(amount0 > 0 && amount1 > 0, 'RARESwap: INSUFFICIENT_LIQUIDITY_BURNED'); _burn(address(this), liquidity); _safeTransfer(_token0, to, amount0, false); _safeTransfer(_token1, to, amount1, false); balance0 = IERC20(_token0).balanceOf(address(this)); balance1 = IERC20(_token1).balanceOf(address(this)); _update(balance0, balance1, _reserve0, _reserve1); if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date emit Burn(msg.sender, amount0, amount1, to); } // this low-level function should be called from a contract which performs important safety checks function swap(uint amount0Out, uint amount1Out, uint amount0Fee, uint amount1Fee, address to, bytes calldata data) external lock { require(amount0Out > 0 || amount1Out > 0, 'RARESwap: INSUFFICIENT_OUTPUT_AMOUNT'); (uint112 _reserve0, uint112 _reserve1,,) = getReserves(); // gas savings require(amount0Out < _reserve0 && amount1Out < _reserve1, 'RARESwap: INSUFFICIENT_LIQUIDITY'); if(baseToken != address(0)) { require(amount0Fee > 0 || amount1Fee > 0, "RARESwap: INSUFFICIENT_FEE"); } uint balance0; uint balance1; { // scope for _token{0,1}, avoids stack too deep errors address _token0 = token0; address _token1 = token1; require(to != _token0 && to != _token1, 'RARESwap: INVALID_TO'); if (amount0Out > 0) { _safeTransfer(_token0, to, amount0Out, true); } if (amount1Out > 0) { _safeTransfer(_token1, to, amount1Out, true); } if(amount0Fee > 0 && baseToken == token0) { IERC20(_token0).approve(_token1, amount0Fee); IToken(_token1).depositLPFee(amount0Fee, _token0); } if(amount1Fee > 0 && baseToken == token1) { IERC20(_token1).approve(_token0, amount1Fee); IToken(_token0).depositLPFee(amount1Fee, _token1); } if (data.length > 0) IRARESwapCallee(to).rareSwapCall(msg.sender, amount0Out, amount1Out, data); balance0 = IERC20(_token0).balanceOf(address(this)); balance1 = IERC20(_token1).balanceOf(address(this)); } uint amount0In = balance0 > _reserve0 - amount0Out - amount0Fee ? balance0 - (_reserve0 - amount0Out) : 0; uint amount1In = balance1 > _reserve1 - amount1Out - amount1Fee ? balance1 - (_reserve1 - amount1Out) : 0; require(amount0In > 0 || amount1In > 0, 'RARESwap: INSUFFICIENT_INPUT_AMOUNT'); _update(balance0, balance1, _reserve0, _reserve1); { uint _amount0Out = amount0Out; uint _amount1Out = amount1Out; address _to = to; emit Swap(msg.sender, amount0In, amount1In, _amount0Out, _amount1Out, _to); } } // force balances to match reserves function skim(address to) external lock { address _token0 = token0; // gas savings address _token1 = token1; // gas savings _safeTransfer(_token0, to, IERC20(_token0).balanceOf(address(this)).sub(reserve0), false); _safeTransfer(_token1, to, IERC20(_token1).balanceOf(address(this)).sub(reserve1), false); } // force reserves to match balances function sync() external lock { _update(IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1); } // This function can ONLY be called by the token contract // setting base token to WETH enables the fees // setting base token to 0x0000000000000000000000000000000000000000 disables the fees // Token contract needs to implement a function to set the base token in its Rare-LP pair function setBaseToken(address _baseToken) external { require( msg.sender == token0 || msg.sender == token1, "RARESwap: NOT_ALLOWED"); require(_baseToken == token0 || _baseToken == token1, "RARESwap: WRONG_ADDRESS"); baseToken = _baseToken; } function getTotalFee() public view returns (uint) { return totalFee; } // This function can ONLY be called by the token contract // Token contract needs to implement a function to update fees in its Rare-LP pair function updateTotalFee(uint _totalFee) external returns (bool) { if (baseToken == address(0)) return false; address feeTaker = baseToken == token0 ? token1 : token0; require(feeTaker == msg.sender, "RARESwap: NOT_ALLOWED"); totalFee = _totalFee; return true; } } pragma solidity =0.5.16; contract RARESwapFactory is IRARESwapFactory { bytes32 public constant INIT_CODE_PAIR_HASH = keccak256(abi.encodePacked(type(RARESwapPair).creationCode)); address public feeTo; address public feeToSetter; address public routerAddress; bool public routerInit; mapping(address => mapping(address => address)) public getPair; address[] public allPairs; mapping (address => bool) public pairExist; event PairCreated(address indexed token0, address indexed token1, address pair, uint); constructor() public { feeToSetter = msg.sender; feeTo = msg.sender; } function routerInitialize(address _router) external { require(!routerInit, "RARESwap: INITIALIZED_ALREADY"); routerAddress = _router; routerInit = true; } function allPairsLength() external view returns (uint) { return allPairs.length; } function createPair(address tokenA, address tokenB) external returns (address pair) { require(tokenA != tokenB, 'RARESwap: IDENTICAL_ADDRESSES'); (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'RARESwap: ZERO_ADDRESS'); require(getPair[token0][token1] == address(0), 'RARESwap: PAIR_EXISTS'); // single check is sufficient bytes memory bytecode = type(RARESwapPair).creationCode; bytes32 salt = keccak256(abi.encodePacked(token0, token1)); assembly { pair := create2(0, add(bytecode, 32), mload(bytecode), salt) } IRARESwapPair(pair).initialize(token0, token1); getPair[token0][token1] = pair; getPair[token1][token0] = pair; // populate mapping in the reverse direction allPairs.push(pair); pairExist[pair] = true; emit PairCreated(token0, token1, pair, allPairs.length); } function setFeeTo(address _feeTo) external { require(msg.sender == feeToSetter, 'RARESwap: FORBIDDEN'); feeTo = _feeTo; } function setFeeToSetter(address _feeToSetter) external { require(msg.sender == feeToSetter, 'RARESwap: FORBIDDEN'); feeToSetter = _feeToSetter; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"PairCreated","type":"event"},{"constant":true,"inputs":[],"name":"INIT_CODE_PAIR_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"allPairsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"createPair","outputs":[{"internalType":"address","name":"pair","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeToSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pairExist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"routerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"routerInit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"routerInitialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_feeTo","type":"address"}],"name":"setFeeTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_feeToSetter","type":"address"}],"name":"setFeeToSetter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063a2e74af61161008c578063b77fe18311610066578063b77fe183146101b1578063c9c65396146101d7578063e6a4390514610205578063f46901ed14610233576100cf565b8063a2e74af614610147578063ac393aff1461016f578063ae63fe0b146101a9576100cf565b8063017e7e58146100d4578063094b7415146100f85780631e3dd18b146101005780633268cc561461011d578063574f2ba3146101255780635855a25a1461013f575b600080fd5b6100dc610259565b604080516001600160a01b039092168252519081900360200190f35b6100dc610268565b6100dc6004803603602081101561011657600080fd5b5035610277565b6100dc61029e565b61012d6102ad565b60408051918252519081900360200190f35b61012d6102b3565b61016d6004803603602081101561015d57600080fd5b50356001600160a01b0316610346565b005b6101956004803603602081101561018557600080fd5b50356001600160a01b03166103bd565b604080519115158252519081900360200190f35b6101956103d2565b61016d600480360360208110156101c757600080fd5b50356001600160a01b03166103e2565b6100dc600480360360408110156101ed57600080fd5b506001600160a01b0381358116916020013516610471565b6100dc6004803603604081101561021b57600080fd5b506001600160a01b03813581169160200135166107ae565b61016d6004803603602081101561024957600080fd5b50356001600160a01b03166107d4565b6000546001600160a01b031681565b6001546001600160a01b031681565b6004818154811061028457fe5b6000918252602090912001546001600160a01b0316905081565b6002546001600160a01b031681565b60045490565b6040516102c26020820161084b565b6020820181038252601f19601f820116604052506040516020018082805190602001908083835b602083106103085780518252601f1990920191602091820191016102e9565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012081565b6001546001600160a01b0316331461039b576040805162461bcd60e51b81526020600482015260136024820152722920a922a9bbb0b81d102327a92124a22222a760691b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60056020526000908152604090205460ff1681565b600254600160a01b900460ff1681565b600254600160a01b900460ff1615610441576040805162461bcd60e51b815260206004820152601d60248201527f52415245537761703a20494e495449414c495a45445f414c5245414459000000604482015290519081900360640190fd5b6002805460ff60a01b196001600160a01b039093166001600160a01b03199091161791909116600160a01b179055565b6000816001600160a01b0316836001600160a01b031614156104da576040805162461bcd60e51b815260206004820152601d60248201527f52415245537761703a204944454e544943414c5f414444524553534553000000604482015290519081900360640190fd5b600080836001600160a01b0316856001600160a01b0316106104fd578385610500565b84845b90925090506001600160a01b038216610559576040805162461bcd60e51b815260206004820152601660248201527552415245537761703a205a45524f5f4144445245535360501b604482015290519081900360640190fd5b6001600160a01b038281166000908152600360209081526040808320858516845290915290205416156105cb576040805162461bcd60e51b815260206004820152601560248201527452415245537761703a20504149525f45584953545360581b604482015290519081900360640190fd5b6060604051806020016105dd9061084b565b6020820181038252601f19601f8201166040525090506000838360405160200180836001600160a01b03166001600160a01b031660601b8152601401826001600160a01b03166001600160a01b031660601b815260140192505050604051602081830303815290604052805190602001209050808251602084016000f56040805163485cc95560e01b81526001600160a01b038781166004830152868116602483015291519297509087169163485cc9559160448082019260009290919082900301818387803b1580156106b057600080fd5b505af11580156106c4573d6000803e3d6000fd5b505050506001600160a01b0384811660008181526003602081815260408084208987168086529083528185208054978d166001600160a01b031998891681179091559383528185208686528352818520805488168517905560048054600181810183557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b909101805490991686179098558486526005845294829020805460ff1916909717909655925483519283529082015281517f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9929181900390910190a35050505092915050565b60036020908152600092835260408084209091529082529020546001600160a01b031681565b6001546001600160a01b03163314610829576040805162461bcd60e51b81526020600482015260136024820152722920a922a9bbb0b81d102327a92124a22222a760691b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b612fcd806108598339019056fe60806040526000600a556001600f5534801561001a57600080fd5b506040514690806052612f7b8239604080519182900360520182208282018252600b83526a052415245537761702d4c560ac1b6020938401528151808301835260018152603160f81b908401528151808401919091527fc22d4f7baa85cc1856ee664da7eb81a1edef7cd8b79fea731deac7f78db80850818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550600680546001600160a01b03191633179055612e708061010b6000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806370a082311161011a578063bc25cf77116100ad578063d32b96041161007c578063d32b960414610558578063d505accf14610575578063dd62ed3e146105c6578063f8b134c6146105f4578063fff6cae91461068c576101fb565b8063bc25cf771461051a578063c45a015514610540578063c55dae6314610548578063d21220a714610550576101fb565b806389afcb44116100e957806389afcb441461049f57806395d89b41146104de578063a9059cbb146104e6578063ba9a7a5614610512576101fb565b806370a08231146104435780637464fc3d146104695780637ae316d0146104715780637ecebe0014610479576101fb565b806330adf81f11610192578063485cc95511610161578063485cc955146103df5780635909c0d51461040d5780635a3d5493146104155780636a6278421461041d576101fb565b806330adf81f146103a9578063313ce567146103b15780633268cc56146103cf5780633644e515146103d7576101fb565b806316bb6c13116101ce57806316bb6c131461032957806318160ddd146103515780631df4ccfc1461036b57806323b872dd14610373576101fb565b806306fdde03146102005780630902f1ac1461027d578063095ea7b3146102c55780630dfe168114610305575b600080fd5b610208610694565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561024257818101518382015260200161022a565b50505050905090810190601f16801561026f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102856106bb565b604080516001600160701b03958616815293909416602084015263ffffffff909116828401526001600160a01b0316606082015290519081900360800190f35b6102f1600480360360408110156102db57600080fd5b506001600160a01b0381351690602001356106f2565b604080519115158252519081900360200190f35b61030d610709565b604080516001600160a01b039092168252519081900360200190f35b61034f6004803603602081101561033f57600080fd5b50356001600160a01b0316610718565b005b610359610820565b60408051918252519081900360200190f35b610359610826565b6102f16004803603606081101561038957600080fd5b506001600160a01b0381358116916020810135909116906040013561082c565b6103596108c6565b6103b96108ea565b6040805160ff9092168252519081900360200190f35b61030d6108ef565b6103596108fe565b61034f600480360360408110156103f557600080fd5b506001600160a01b0381358116916020013516610904565b610359610a13565b610359610a19565b6103596004803603602081101561043357600080fd5b50356001600160a01b0316610a1f565b6103596004803603602081101561045957600080fd5b50356001600160a01b0316610d84565b610359610d96565b610359610d9c565b6103596004803603602081101561048f57600080fd5b50356001600160a01b0316610da2565b6104c5600480360360208110156104b557600080fd5b50356001600160a01b0316610db4565b6040805192835260208301919091528051918290030190f35b6102086111b8565b6102f1600480360360408110156104fc57600080fd5b506001600160a01b0381351690602001356111db565b6103596111e8565b61034f6004803603602081101561053057600080fd5b50356001600160a01b03166111ee565b61030d6113b2565b61030d6113c1565b61030d6113d0565b6102f16004803603602081101561056e57600080fd5b50356113df565b61034f600480360360e081101561058b57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611499565b610359600480360360408110156105dc57600080fd5b506001600160a01b038135811691602001351661169a565b61034f600480360360c081101561060a57600080fd5b8135916020810135916040820135916060810135916001600160a01b03608083013516919081019060c0810160a082013564010000000081111561064d57600080fd5b82018360208201111561065f57600080fd5b8035906020019184600183028401116401000000008311171561068157600080fd5b5090925090506116b7565b61034f611e4c565b6040518060400160405280600b81526020016a052415245537761702d4c560ac1b81525081565b600b546009546001600160701b0380831693600160701b840490911692600160e01b900463ffffffff16916001600160a01b031690565b60006106ff338484612005565b5060015b92915050565b6007546001600160a01b031681565b6007546001600160a01b031633148061073b57506008546001600160a01b031633145b610784576040805162461bcd60e51b81526020600482015260156024820152741490549154ddd85c0e881393d517d0531313d5d151605a1b604482015290519081900360640190fd5b6007546001600160a01b03828116911614806107ad57506008546001600160a01b038281169116145b6107fe576040805162461bcd60e51b815260206004820152601760248201527f52415245537761703a2057524f4e475f41444452455353000000000000000000604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60005481565b600a5481565b6001600160a01b0383166000908152600260209081526040808320338452909152812054600019146108b1576001600160a01b038416600090815260026020908152604080832033845290915290205461088c908363ffffffff61206716565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b6108bc8484846120b7565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b6005546001600160a01b031681565b60035481565b6006546001600160a01b03163314610959576040805162461bcd60e51b81526020600482015260136024820152722920a922a9bbb0b81d102327a92124a22222a760691b604482015290519081900360640190fd5b600780546001600160a01b038085166001600160a01b03199283161790925560088054848416921691909117905560065460408051631934662b60e11b815290519190921691633268cc56916004808301926020929190829003018186803b1580156109c457600080fd5b505afa1580156109d8573d6000803e3d6000fd5b505050506040513d60208110156109ee57600080fd5b5051600580546001600160a01b0319166001600160a01b039092169190911790555050565b600c5481565b600d5481565b6005546000906001600160a01b03163314610a7a576040805162461bcd60e51b81526020600482015260166024820152756f6e6c7920726f757465722061636365737369626c6560501b604482015290519081900360640190fd5b600f54600114610ac4576040805162461bcd60e51b815260206004820152601060248201526f1490549154ddd85c0e881313d0d2d15160821b604482015290519081900360640190fd5b6000600f81905580610ad46106bb565b5050600754604080516370a0823160e01b815230600482015290519395509193506000926001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015610b2957600080fd5b505afa158015610b3d573d6000803e3d6000fd5b505050506040513d6020811015610b5357600080fd5b5051600854604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610ba657600080fd5b505afa158015610bba573d6000803e3d6000fd5b505050506040513d6020811015610bd057600080fd5b505190506000610bef836001600160701b03871663ffffffff61206716565b90506000610c0c836001600160701b03871663ffffffff61206716565b90506000610c1a8787612171565b60005490915080610c6357610c4f6103e8610c43610c3e878763ffffffff6122cf16565b612332565b9063ffffffff61206716565b9850610c5e60006103e8612383565b610cb2565b610caf6001600160701b038916610c80868463ffffffff6122cf16565b81610c8757fe5b046001600160701b038916610ca2868563ffffffff6122cf16565b81610ca957fe5b04612419565b98505b60008911610cf15760405162461bcd60e51b8152600401808060200182810382526027815260200180612e156027913960400191505060405180910390fd5b610cfb8a8a612383565b610d0786868a8a612431565b8115610d3757600b54610d33906001600160701b0380821691600160701b90041663ffffffff6122cf16565b600e555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600f5550949695505050505050565b60016020526000908152604090205481565b600e5481565b600a5490565b60046020526000908152604090205481565b60055460009081906001600160a01b03163314610e11576040805162461bcd60e51b81526020600482015260166024820152756f6e6c7920726f757465722061636365737369626c6560501b604482015290519081900360640190fd5b600f54600114610e5b576040805162461bcd60e51b815260206004820152601060248201526f1490549154ddd85c0e881313d0d2d15160821b604482015290519081900360640190fd5b6000600f81905580610e6b6106bb565b5050600754600854604080516370a0823160e01b815230600482015290519496509294506001600160a01b039182169391169160009184916370a08231916024808301926020929190829003018186803b158015610ec857600080fd5b505afa158015610edc573d6000803e3d6000fd5b505050506040513d6020811015610ef257600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038516916370a08231916024808301926020929190829003018186803b158015610f4057600080fd5b505afa158015610f54573d6000803e3d6000fd5b505050506040513d6020811015610f6a57600080fd5b505130600090815260016020526040812054919250610f898888612171565b60005490915080610fa0848763ffffffff6122cf16565b81610fa757fe5b049a5080610fbb848663ffffffff6122cf16565b81610fc257fe5b04995060008b118015610fd5575060008a115b6110105760405162461bcd60e51b8152600401808060200182810382526027815260200180612dee6027913960400191505060405180910390fd5b61101a30846125f5565b611027878d8d6000612693565b611034868d8c6000612693565b604080516370a0823160e01b815230600482015290516001600160a01b038916916370a08231916024808301926020929190829003018186803b15801561107a57600080fd5b505afa15801561108e573d6000803e3d6000fd5b505050506040513d60208110156110a457600080fd5b5051604080516370a0823160e01b815230600482015290519196506001600160a01b038816916370a0823191602480820192602092909190829003018186803b1580156110f057600080fd5b505afa158015611104573d6000803e3d6000fd5b505050506040513d602081101561111a57600080fd5b5051935061112a85858b8b612431565b811561115a57600b54611156906001600160701b0380821691600160701b90041663ffffffff6122cf16565b600e555b604080518c8152602081018c905281516001600160a01b038f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600f81905550915091565b604051806040016040528060078152602001660524152452d4c560cc1b81525081565b60006106ff3384846120b7565b6103e881565b6005546001600160a01b03163314611246576040805162461bcd60e51b81526020600482015260166024820152756f6e6c7920726f757465722061636365737369626c6560501b604482015290519081900360640190fd5b600f54600114611290576040805162461bcd60e51b815260206004820152601060248201526f1490549154ddd85c0e881313d0d2d15160821b604482015290519081900360640190fd5b6000600f55600754600854600b54604080516370a0823160e01b815230600482015290516001600160a01b039485169490931692611341928592879261133a926001600160701b03169185916370a0823191602480820192602092909190829003018186803b15801561130257600080fd5b505afa158015611316573d6000803e3d6000fd5b505050506040513d602081101561132c57600080fd5b50519063ffffffff61206716565b6000612693565b600b54604080516370a0823160e01b815230600482015290516113a8928492879261133a92600160701b90046001600160701b0316916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561130257600080fd5b50506001600f5550565b6006546001600160a01b031681565b6009546001600160a01b031681565b6008546001600160a01b031681565b6009546000906001600160a01b03166113fa57506000611494565b6007546009546000916001600160a01b03918216911614611426576007546001600160a01b0316611433565b6008546001600160a01b03165b90506001600160a01b038116331461148a576040805162461bcd60e51b81526020600482015260156024820152741490549154ddd85c0e881393d517d0531313d5d151605a1b604482015290519081900360640190fd5b5050600a81905560015b919050565b428410156114e2576040805162461bcd60e51b81526020600482015260116024820152701490549154ddd85c0e8811561412549151607a1b604482015290519081900360640190fd5b6003546001600160a01b0380891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e08501825280519083012061190160f01b6101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e280820193601f1981019281900390910190855afa1580156115fd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906116335750886001600160a01b0316816001600160a01b0316145b611684576040805162461bcd60e51b815260206004820152601b60248201527f52415245537761703a20494e56414c49445f5349474e41545552450000000000604482015290519081900360640190fd5b61168f898989612005565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b6005546001600160a01b0316331461170f576040805162461bcd60e51b81526020600482015260166024820152756f6e6c7920726f757465722061636365737369626c6560501b604482015290519081900360640190fd5b600f54600114611759576040805162461bcd60e51b815260206004820152601060248201526f1490549154ddd85c0e881313d0d2d15160821b604482015290519081900360640190fd5b6000600f558615158061176c5750600086115b6117a75760405162461bcd60e51b8152600401808060200182810382526024815260200180612da76024913960400191505060405180910390fd5b6000806117b26106bb565b505091509150816001600160701b0316891080156117d85750806001600160701b031688105b611829576040805162461bcd60e51b815260206004820181905260248201527f52415245537761703a20494e53554646494349454e545f4c4951554944495459604482015290519081900360640190fd5b6009546001600160a01b03161561189a5760008711806118495750600086115b61189a576040805162461bcd60e51b815260206004820152601a60248201527f52415245537761703a20494e53554646494349454e545f464545000000000000604482015290519081900360640190fd5b60075460085460009182916001600160a01b039182169190811690891682148015906118d85750806001600160a01b0316896001600160a01b031614155b611920576040805162461bcd60e51b815260206004820152601460248201527352415245537761703a20494e56414c49445f544f60601b604482015290519081900360640190fd5b8c1561193357611933828a8f6001612693565b8b1561194657611946818a8e6001612693565b60008b11801561196657506007546009546001600160a01b039081169116145b15611a6257816001600160a01b031663095ea7b3828d6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156119cb57600080fd5b505af11580156119df573d6000803e3d6000fd5b505050506040513d60208110156119f557600080fd5b505060408051638283bbf360e01b8152600481018d90526001600160a01b038481166024830152915191831691638283bbf39160448082019260009290919082900301818387803b158015611a4957600080fd5b505af1158015611a5d573d6000803e3d6000fd5b505050505b60008a118015611a8257506008546009546001600160a01b039081169116145b15611b7e57806001600160a01b031663095ea7b3838c6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611ae757600080fd5b505af1158015611afb573d6000803e3d6000fd5b505050506040513d6020811015611b1157600080fd5b505060408051638283bbf360e01b8152600481018c90526001600160a01b038381166024830152915191841691638283bbf39160448082019260009290919082900301818387803b158015611b6557600080fd5b505af1158015611b79573d6000803e3d6000fd5b505050505b8615611c3957886001600160a01b031663742d12e0338f8f8c8c6040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b158015611c2057600080fd5b505af1158015611c34573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015611c7f57600080fd5b505afa158015611c93573d6000803e3d6000fd5b505050506040513d6020811015611ca957600080fd5b5051604080516370a0823160e01b815230600482015290519195506001600160a01b038316916370a0823191602480820192602092909190829003018186803b158015611cf557600080fd5b505afa158015611d09573d6000803e3d6000fd5b505050506040513d6020811015611d1f57600080fd5b5051925060009150506001600160701b0385168c90038a90038311611d45576000611d54565b8b856001600160701b03160383035b90506000898c866001600160701b031603038311611d73576000611d82565b8b856001600160701b03160383035b90506000821180611d935750600081115b611dce5760405162461bcd60e51b8152600401808060200182810382526023815260200180612dcb6023913960400191505060405180910390fd5b611dda84848888612431565b60408051838152602081018390528082018f9052606081018e905290518e918e918c916001600160a01b0383169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822919081900360800190a350506001600f555050505050505050505050505050565b6005546001600160a01b03163314611ea4576040805162461bcd60e51b81526020600482015260166024820152756f6e6c7920726f757465722061636365737369626c6560501b604482015290519081900360640190fd5b600f54600114611eee576040805162461bcd60e51b815260206004820152601060248201526f1490549154ddd85c0e881313d0d2d15160821b604482015290519081900360640190fd5b6000600f55600754604080516370a0823160e01b81523060048201529051611ffe926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611f3f57600080fd5b505afa158015611f53573d6000803e3d6000fd5b505050506040513d6020811015611f6957600080fd5b5051600854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611fb657600080fd5b505afa158015611fca573d6000803e3d6000fd5b505050506040513d6020811015611fe057600080fd5b5051600b546001600160701b0380821691600160701b900416612431565b6001600f55565b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b80820382811115610703576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6001600160a01b0383166000908152600160205260409020546120e0908263ffffffff61206716565b6001600160a01b038085166000908152600160205260408082209390935590841681522054612115908263ffffffff612d2016565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600660009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b1580156121c257600080fd5b505afa1580156121d6573d6000803e3d6000fd5b505050506040513d60208110156121ec57600080fd5b5051600e546001600160a01b0382161580159450919250906122bb5780156122b657600061222f610c3e6001600160701b0388811690881663ffffffff6122cf16565b9050600061223c83612332565b9050808211156122b357600061226a61225b848463ffffffff61206716565b6000549063ffffffff6122cf16565b9050600061228f8361228386600563ffffffff6122cf16565b9063ffffffff612d2016565b9050600081838161229c57fe5b04905080156122af576122af8782612383565b5050505b50505b6122c7565b80156122c7576000600e555b505092915050565b60008115806122ea575050808202828282816122e757fe5b04145b610703576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b60006003821115612375575080600160028204015b8181101561236f5780915060028182858161235e57fe5b04018161236757fe5b049050612347565b50611494565b811561149457506001919050565b600054612396908263ffffffff612d2016565b60009081556001600160a01b0383168152600160205260409020546123c1908263ffffffff612d2016565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818310612428578161242a565b825b9392505050565b6001600160701b03841180159061244f57506001600160701b038311155b612495576040805162461bcd60e51b815260206004820152601260248201527152415245537761703a204f564552464c4f5760701b604482015290519081900360640190fd5b600b5463ffffffff42811691600160e01b900481168203908116158015906124c557506001600160701b03841615155b80156124d957506001600160701b03831615155b1561254a578063ffffffff16612507856124f286612d6f565b6001600160e01b03169063ffffffff612d8116565b600c80546001600160e01b03929092169290920201905563ffffffff8116612532846124f287612d6f565b600d80546001600160e01b0392909216929092020190555b600b80546dffffffffffffffffffffffffffff19166001600160701b03888116919091176dffffffffffffffffffffffffffff60701b1916600160701b8883168102919091176001600160e01b0316600160e01b63ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b6001600160a01b03821660009081526001602052604090205461261e908263ffffffff61206716565b6001600160a01b0383166000908152600160205260408120919091555461264b908263ffffffff61206716565b60009081556040805183815290516001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b8161269d57612d1a565b6005546040805163dcacce6960e01b815230600482015290516001600160a01b0380881693169163dcacce69916024808301926020929190829003018186803b1580156126e957600080fd5b505afa1580156126fd573d6000803e3d6000fd5b505050506040513d602081101561271357600080fd5b50516001600160a01b03161480156127285750805b15612b8c576005546040805163a0be06f960e01b815290516000926001600160a01b03169163a0be06f9916004808301926020929190829003018186803b15801561277257600080fd5b505afa158015612786573d6000803e3d6000fd5b505050506040513d602081101561279c57600080fd5b5051905080156129f95760006127106127bb858463ffffffff6122cf16565b816127c257fe5b04905060006060876001600160a01b0316604051806040016040528060198152602001787472616e7366657228616464726573732c75696e743235362960381b81525080519060200120600560009054906101000a90046001600160a01b03166001600160a01b031663add10aa26040518163ffffffff1660e01b815260040160206040518083038186803b15801561285a57600080fd5b505afa15801561286e573d6000803e3d6000fd5b505050506040513d602081101561288457600080fd5b5051604080516001600160a01b039092166024830152604480830188905281518084039091018152606490920181526020820180516001600160e01b03166001600160e01b0319909416939093178352518151919290918291908083835b602083106129015780518252601f1990920191602091820191016128e2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612963576040519150601f19603f3d011682016040523d82523d6000602084013e612968565b606091505b5091509150818015612996575080511580612996575080806020019051602081101561299357600080fd5b50515b6129e3576040805162461bcd60e51b81526020600482015260196024820152781490549154ddd85c0e881514905394d1915497d19052531151603a1b604482015290519081900360640190fd5b6129f3868463ffffffff61206716565b95505050505b60408051808201825260198152787472616e7366657228616464726573732c75696e743235362960381b60209182015281516001600160a01b0387811660248301526044808301889052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b178152925181516000946060948b169392918291908083835b60208310612aa25780518252601f199092019160209182019101612a83565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612b04576040519150601f19603f3d011682016040523d82523d6000602084013e612b09565b606091505b5091509150818015612b37575080511580612b375750808060200190516020811015612b3457600080fd5b50515b612b84576040805162461bcd60e51b81526020600482015260196024820152781490549154ddd85c0e881514905394d1915497d19052531151603a1b604482015290519081900360640190fd5b505050612d1a565b60408051808201825260198152787472616e7366657228616464726573732c75696e743235362960381b60209182015281516001600160a01b0386811660248301526044808301879052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b178152925181516000946060948a169392918291908083835b60208310612c355780518252601f199092019160209182019101612c16565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612c97576040519150601f19603f3d011682016040523d82523d6000602084013e612c9c565b606091505b5091509150818015612cca575080511580612cca5750808060200190516020811015612cc757600080fd5b50515b612d17576040805162461bcd60e51b81526020600482015260196024820152781490549154ddd85c0e881514905394d1915497d19052531151603a1b604482015290519081900360640190fd5b50505b50505050565b80820182811015610703576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6001600160701b0316600160701b0290565b60006001600160701b0382166001600160e01b03841681612d9e57fe5b04939250505056fe52415245537761703a20494e53554646494349454e545f4f55545055545f414d4f554e5452415245537761703a20494e53554646494349454e545f494e5055545f414d4f554e5452415245537761703a20494e53554646494349454e545f4c49515549444954595f4255524e454452415245537761703a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a723158207418deb48b7079897044d0f331d757004ebd5ca40ecf0c8558be284c3e4d398364736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429a265627a7a72315820e499b260722b719345fc762351ea56f8552a58e3ece063af61138c55d53aef7564736f6c63430005100032
Deployed Bytecode Sourcemap
24262:2258:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24262:2258:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24429:20;;;:::i;:::-;;;;-1:-1:-1;;;;;24429:20:0;;;;;;;;;;;;;;24456:26;;;:::i;24624:25::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24624:25:0;;:::i;24489:28::-;;;:::i;25094:96::-;;;:::i;:::-;;;;;;;;;;;;;;;;24314:106;;;:::i;26349:168::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26349:168:0;-1:-1:-1;;;;;26349:168:0;;:::i;:::-;;24656:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24656:42:0;-1:-1:-1;;;;;24656:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;24524:22;;;:::i;24902:186::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24902:186:0;-1:-1:-1;;;;;24902:186:0;;:::i;25198:991::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;25198:991:0;;;;;;;;;;:::i;24555:62::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;24555:62:0;;;;;;;;;;:::i;26197:144::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26197:144:0;-1:-1:-1;;;;;26197:144:0;;:::i;24429:20::-;;;-1:-1:-1;;;;;24429:20:0;;:::o;24456:26::-;;;-1:-1:-1;;;;;24456:26:0;;:::o;24624:25::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24624:25:0;;-1:-1:-1;24624:25:0;:::o;24489:28::-;;;-1:-1:-1;;;;;24489:28:0;;:::o;25094:96::-;25167:8;:15;25094:96;:::o;24314:106::-;24387:31;;;;;;;:::i;:::-;41:4:-1;34:5;30:16;25:3;21:26;14:5;7:41;87:2;83:7;78:2;73:3;69:12;65:26;61:2;54:38;24387:31:0;24370:49;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;24370:49:0;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;24370::0;;;24360:60;;;;;;24314:106;:::o;26349:168::-;26437:11;;-1:-1:-1;;;;;26437:11:0;26423:10;:25;26415:57;;;;;-1:-1:-1;;;26415:57:0;;;;;;;;;;;;-1:-1:-1;;;26415:57:0;;;;;;;;;;;;;;;26483:11;:26;;-1:-1:-1;;;;;;26483:26:0;-1:-1:-1;;;;;26483:26:0;;;;;;;;;;26349:168::o;24656:42::-;;;;;;;;;;;;;;;:::o;24524:22::-;;;-1:-1:-1;;;24524:22:0;;;;;:::o;24902:186::-;24974:10;;-1:-1:-1;;;24974:10:0;;;;24973:11;24965:53;;;;;-1:-1:-1;;;24965:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25029:13;:23;;-1:-1:-1;;;;;;;;;25029:23:0;;;-1:-1:-1;;;;;;25029:23:0;;;;25063:17;;;;-1:-1:-1;;;25063:17:0;;;24902:186::o;25198:991::-;25268:12;25311:6;-1:-1:-1;;;;;25301:16:0;:6;-1:-1:-1;;;;;25301:16:0;;;25293:58;;;;;-1:-1:-1;;;25293:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25363:14;25379;25406:6;-1:-1:-1;;;;;25397:15:0;:6;-1:-1:-1;;;;;25397:15:0;;:53;;25435:6;25443;25397:53;;;25416:6;25424;25397:53;25362:88;;-1:-1:-1;25362:88:0;-1:-1:-1;;;;;;25469:20:0;;25461:55;;;;;-1:-1:-1;;;25461:55:0;;;;;;;;;;;;-1:-1:-1;;;25461:55:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;25535:15:0;;;25570:1;25535:15;;;:7;:15;;;;;;;;:23;;;;;;;;;;;;:37;25527:71;;;;;-1:-1:-1;;;25527:71:0;;;;;;;;;;;;-1:-1:-1;;;25527:71:0;;;;;;;;;;;;;;;25639:21;25663:31;;;;;;;;:::i;:::-;41:4:-1;34:5;30:16;25:3;21:26;14:5;7:41;87:2;83:7;78:2;73:3;69:12;65:26;61:2;54:38;25663:31:0;25639:55;;25705:12;25747:6;25755;25730:32;;;;;;-1:-1:-1;;;;;25730:32:0;-1:-1:-1;;;;;25730:32:0;;;;;;;;-1:-1:-1;;;;;25730:32:0;-1:-1:-1;;;;;25730:32:0;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;25730:32:0;;;25720:43;;;;;;25705:58;;25853:4;25842:8;25836:15;25831:2;25821:8;25817:17;25814:1;25806:52;25879:46;;;-1:-1:-1;;;25879:46:0;;-1:-1:-1;;;;;25879:46:0;;;;;;;;;;;;;;;;25798:60;;-1:-1:-1;25879:30:0;;;;;;:46;;;;;-1:-1:-1;;25879:46:0;;;;;;;;-1:-1:-1;25879:30:0;:46;;;5:2:-1;;;;30:1;27;20:12;5:2;25879:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;;;;;;;25936:15:0;;;;;;;:7;:15;;;;;;;;:23;;;;;;;;;;;;:30;;;;;-1:-1:-1;;;;;;25936:30:0;;;;;;;;25977:15;;;;;;:23;;;;;;;;:30;;;;;;;;26063:8;27:10:-1;;-1:-1;23:18;;;45:23;;26063:19:0;;;;;;;;;;;;;;26093:15;;;:9;:15;;;;;;:22;;-1:-1:-1;;26093:22:0;;;;;;;26165:15;;26131:50;;;;;;;;;;;;;;;;;;;;;;25198:991;;;;;;;;:::o;24555:62::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24555:62:0;;:::o;26197:144::-;26273:11;;-1:-1:-1;;;;;26273:11:0;26259:10;:25;26251:57;;;;;-1:-1:-1;;;26251:57:0;;;;;;;;;;;;-1:-1:-1;;;26251:57:0;;;;;;;;;;;;;;;26319:5;:14;;-1:-1:-1;;;;;;26319:14:0;-1:-1:-1;;;;;26319:14:0;;;;;;;;;;26197:144::o;24262:2258::-;;;;;;;;:::o
Swarm Source
bzzr://e499b260722b719345fc762351ea56f8552a58e3ece063af61138c55d53aef75
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.