Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 53,553 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap Exact ETH F... | 21112137 | 53 days ago | IN | 0.01893207 ETH | 0.00078118 | ||||
Swap Exact ETH F... | 21096116 | 55 days ago | IN | 0.03157987 ETH | 0.0012357 | ||||
Swap Exact ETH F... | 21096115 | 55 days ago | IN | 0.03172347 ETH | 0.00129474 | ||||
Swap Exact ETH F... | 21095938 | 55 days ago | IN | 0.03158498 ETH | 0.00127412 | ||||
Swap Exact ETH F... | 21095937 | 55 days ago | IN | 0.03172858 ETH | 0.00129609 | ||||
Swap Exact ETH F... | 21095934 | 55 days ago | IN | 0.05472858 ETH | 0.00129782 | ||||
Swap Exact ETH F... | 21095933 | 55 days ago | IN | 0.03172858 ETH | 0.00130113 | ||||
Swap Exact Token... | 21094374 | 55 days ago | IN | 0.00460216 ETH | 0.00146232 | ||||
Swap Exact ETH F... | 21090291 | 56 days ago | IN | 0.08461879 ETH | 0.0013397 | ||||
Swap Exact ETH F... | 21090015 | 56 days ago | IN | 0.02460423 ETH | 0.00140703 | ||||
Swap Exact ETH F... | 21084924 | 57 days ago | IN | 0.01113669 ETH | 0.00094818 | ||||
Swap Exact ETH F... | 21082579 | 57 days ago | IN | 0.05830984 ETH | 0.00153082 | ||||
Swap Exact ETH F... | 21082568 | 57 days ago | IN | 0.05830984 ETH | 0.00165156 | ||||
Swap Exact ETH F... | 21082566 | 57 days ago | IN | 0.05830984 ETH | 0.00164393 | ||||
Swap Exact ETH F... | 21082563 | 57 days ago | IN | 0.05633131 ETH | 0.00170328 | ||||
Swap Exact ETH F... | 21079195 | 58 days ago | IN | 0.10426365 ETH | 0.00592893 | ||||
Swap Exact ETH F... | 21059717 | 60 days ago | IN | 0.10461962 ETH | 0.00232673 | ||||
Swap Exact ETH F... | 21059711 | 60 days ago | IN | 0.10461962 ETH | 0.00240166 | ||||
Swap Exact ETH F... | 21059708 | 60 days ago | IN | 0.10461962 ETH | 0.00231766 | ||||
Swap Exact ETH F... | 21059704 | 60 days ago | IN | 0.10461962 ETH | 0.00230097 | ||||
Swap Exact ETH F... | 20962222 | 74 days ago | IN | 0.00134504 ETH | 0.00167639 | ||||
Swap Exact ETH F... | 20960622 | 74 days ago | IN | 0.05427188 ETH | 0.00173514 | ||||
Swap Exact ETH F... | 20935399 | 78 days ago | IN | 0.0365959 ETH | 0.00270061 | ||||
Swap Exact ETH F... | 20883099 | 85 days ago | IN | 0.00940508 ETH | 0.00050941 | ||||
Swap Exact ETH F... | 20883086 | 85 days ago | IN | 0.00940508 ETH | 0.0009194 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21315309 | 25 days ago | 0.24009384 ETH | ||||
21315309 | 25 days ago | 0.24285044 ETH | ||||
21315309 | 25 days ago | 1.99474286 ETH | ||||
21315309 | 25 days ago | 1.99749946 ETH | ||||
21315309 | 25 days ago | 1.97476896 ETH | ||||
21315309 | 25 days ago | 1.97752556 ETH | ||||
21315307 | 25 days ago | 2.869315 ETH | ||||
21315307 | 25 days ago | 2.8720716 ETH | ||||
21315307 | 25 days ago | 2.58217325 ETH | ||||
21315307 | 25 days ago | 2.58492985 ETH | ||||
21315307 | 25 days ago | 0.30191986 ETH | ||||
21315307 | 25 days ago | 0.30467646 ETH | ||||
21315307 | 25 days ago | 2.59734801 ETH | ||||
21315307 | 25 days ago | 2.60010461 ETH | ||||
21315306 | 25 days ago | 0.29054593 ETH | ||||
21315306 | 25 days ago | 0.29330253 ETH | ||||
21315306 | 25 days ago | 2.71820483 ETH | ||||
21315306 | 25 days ago | 2.72096143 ETH | ||||
21315305 | 25 days ago | 0.28351034 ETH | ||||
21315305 | 25 days ago | 0.28626694 ETH | ||||
21315305 | 25 days ago | 1.37138202 ETH | ||||
21315305 | 25 days ago | 1.37413862 ETH | ||||
21315305 | 25 days ago | 2.62651197 ETH | ||||
21315305 | 25 days ago | 2.62926856 ETH | ||||
21315305 | 25 days ago | 2.71787062 ETH |
Loading...
Loading
Contract Name:
EtherVistaRouter
Compiler Version
v0.6.6+commit.6c089d02
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity =0.6.6; import './interfaces/IEtherVistaRouter.sol'; interface IEtherVistaPair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function setMetadata(string calldata website, string calldata image, string calldata description, string calldata chat, string calldata social) external; function websiteUrl() external view returns (string memory); function imageUrl() external view returns (string memory); function tokenDescription() external view returns (string memory); function chatUrl() external view returns (string memory); function socialUrl() external view returns (string memory); 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 updateProvider(address user) external; function euler(uint) external view returns (uint256); function viewShare() external view returns (uint256 share); function claimShare() external; function poolBalance() external view returns (uint); function totalCollected() external view returns (uint); function setProtocol(address) external; function protocol() external view returns (address); function payableProtocol() external view returns (address payable origin); function creator() external view returns (address); function renounce() external; function setFees() external; function updateFees(uint8, uint8, uint8, uint8) external; function buyLpFee() external view returns (uint8); function sellLpFee() external view returns (uint8); function buyProtocolFee() external view returns (uint8); function sellProtocolFee() external view returns (uint8); function buyTotalFee() external view returns (uint8); function sellTotalFee() external view returns (uint8); 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); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function first_mint(address to, uint8 buyLp, uint8 sellLp, uint8 buyProtocol, uint8 sellProtocol, address protocolAddress) external returns (uint liquidity); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address _token0, address _token1) external; } 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'); } } library UniswapV2Library { using SafeMath for uint; // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS'); } // calculates the CREATE2 address for a pair without making any external calls function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint(keccak256(abi.encodePacked( hex'ff', factory, keccak256(abi.encodePacked(token0, token1)), hex'e260b72768e8ec6814aa811c576f346d208ba00840f835949d65c6424ac80a8d' // init code hash )))); } // fetches and sorts the reserves for a pair function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) { (address token0,) = sortTokens(tokenA, tokenB); (uint reserve0, uint reserve1,) = IEtherVistaPair(pairFor(factory, tokenA, tokenB)).getReserves(); (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0); } // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) { require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT'); require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); amountB = amountA.mul(reserveB) / reserveA; } // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) { require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint amountInWithFee = amountIn.mul(1000); //997 uint numerator = amountInWithFee.mul(reserveOut); uint denominator = reserveIn.mul(1000).add(amountInWithFee); amountOut = numerator / denominator; } // given an output amount of an asset and pair reserves, returns a required input amount of the other asset function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) { require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint numerator = reserveIn.mul(amountOut).mul(1000); uint denominator = reserveOut.sub(amountOut).mul(1000); //997 amountIn = (numerator / denominator).add(1); } // performs chained getAmountOut calculations on any number of pairs function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[0] = amountIn; for (uint i; i < path.length - 1; i++) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]); amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut); } } // performs chained getAmountIn calculations on any number of pairs function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[amounts.length - 1] = amountOut; for (uint i = path.length - 1; i > 0; i--) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]); amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut); } } } interface IEtherVistaFactory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function routerSetter() external view returns (address); function router() 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 createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; function setRouterSetter(address) external; function setRouter(address) external; } library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeApprove: approve failed' ); } function safeTransfer( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeTransfer: transfer failed' ); } function safeTransferFrom( address token, address from, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::transferFrom: transferFrom failed' ); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'TransferHelper::safeTransferETH: ETH transfer failed'); } } 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); } interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; } interface AggregatorV3Interface { function decimals() external view returns ( uint8 ); function description() external view returns ( string memory ); function version() external view returns ( uint256 ); function getRoundData( uint80 _roundId ) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); } contract EtherVistaRouter is IEtherVistaRouter { using SafeMath for uint; address public immutable override factory; address public immutable override WETH; address payable public treasury; AggregatorV3Interface internal priceFeed; modifier ensure(uint deadline) { require(deadline >= block.timestamp, 'EtherVista: EXPIRED'); _; } constructor(address _factory, address _WETH, address _oracleAddress ) public { factory = _factory; WETH = _WETH; priceFeed = AggregatorV3Interface(_oracleAddress); treasury = msg.sender; } receive() external payable { assert(msg.sender == WETH); // only accept ETH via fallback from the WETH contract } function getEthUsdcPrice() internal view returns (uint256) { (, int256 price, , , ) = priceFeed.latestRoundData(); require(price > 0, "Invalid price"); return uint256(price/100); } function usdcToEth(uint256 usdcAmount) public view returns (uint256) { uint256 ethUsdcPrice = getEthUsdcPrice(); return (usdcAmount * 1e6*1e18 / ethUsdcPrice); } // **** ADD LIQUIDITY **** function _addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin ) internal virtual returns (uint amountA, uint amountB) { // create the pair if it doesn't exist yet if (IEtherVistaFactory(factory).getPair(tokenA, tokenB) == address(0)) { IEtherVistaFactory(factory).createPair(tokenA, tokenB); } (uint reserveA, uint reserveB) = UniswapV2Library.getReserves(factory, tokenA, tokenB); if (reserveA == 0 && reserveB == 0) { (amountA, amountB) = (amountADesired, amountBDesired); } else { uint amountBOptimal = UniswapV2Library.quote(amountADesired, reserveA, reserveB); if (amountBOptimal <= amountBDesired) { require(amountBOptimal >= amountBMin, 'EtherVistaRouter: INSUFFICIENT_B_AMOUNT'); (amountA, amountB) = (amountADesired, amountBOptimal); } else { uint amountAOptimal = UniswapV2Library.quote(amountBDesired, reserveB, reserveA); assert(amountAOptimal <= amountADesired); require(amountAOptimal >= amountAMin, 'EtherVistaRouter: INSUFFICIENT_A_AMOUNT'); (amountA, amountB) = (amountAOptimal, amountBDesired); } } } function launch( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, uint8 buyLpFee, uint8 sellLpFee, uint8 buyProtocolFee, uint8 sellProtocolFee, address protocolAddress ) external virtual override payable returns (uint amountToken, uint amountETH, uint liquidity) { (amountToken, amountETH) = _addLiquidity( token, WETH, amountTokenDesired, msg.value, amountTokenMin, amountETHMin ); address pair = UniswapV2Library.pairFor(factory, token, WETH); TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken); IWETH(WETH).deposit{value: amountETH}(); assert(IWETH(WETH).transfer(pair, amountETH)); liquidity = IEtherVistaPair(pair).first_mint(msg.sender, buyLpFee, sellLpFee, buyProtocolFee, sellProtocolFee, protocolAddress); IEtherVistaPair(UniswapV2Library.pairFor(factory, token, WETH)).updateProvider(msg.sender); // refund dust eth, if any if (msg.value > amountETH) TransferHelper.safeTransferETH(msg.sender, msg.value - amountETH); } function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, uint deadline ) external virtual override payable ensure(deadline) returns (uint amountToken, uint amountETH, uint liquidity) { (amountToken, amountETH) = _addLiquidity( token, WETH, amountTokenDesired, msg.value, amountTokenMin, amountETHMin ); address pair = UniswapV2Library.pairFor(factory, token, WETH); TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken); IWETH(WETH).deposit{value: amountETH}(); assert(IWETH(WETH).transfer(pair, amountETH)); liquidity = IEtherVistaPair(pair).mint(msg.sender); IEtherVistaPair(UniswapV2Library.pairFor(factory, token, WETH)).updateProvider(msg.sender); // refund dust eth, if any if (msg.value > amountETH) TransferHelper.safeTransferETH(msg.sender, msg.value - amountETH); } // **** REMOVE LIQUIDITY **** function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) internal ensure(deadline) returns (uint amountA, uint amountB) { address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB); IEtherVistaPair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair (uint amount0, uint amount1) = IEtherVistaPair(pair).burn(to); (address token0,) = UniswapV2Library.sortTokens(tokenA, tokenB); (amountA, amountB) = tokenA == token0 ? (amount0, amount1) : (amount1, amount0); require(amountA >= amountAMin, 'EtherVistaRouter: INSUFFICIENT_A_AMOUNT'); require(amountB >= amountBMin, 'EtherVistaRouter: INSUFFICIENT_B_AMOUNT'); } // **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens) **** function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, uint deadline ) public virtual override ensure(deadline) returns (uint amountETH) { (, amountETH) = removeLiquidity( token, WETH, liquidity, amountTokenMin, amountETHMin, address(this), deadline ); IEtherVistaPair(UniswapV2Library.pairFor(factory, token, WETH)).updateProvider(msg.sender); TransferHelper.safeTransfer(token, msg.sender, IERC20(token).balanceOf(address(this))); IWETH(WETH).withdraw(amountETH); TransferHelper.safeTransferETH(msg.sender, amountETH); } // **** SWAP (supporting fee-on-transfer tokens) **** // requires the initial amount to have already been sent to the first pair function _swapSupportingFeeOnTransferTokens(address[] memory path, address _to) internal virtual { for (uint i; i < path.length - 1; i++) { (address input, address output) = (path[i], path[i + 1]); (address token0,) = UniswapV2Library.sortTokens(input, output); IEtherVistaPair pair = IEtherVistaPair(UniswapV2Library.pairFor(factory, input, output)); uint amountInput; uint amountOutput; { // scope to avoid stack too deep errors (uint reserve0, uint reserve1,) = pair.getReserves(); (uint reserveInput, uint reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0); amountInput = IERC20(input).balanceOf(address(pair)).sub(reserveInput); amountOutput = UniswapV2Library.getAmountOut(amountInput, reserveInput, reserveOutput); } (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOutput) : (amountOutput, uint(0)); address to = i < path.length - 2 ? UniswapV2Library.pairFor(factory, output, path[i + 2]) : _to; pair.swap(amount0Out, amount1Out, to, new bytes(0)); } } function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external virtual override payable ensure(deadline) { require(path.length == 2, 'EtherVistaRouter: INVALID_PATH_LENGTH'); IEtherVistaPair Pair = IEtherVistaPair(UniswapV2Library.pairFor(factory, path[0], path[1])); require(path[0] == WETH, 'EtherVistaRouter: INVALID_PATH'); require(msg.value > usdcToEth(Pair.buyTotalFee()), 'EtherVistaRouter: INSUFFICIENT_ETH_FEE'); uint amountIn = msg.value-usdcToEth(Pair.buyTotalFee()); IWETH(WETH).deposit{value: amountIn}(); assert(IWETH(WETH).transfer(UniswapV2Library.pairFor(factory, path[0], path[1]), amountIn)); uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(to); _swapSupportingFeeOnTransferTokens(path, to); require( IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin, 'EtherVistaRouter: INSUFFICIENT_OUTPUT_AMOUNT' ); treasury.transfer(usdcToEth(1)); (bool sent1, ) = IEtherVistaPair(UniswapV2Library.pairFor(factory, path[0], path[1])).payableProtocol().call{value: usdcToEth(Pair.buyProtocolFee())}(""); (bool sent2,) = UniswapV2Library.pairFor(factory, path[0], path[1]).call{value: usdcToEth(Pair.buyLpFee())}(""); require(sent1 && sent2, "Failed to send Ether"); } function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable virtual override ensure(deadline) { require(path.length == 2, 'EtherVistaRouter: INVALID_PATH_LENGTH'); IEtherVistaPair Pair = IEtherVistaPair(UniswapV2Library.pairFor(factory, path[0], path[1])); require(path[path.length - 1] == WETH, 'EtherVistaRouter: INVALID_PATH'); require(msg.value >= usdcToEth(Pair.sellTotalFee()), 'EtherVistaRouter: INSUFFICIENT_ETH_FEE'); TransferHelper.safeTransferFrom( path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amountIn ); _swapSupportingFeeOnTransferTokens(path, address(this)); uint amountOut = IERC20(WETH).balanceOf(address(this)); require(amountOut >= amountOutMin, 'EtherVistaRouter: INSUFFICIENT_OUTPUT_AMOUNT'); treasury.transfer(usdcToEth(1)); (bool sent1, ) = IEtherVistaPair(UniswapV2Library.pairFor(factory, path[0], path[1])).payableProtocol().call{value: usdcToEth(Pair.sellProtocolFee())}(""); (bool sent2,) = UniswapV2Library.pairFor(factory, path[0], path[1]).call{value: usdcToEth(Pair.sellLpFee())}(""); require(sent1 && sent2, "Failed to send Ether"); IWETH(WETH).withdraw(amountOut); TransferHelper.safeTransferETH(to, amountOut); } // **** LIBRARY FUNCTIONS **** function quote(uint amountA, uint reserveA, uint reserveB) public pure virtual override returns (uint amountB) { return UniswapV2Library.quote(amountA, reserveA, reserveB); } function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) public pure virtual override returns (uint amountOut) { return UniswapV2Library.getAmountOut(amountIn, reserveIn, reserveOut); } function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) public pure virtual override returns (uint amountIn) { return UniswapV2Library.getAmountIn(amountOut, reserveIn, reserveOut); } function getAmountsOut(uint amountIn, address[] memory path) public view virtual override returns (uint[] memory amounts) { return UniswapV2Library.getAmountsOut(factory, amountIn, path); } function getAmountsIn(uint amountOut, address[] memory path) public view virtual override returns (uint[] memory amounts) { return UniswapV2Library.getAmountsIn(factory, amountOut, path); } }
pragma solidity >=0.6.2; interface IEtherVistaRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, uint deadline ) external returns (uint amountETH); function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function launch( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, uint8 buyLpFee, uint8 sellLpFee, uint8 buyProtocolFee, uint8 sellProtocolFee, address protocolAddress ) external payable returns (uint amountToken, uint amountETH, uint liquidity); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH","type":"address"},{"internalType":"address","name":"_oracleAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"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":"view","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":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"uint8","name":"buyLpFee","type":"uint8"},{"internalType":"uint8","name":"sellLpFee","type":"uint8"},{"internalType":"uint8","name":"buyProtocolFee","type":"uint8"},{"internalType":"uint8","name":"sellProtocolFee","type":"uint8"},{"internalType":"address","name":"protocolAddress","type":"address"}],"name":"launch","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","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":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETHSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","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":"swapExactETHForTokensSupportingFeeOnTransferTokens","outputs":[],"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":"swapExactTokensForETHSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdcAmount","type":"uint256"}],"name":"usdcToEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c060405234801561001057600080fd5b5060405161378d38038061378d8339818101604052606081101561003357600080fd5b50805160208201516040909201516001600160601b0319606092831b81166080529290911b90911660a052600180546001600160a01b039092166001600160a01b0319928316179055600080549091163317905560805160601c60a05160601c61361161017c6000398060f152806107a952806109c75280610d115280610db35280610ea4528061100152806110755280611633528061168752806117a852806118bc5280611912528061194652806119ba5280611b075280611bc65280611c1c5280611c505280611cc45280611e3c525080610645528061073f52806109175280610ac45280610c075280610e7452806110a75280611370528061149652806115bd5280611665528061183f52806118f05280611ae55280611bfa5280611e1a528061247452806125f35280612a6f5280612f215280612fcf528061304f52506136116000f3fe6080604052600436106100e15760003560e01c8063ad615dec1161007f578063cc4cf86811610059578063cc4cf8681461046a578063d06ca61f146104b5578063f6f1e3061461056a578063fe1bfba6146105c65761011a565b8063ad615dec1461039b578063b6f9de95146103d1578063c45a0155146104555761011a565b806361d027b3116100bb57806361d027b314610296578063791ac947146102c757806385f8c25914610350578063ad5c4648146103865761011a565b8063054d50d41461011f5780631f00ca7414610167578063590205301461026c5761011a565b3661011a57336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461011857fe5b005b600080fd5b34801561012b57600080fd5b506101556004803603606081101561014257600080fd5b5080359060208101359060400135610629565b60408051918252519081900360200190f35b34801561017357600080fd5b5061021c6004803603604081101561018a57600080fd5b81359190810190604081016020820135600160201b8111156101ab57600080fd5b8201836020820111156101bd57600080fd5b803590602001918460208302840111600160201b831117156101de57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061063e945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610258578181015183820152602001610240565b505050509050019250505060405180910390f35b34801561027857600080fd5b506101556004803603602081101561028f57600080fd5b5035610674565b3480156102a257600080fd5b506102ab61069e565b604080516001600160a01b039092168252519081900360200190f35b610118600480360360a08110156102dd57600080fd5b813591602081013591810190606081016040820135600160201b81111561030357600080fd5b82018360208201111561031557600080fd5b803590602001918460208302840111600160201b8311171561033657600080fd5b91935091506001600160a01b0381351690602001356106ad565b34801561035c57600080fd5b506101556004803603606081101561037357600080fd5b5080359060208101359060400135610da4565b34801561039257600080fd5b506102ab610db1565b3480156103a757600080fd5b50610155600480360360608110156103be57600080fd5b5080359060208101359060400135610dd5565b610118600480360360808110156103e757600080fd5b81359190810190604081016020820135600160201b81111561040857600080fd5b82018360208201111561041a57600080fd5b803590602001918460208302840111600160201b8311171561043b57600080fd5b91935091506001600160a01b038135169060200135610de2565b34801561046157600080fd5b506102ab6115bb565b34801561047657600080fd5b50610155600480360360a081101561048d57600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001356115df565b3480156104c157600080fd5b5061021c600480360360408110156104d857600080fd5b81359190810190604081016020820135600160201b8111156104f957600080fd5b82018360208201111561050b57600080fd5b803590602001918460208302840111600160201b8311171561052c57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611838945050505050565b6105a8600480360360a081101561058057600080fd5b506001600160a01b038135169060208101359060408101359060608101359060800135611865565b60408051938452602084019290925282820152519081900360600190f35b6105a860048036036101208110156105dd57600080fd5b506001600160a01b03813581169160208101359160408201359160608101359160ff608083013581169260a081013582169260c082013583169260e08301351691610100013516611bbb565b6000610636848484611ef3565b949350505050565b606061066b7f00000000000000000000000000000000000000000000000000000000000000008484611fe3565b90505b92915050565b60008061067f612130565b90508069d3c21bcecceda100000084028161069657fe5b049392505050565b6000546001600160a01b031681565b80428110156106f9576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b600284146107385760405162461bcd60e51b815260040180806020018281038252602581526020018061355f6025913960400191505060405180910390fd5b600061079d7f00000000000000000000000000000000000000000000000000000000000000008787600081811061076b57fe5b905060200201356001600160a01b03168888600181811061078857fe5b905060200201356001600160a01b0316612200565b90506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016868660001981018181106107d957fe5b905060200201356001600160a01b03166001600160a01b031614610844576040805162461bcd60e51b815260206004820152601e60248201527f45746865725669737461526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b6108b3816001600160a01b031662afb3256040518163ffffffff1660e01b815260040160206040518083038186803b15801561087f57600080fd5b505afa158015610893573d6000803e3d6000fd5b505050506040513d60208110156108a957600080fd5b505160ff16610674565b3410156108f15760405162461bcd60e51b81526004018080602001828103825260268152602001806134e86026913960400191505060405180910390fd5b6109668686600081811061090157fe5b905060200201356001600160a01b0316336109607f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061094357fe5b905060200201356001600160a01b03168b8b600181811061078857fe5b8b6122c0565b6109a486868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061241d915050565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b158015610a0e57600080fd5b505afa158015610a22573d6000803e3d6000fd5b505050506040513d6020811015610a3857600080fd5b5051905087811015610a7b5760405162461bcd60e51b815260040180806020018281038252602c815260200180613533602c913960400191505060405180910390fd5b6000546001600160a01b03166108fc610a946001610674565b6040518115909202916000818181858888f19350505050158015610abc573d6000803e3d6000fd5b506000610b0d7f000000000000000000000000000000000000000000000000000000000000000089896000818110610af057fe5b905060200201356001600160a01b03168a8a600181811061078857fe5b6001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b4557600080fd5b505afa158015610b59573d6000803e3d6000fd5b505050506040513d6020811015610b6f57600080fd5b505160408051637153bcbf60e11b815290516001600160a01b0392831692610bbb929087169163e2a7797e91600480820192602092909190829003018186803b15801561087f57600080fd5b604051600081818185875af1925050503d8060008114610bf7576040519150601f19603f3d011682016040523d82523d6000602084013e610bfc565b606091505b505090506000610c337f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061094357fe5b6001600160a01b0316610c78856001600160a01b031663c7b8b46d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561087f57600080fd5b604051600081818185875af1925050503d8060008114610cb4576040519150601f19603f3d011682016040523d82523d6000602084013e610cb9565b606091505b50509050818015610cc75750805b610d0f576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610d7557600080fd5b505af1158015610d89573d6000803e3d6000fd5b50505050610d97878461273a565b5050505050505050505050565b600061063684848461282d565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061063684848461291d565b8042811015610e2e576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b60028414610e6d5760405162461bcd60e51b815260040180806020018281038252602581526020018061355f6025913960400191505060405180910390fd5b6000610ea07f00000000000000000000000000000000000000000000000000000000000000008787600081811061076b57fe5b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031686866000818110610ed957fe5b905060200201356001600160a01b03166001600160a01b031614610f44576040805162461bcd60e51b815260206004820152601e60248201527f45746865725669737461526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b610f80816001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561087f57600080fd5b3411610fbd5760405162461bcd60e51b81526004018080602001828103825260268152602001806134e86026913960400191505060405180910390fd5b6000610ffb826001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561087f57600080fd5b340390507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561105a57600080fd5b505af115801561106e573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6110d37f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061094357fe5b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561112357600080fd5b505af1158015611137573d6000803e3d6000fd5b505050506040513d602081101561114d57600080fd5b505161115557fe5b60008787600019810181811061116757fe5b905060200201356001600160a01b03166001600160a01b03166370a08231876040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156111cc57600080fd5b505afa1580156111e0573d6000803e3d6000fd5b505050506040513d60208110156111f657600080fd5b50516040805160208a810282810182019093528a82529293506112389290918b918b9182918501908490808284376000920191909152508a925061241d915050565b886112ea828a8a600019810181811061124d57fe5b905060200201356001600160a01b03166001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156112b257600080fd5b505afa1580156112c6573d6000803e3d6000fd5b505050506040513d60208110156112dc57600080fd5b50519063ffffffff6129c916565b10156113275760405162461bcd60e51b815260040180806020018281038252602c815260200180613533602c913960400191505060405180910390fd5b6000546001600160a01b03166108fc6113406001610674565b6040518115909202916000818181858888f19350505050158015611368573d6000803e3d6000fd5b50600061139c7f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061094357fe5b6001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113d457600080fd5b505afa1580156113e8573d6000803e3d6000fd5b505050506040513d60208110156113fe57600080fd5b50516040805163cc2b765760e01b815290516001600160a01b039283169261144a929088169163cc2b765791600480820192602092909190829003018186803b15801561087f57600080fd5b604051600081818185875af1925050503d8060008114611486576040519150601f19603f3d011682016040523d82523d6000602084013e61148b565b606091505b5050905060006114df7f00000000000000000000000000000000000000000000000000000000000000008b8b60008181106114c257fe5b905060200201356001600160a01b03168c8c600181811061078857fe5b6001600160a01b0316611524866001600160a01b0316636fd3acb46040518163ffffffff1660e01b815260040160206040518083038186803b15801561087f57600080fd5b604051600081818185875af1925050503d8060008114611560576040519150601f19603f3d011682016040523d82523d6000602084013e611565565b606091505b505090508180156115735750805b610d97576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000081565b6000814281101561162d576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b61165c877f00000000000000000000000000000000000000000000000000000000000000008888883089612a19565b92506116ab90507f0000000000000000000000000000000000000000000000000000000000000000887f0000000000000000000000000000000000000000000000000000000000000000612200565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b15801561170257600080fd5b505af1158015611716573d6000803e3d6000fd5b505050506117a68733896001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561177557600080fd5b505afa158015611789573d6000803e3d6000fd5b505050506040513d602081101561179f57600080fd5b5051612c65565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561180c57600080fd5b505af1158015611820573d6000803e3d6000fd5b5050505061182e338361273a565b5095945050505050565b606061066b7f00000000000000000000000000000000000000000000000000000000000000008484612db9565b600080600083428110156118b6576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b6118e4897f00000000000000000000000000000000000000000000000000000000000000008a348b8b612ef0565b909450925060006119367f00000000000000000000000000000000000000000000000000000000000000008b7f0000000000000000000000000000000000000000000000000000000000000000612200565b90506119448a3383886122c0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561199f57600080fd5b505af11580156119b3573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611a3857600080fd5b505af1158015611a4c573d6000803e3d6000fd5b505050506040513d6020811015611a6257600080fd5b5051611a6a57fe5b604080516335313c2160e11b815233600482015290516001600160a01b03831691636a6278429160248083019260209291908290030181600087803b158015611ab257600080fd5b505af1158015611ac6573d6000803e3d6000fd5b505050506040513d6020811015611adc57600080fd5b50519250611b2b7f00000000000000000000000000000000000000000000000000000000000000008b7f0000000000000000000000000000000000000000000000000000000000000000612200565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015611b8257600080fd5b505af1158015611b96573d6000803e3d6000fd5b5050505083341115611bae57611bae3385340361273a565b5050955095509592505050565b6000806000611bee8c7f00000000000000000000000000000000000000000000000000000000000000008d348e8e612ef0565b90935091506000611c407f00000000000000000000000000000000000000000000000000000000000000008e7f0000000000000000000000000000000000000000000000000000000000000000612200565b9050611c4e8d3383876122c0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b158015611ca957600080fd5b505af1158015611cbd573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611d4257600080fd5b505af1158015611d56573d6000803e3d6000fd5b505050506040513d6020811015611d6c57600080fd5b5051611d7457fe5b6040805163dc2dc3f360e01b815233600482015260ff808c166024830152808b166044830152808a166064830152881660848201526001600160a01b0387811660a483015291519183169163dc2dc3f39160c4808201926020929091908290030181600087803b158015611de757600080fd5b505af1158015611dfb573d6000803e3d6000fd5b505050506040513d6020811015611e1157600080fd5b50519150611e607f00000000000000000000000000000000000000000000000000000000000000008e7f0000000000000000000000000000000000000000000000000000000000000000612200565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015611eb757600080fd5b505af1158015611ecb573d6000803e3d6000fd5b5050505082341115611ee357611ee33384340361273a565b5099509950999650505050505050565b6000808411611f335760405162461bcd60e51b815260040180806020018281038252602b8152602001806135b1602b913960400191505060405180910390fd5b600083118015611f435750600082115b611f7e5760405162461bcd60e51b81526004018080602001828103825260288152602001806134c06028913960400191505060405180910390fd5b6000611f92856103e863ffffffff61316416565b90506000611fa6828563ffffffff61316416565b90506000611fcc83611fc0886103e863ffffffff61316416565b9063ffffffff6131c716565b9050808281611fd757fe5b04979650505050505050565b606060028251101561203c576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff8111801561205457600080fd5b5060405190808252806020026020018201604052801561207e578160200160208202803683370190505b509050828160018351038151811061209257fe5b60209081029190910101528151600019015b8015612128576000806120e1878660018603815181106120c057fe5b60200260200101518786815181106120d457fe5b6020026020010151613216565b915091506121038484815181106120f457fe5b6020026020010151838361282d565b84600185038151811061211257fe5b60209081029190910101525050600019016120a4565b509392505050565b600080600160009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561218157600080fd5b505afa158015612195573d6000803e3d6000fd5b505050506040513d60a08110156121ab57600080fd5b50602001519050600081136121f7576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b604482015290519081900360640190fd5b60649005919050565b600080600061220f85856132dd565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fe260b72768e8ec6814aa811c576f346d208ba00840f835949d65c6424ac80a8d609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106123455780518252601f199092019160209182019101612326565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146123a7576040519150601f19603f3d011682016040523d82523d6000602084013e6123ac565b606091505b50915091508180156123da5750805115806123da57508080602001905160208110156123d757600080fd5b50515b6124155760405162461bcd60e51b815260040180806020018281038252603181526020018061340f6031913960400191505060405180910390fd5b505050505050565b60005b60018351038110156127355760008084838151811061243b57fe5b602002602001015185846001018151811061245257fe5b602002602001015191509150600061246a83836132dd565b509050600061249a7f00000000000000000000000000000000000000000000000000000000000000008585612200565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156124db57600080fd5b505afa1580156124ef573d6000803e3d6000fd5b505050506040513d606081101561250557600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a81169089161461253b57828461253e565b83835b9150915061259c828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156112b257600080fd5b95506125a9868383611ef3565b945050505050600080856001600160a01b0316886001600160a01b0316146125d3578260006125d7565b6000835b91509150600060028c51038a106125ee578a61262f565b61262f7f0000000000000000000000000000000000000000000000000000000000000000898e8d6002018151811061262257fe5b6020026020010151612200565b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b838110156126b95781810151838201526020016126a1565b50505050905090810190601f1680156126e65780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561270857600080fd5b505af115801561271c573d6000803e3d6000fd5b50506001909b019a506124209950505050505050505050565b505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106127865780518252601f199092019160209182019101612767565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146127e8576040519150601f19603f3d011682016040523d82523d6000602084013e6127ed565b606091505b50509050806127355760405162461bcd60e51b81526004018080602001828103825260348152602001806134406034913960400191505060405180910390fd5b600080841161286d5760405162461bcd60e51b815260040180806020018281038252602c8152602001806133bc602c913960400191505060405180910390fd5b60008311801561287d5750600082115b6128b85760405162461bcd60e51b81526004018080602001828103825260288152602001806134c06028913960400191505060405180910390fd5b60006128dc6103e86128d0868863ffffffff61316416565b9063ffffffff61316416565b905060006128f66103e86128d0868963ffffffff6129c916565b9050612913600182848161290657fe5b049063ffffffff6131c716565b9695505050505050565b600080841161295d5760405162461bcd60e51b815260040180806020018281038252602581526020018061350e6025913960400191505060405180910390fd5b60008311801561296d5750600082115b6129a85760405162461bcd60e51b81526004018080602001828103825260288152602001806134c06028913960400191505060405180910390fd5b826129b9858463ffffffff61316416565b816129c057fe5b04949350505050565b8082038281111561066e576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6000808242811015612a68576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b6000612a957f00000000000000000000000000000000000000000000000000000000000000008c8c612200565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b158015612af057600080fd5b505af1158015612b04573d6000803e3d6000fd5b505050506040513d6020811015612b1a57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b158015612b6757600080fd5b505af1158015612b7b573d6000803e3d6000fd5b505050506040513d6040811015612b9157600080fd5b50805160209091015190925090506000612bab8e8e6132dd565b509050806001600160a01b03168e6001600160a01b031614612bce578183612bd1565b82825b90975095508a871015612c155760405162461bcd60e51b81526004018080602001828103825260278152602001806134996027913960400191505060405180910390fd5b89861015612c545760405162461bcd60e51b81526004018080602001828103825260278152602001806133e86027913960400191505060405180910390fd5b505050505097509795505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310612ce25780518252601f199092019160209182019101612cc3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612d44576040519150601f19603f3d011682016040523d82523d6000602084013e612d49565b606091505b5091509150818015612d77575080511580612d775750808060200190516020811015612d7457600080fd5b50515b612db25760405162461bcd60e51b815260040180806020018281038252602d815260200180613584602d913960400191505060405180910390fd5b5050505050565b6060600282511015612e12576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015612e2a57600080fd5b50604051908082528060200260200182016040528015612e54578160200160208202803683370190505b5090508281600081518110612e6557fe5b60200260200101818152505060005b600183510381101561212857600080612eaa87868581518110612e9357fe5b60200260200101518786600101815181106120d457fe5b91509150612ecc848481518110612ebd57fe5b60200260200101518383611ef3565b848460010181518110612edb57fe5b60209081029190910101525050600101612e74565b6040805163e6a4390560e01b81526001600160a01b03888116600483015287811660248301529151600092839283927f00000000000000000000000000000000000000000000000000000000000000009092169163e6a4390591604480820192602092909190829003018186803b158015612f6a57600080fd5b505afa158015612f7e573d6000803e3d6000fd5b505050506040513d6020811015612f9457600080fd5b50516001600160a01b0316141561304757604080516364e329cb60e11b81526001600160a01b038a81166004830152898116602483015291517f00000000000000000000000000000000000000000000000000000000000000009092169163c9c65396916044808201926020929091908290030181600087803b15801561301a57600080fd5b505af115801561302e573d6000803e3d6000fd5b505050506040513d602081101561304457600080fd5b50505b6000806130757f00000000000000000000000000000000000000000000000000000000000000008b8b613216565b91509150816000148015613087575080155b1561309757879350869250613157565b60006130a489848461291d565b90508781116130f757858110156130ec5760405162461bcd60e51b81526004018080602001828103825260278152602001806133e86027913960400191505060405180910390fd5b889450925082613155565b600061310489848661291d565b90508981111561311057fe5b8781101561314f5760405162461bcd60e51b81526004018080602001828103825260278152602001806134996027913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b600081158061317f5750508082028282828161317c57fe5b04145b61066e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b8082018281101561066e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b600080600061322585856132dd565b509050600080613236888888612200565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561326e57600080fd5b505afa158015613282573d6000803e3d6000fd5b505050506040513d606081101561329857600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b03878116908416146132cb5780826132ce565b81815b90999098509650505050505050565b600080826001600160a01b0316846001600160a01b031614156133315760405162461bcd60e51b81526004018080602001828103825260258152602001806134746025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610613351578284613354565b83835b90925090506001600160a01b0382166133b4576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b925092905056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e5445746865725669737461526f757465723a20494e53554646494349454e545f425f414d4f554e545472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c65645472616e7366657248656c7065723a3a736166655472616e736665724554483a20455448207472616e73666572206661696c6564556e697377617056324c6962726172793a204944454e544943414c5f41444452455353455345746865725669737461526f757465723a20494e53554646494349454e545f415f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c495155494449545945746865725669737461526f757465723a20494e53554646494349454e545f4554485f464545556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e5445746865725669737461526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e5445746865725669737461526f757465723a20494e56414c49445f504154485f4c454e4754485472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a26469706673582212203135dee36ed13115589dd2aae068fe1acf054546189393484857d542ca3aa25764736f6c634300060600330000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b4000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Deployed Bytecode
0x6080604052600436106100e15760003560e01c8063ad615dec1161007f578063cc4cf86811610059578063cc4cf8681461046a578063d06ca61f146104b5578063f6f1e3061461056a578063fe1bfba6146105c65761011a565b8063ad615dec1461039b578063b6f9de95146103d1578063c45a0155146104555761011a565b806361d027b3116100bb57806361d027b314610296578063791ac947146102c757806385f8c25914610350578063ad5c4648146103865761011a565b8063054d50d41461011f5780631f00ca7414610167578063590205301461026c5761011a565b3661011a57336001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2161461011857fe5b005b600080fd5b34801561012b57600080fd5b506101556004803603606081101561014257600080fd5b5080359060208101359060400135610629565b60408051918252519081900360200190f35b34801561017357600080fd5b5061021c6004803603604081101561018a57600080fd5b81359190810190604081016020820135600160201b8111156101ab57600080fd5b8201836020820111156101bd57600080fd5b803590602001918460208302840111600160201b831117156101de57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061063e945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610258578181015183820152602001610240565b505050509050019250505060405180910390f35b34801561027857600080fd5b506101556004803603602081101561028f57600080fd5b5035610674565b3480156102a257600080fd5b506102ab61069e565b604080516001600160a01b039092168252519081900360200190f35b610118600480360360a08110156102dd57600080fd5b813591602081013591810190606081016040820135600160201b81111561030357600080fd5b82018360208201111561031557600080fd5b803590602001918460208302840111600160201b8311171561033657600080fd5b91935091506001600160a01b0381351690602001356106ad565b34801561035c57600080fd5b506101556004803603606081101561037357600080fd5b5080359060208101359060400135610da4565b34801561039257600080fd5b506102ab610db1565b3480156103a757600080fd5b50610155600480360360608110156103be57600080fd5b5080359060208101359060400135610dd5565b610118600480360360808110156103e757600080fd5b81359190810190604081016020820135600160201b81111561040857600080fd5b82018360208201111561041a57600080fd5b803590602001918460208302840111600160201b8311171561043b57600080fd5b91935091506001600160a01b038135169060200135610de2565b34801561046157600080fd5b506102ab6115bb565b34801561047657600080fd5b50610155600480360360a081101561048d57600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001356115df565b3480156104c157600080fd5b5061021c600480360360408110156104d857600080fd5b81359190810190604081016020820135600160201b8111156104f957600080fd5b82018360208201111561050b57600080fd5b803590602001918460208302840111600160201b8311171561052c57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611838945050505050565b6105a8600480360360a081101561058057600080fd5b506001600160a01b038135169060208101359060408101359060608101359060800135611865565b60408051938452602084019290925282820152519081900360600190f35b6105a860048036036101208110156105dd57600080fd5b506001600160a01b03813581169160208101359160408201359160608101359160ff608083013581169260a081013582169260c082013583169260e08301351691610100013516611bbb565b6000610636848484611ef3565b949350505050565b606061066b7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48484611fe3565b90505b92915050565b60008061067f612130565b90508069d3c21bcecceda100000084028161069657fe5b049392505050565b6000546001600160a01b031681565b80428110156106f9576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b600284146107385760405162461bcd60e51b815260040180806020018281038252602581526020018061355f6025913960400191505060405180910390fd5b600061079d7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48787600081811061076b57fe5b905060200201356001600160a01b03168888600181811061078857fe5b905060200201356001600160a01b0316612200565b90506001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216868660001981018181106107d957fe5b905060200201356001600160a01b03166001600160a01b031614610844576040805162461bcd60e51b815260206004820152601e60248201527f45746865725669737461526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b6108b3816001600160a01b031662afb3256040518163ffffffff1660e01b815260040160206040518083038186803b15801561087f57600080fd5b505afa158015610893573d6000803e3d6000fd5b505050506040513d60208110156108a957600080fd5b505160ff16610674565b3410156108f15760405162461bcd60e51b81526004018080602001828103825260268152602001806134e86026913960400191505060405180910390fd5b6109668686600081811061090157fe5b905060200201356001600160a01b0316336109607f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48a8a600081811061094357fe5b905060200201356001600160a01b03168b8b600181811061078857fe5b8b6122c0565b6109a486868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061241d915050565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216916370a0823191602480820192602092909190829003018186803b158015610a0e57600080fd5b505afa158015610a22573d6000803e3d6000fd5b505050506040513d6020811015610a3857600080fd5b5051905087811015610a7b5760405162461bcd60e51b815260040180806020018281038252602c815260200180613533602c913960400191505060405180910390fd5b6000546001600160a01b03166108fc610a946001610674565b6040518115909202916000818181858888f19350505050158015610abc573d6000803e3d6000fd5b506000610b0d7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b489896000818110610af057fe5b905060200201356001600160a01b03168a8a600181811061078857fe5b6001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b4557600080fd5b505afa158015610b59573d6000803e3d6000fd5b505050506040513d6020811015610b6f57600080fd5b505160408051637153bcbf60e11b815290516001600160a01b0392831692610bbb929087169163e2a7797e91600480820192602092909190829003018186803b15801561087f57600080fd5b604051600081818185875af1925050503d8060008114610bf7576040519150601f19603f3d011682016040523d82523d6000602084013e610bfc565b606091505b505090506000610c337f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48a8a600081811061094357fe5b6001600160a01b0316610c78856001600160a01b031663c7b8b46d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561087f57600080fd5b604051600081818185875af1925050503d8060008114610cb4576040519150601f19603f3d011682016040523d82523d6000602084013e610cb9565b606091505b50509050818015610cc75750805b610d0f576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610d7557600080fd5b505af1158015610d89573d6000803e3d6000fd5b50505050610d97878461273a565b5050505050505050505050565b600061063684848461282d565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600061063684848461291d565b8042811015610e2e576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b60028414610e6d5760405162461bcd60e51b815260040180806020018281038252602581526020018061355f6025913960400191505060405180910390fd5b6000610ea07f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48787600081811061076b57fe5b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031686866000818110610ed957fe5b905060200201356001600160a01b03166001600160a01b031614610f44576040805162461bcd60e51b815260206004820152601e60248201527f45746865725669737461526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b610f80816001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561087f57600080fd5b3411610fbd5760405162461bcd60e51b81526004018080602001828103825260268152602001806134e86026913960400191505060405180910390fd5b6000610ffb826001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561087f57600080fd5b340390507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561105a57600080fd5b505af115801561106e573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb6110d37f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48a8a600081811061094357fe5b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561112357600080fd5b505af1158015611137573d6000803e3d6000fd5b505050506040513d602081101561114d57600080fd5b505161115557fe5b60008787600019810181811061116757fe5b905060200201356001600160a01b03166001600160a01b03166370a08231876040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156111cc57600080fd5b505afa1580156111e0573d6000803e3d6000fd5b505050506040513d60208110156111f657600080fd5b50516040805160208a810282810182019093528a82529293506112389290918b918b9182918501908490808284376000920191909152508a925061241d915050565b886112ea828a8a600019810181811061124d57fe5b905060200201356001600160a01b03166001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156112b257600080fd5b505afa1580156112c6573d6000803e3d6000fd5b505050506040513d60208110156112dc57600080fd5b50519063ffffffff6129c916565b10156113275760405162461bcd60e51b815260040180806020018281038252602c815260200180613533602c913960400191505060405180910390fd5b6000546001600160a01b03166108fc6113406001610674565b6040518115909202916000818181858888f19350505050158015611368573d6000803e3d6000fd5b50600061139c7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48a8a600081811061094357fe5b6001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113d457600080fd5b505afa1580156113e8573d6000803e3d6000fd5b505050506040513d60208110156113fe57600080fd5b50516040805163cc2b765760e01b815290516001600160a01b039283169261144a929088169163cc2b765791600480820192602092909190829003018186803b15801561087f57600080fd5b604051600081818185875af1925050503d8060008114611486576040519150601f19603f3d011682016040523d82523d6000602084013e61148b565b606091505b5050905060006114df7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48b8b60008181106114c257fe5b905060200201356001600160a01b03168c8c600181811061078857fe5b6001600160a01b0316611524866001600160a01b0316636fd3acb46040518163ffffffff1660e01b815260040160206040518083038186803b15801561087f57600080fd5b604051600081818185875af1925050503d8060008114611560576040519150601f19603f3d011682016040523d82523d6000602084013e611565565b606091505b505090508180156115735750805b610d97576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b481565b6000814281101561162d576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b61165c877f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28888883089612a19565b92506116ab90507f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b4887f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612200565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b15801561170257600080fd5b505af1158015611716573d6000803e3d6000fd5b505050506117a68733896001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561177557600080fd5b505afa158015611789573d6000803e3d6000fd5b505050506040513d602081101561179f57600080fd5b5051612c65565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561180c57600080fd5b505af1158015611820573d6000803e3d6000fd5b5050505061182e338361273a565b5095945050505050565b606061066b7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48484612db9565b600080600083428110156118b6576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b6118e4897f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28a348b8b612ef0565b909450925060006119367f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612200565b90506119448a3383886122c0565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561199f57600080fd5b505af11580156119b3573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611a3857600080fd5b505af1158015611a4c573d6000803e3d6000fd5b505050506040513d6020811015611a6257600080fd5b5051611a6a57fe5b604080516335313c2160e11b815233600482015290516001600160a01b03831691636a6278429160248083019260209291908290030181600087803b158015611ab257600080fd5b505af1158015611ac6573d6000803e3d6000fd5b505050506040513d6020811015611adc57600080fd5b50519250611b2b7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612200565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015611b8257600080fd5b505af1158015611b96573d6000803e3d6000fd5b5050505083341115611bae57611bae3385340361273a565b5050955095509592505050565b6000806000611bee8c7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28d348e8e612ef0565b90935091506000611c407f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48e7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612200565b9050611c4e8d3383876122c0565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b158015611ca957600080fd5b505af1158015611cbd573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb82856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611d4257600080fd5b505af1158015611d56573d6000803e3d6000fd5b505050506040513d6020811015611d6c57600080fd5b5051611d7457fe5b6040805163dc2dc3f360e01b815233600482015260ff808c166024830152808b166044830152808a166064830152881660848201526001600160a01b0387811660a483015291519183169163dc2dc3f39160c4808201926020929091908290030181600087803b158015611de757600080fd5b505af1158015611dfb573d6000803e3d6000fd5b505050506040513d6020811015611e1157600080fd5b50519150611e607f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48e7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612200565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015611eb757600080fd5b505af1158015611ecb573d6000803e3d6000fd5b5050505082341115611ee357611ee33384340361273a565b5099509950999650505050505050565b6000808411611f335760405162461bcd60e51b815260040180806020018281038252602b8152602001806135b1602b913960400191505060405180910390fd5b600083118015611f435750600082115b611f7e5760405162461bcd60e51b81526004018080602001828103825260288152602001806134c06028913960400191505060405180910390fd5b6000611f92856103e863ffffffff61316416565b90506000611fa6828563ffffffff61316416565b90506000611fcc83611fc0886103e863ffffffff61316416565b9063ffffffff6131c716565b9050808281611fd757fe5b04979650505050505050565b606060028251101561203c576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff8111801561205457600080fd5b5060405190808252806020026020018201604052801561207e578160200160208202803683370190505b509050828160018351038151811061209257fe5b60209081029190910101528151600019015b8015612128576000806120e1878660018603815181106120c057fe5b60200260200101518786815181106120d457fe5b6020026020010151613216565b915091506121038484815181106120f457fe5b6020026020010151838361282d565b84600185038151811061211257fe5b60209081029190910101525050600019016120a4565b509392505050565b600080600160009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561218157600080fd5b505afa158015612195573d6000803e3d6000fd5b505050506040513d60a08110156121ab57600080fd5b50602001519050600081136121f7576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b604482015290519081900360640190fd5b60649005919050565b600080600061220f85856132dd565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fe260b72768e8ec6814aa811c576f346d208ba00840f835949d65c6424ac80a8d609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106123455780518252601f199092019160209182019101612326565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146123a7576040519150601f19603f3d011682016040523d82523d6000602084013e6123ac565b606091505b50915091508180156123da5750805115806123da57508080602001905160208110156123d757600080fd5b50515b6124155760405162461bcd60e51b815260040180806020018281038252603181526020018061340f6031913960400191505060405180910390fd5b505050505050565b60005b60018351038110156127355760008084838151811061243b57fe5b602002602001015185846001018151811061245257fe5b602002602001015191509150600061246a83836132dd565b509050600061249a7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48585612200565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156124db57600080fd5b505afa1580156124ef573d6000803e3d6000fd5b505050506040513d606081101561250557600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a81169089161461253b57828461253e565b83835b9150915061259c828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156112b257600080fd5b95506125a9868383611ef3565b945050505050600080856001600160a01b0316886001600160a01b0316146125d3578260006125d7565b6000835b91509150600060028c51038a106125ee578a61262f565b61262f7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b4898e8d6002018151811061262257fe5b6020026020010151612200565b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b838110156126b95781810151838201526020016126a1565b50505050905090810190601f1680156126e65780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561270857600080fd5b505af115801561271c573d6000803e3d6000fd5b50506001909b019a506124209950505050505050505050565b505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106127865780518252601f199092019160209182019101612767565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146127e8576040519150601f19603f3d011682016040523d82523d6000602084013e6127ed565b606091505b50509050806127355760405162461bcd60e51b81526004018080602001828103825260348152602001806134406034913960400191505060405180910390fd5b600080841161286d5760405162461bcd60e51b815260040180806020018281038252602c8152602001806133bc602c913960400191505060405180910390fd5b60008311801561287d5750600082115b6128b85760405162461bcd60e51b81526004018080602001828103825260288152602001806134c06028913960400191505060405180910390fd5b60006128dc6103e86128d0868863ffffffff61316416565b9063ffffffff61316416565b905060006128f66103e86128d0868963ffffffff6129c916565b9050612913600182848161290657fe5b049063ffffffff6131c716565b9695505050505050565b600080841161295d5760405162461bcd60e51b815260040180806020018281038252602581526020018061350e6025913960400191505060405180910390fd5b60008311801561296d5750600082115b6129a85760405162461bcd60e51b81526004018080602001828103825260288152602001806134c06028913960400191505060405180910390fd5b826129b9858463ffffffff61316416565b816129c057fe5b04949350505050565b8082038281111561066e576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6000808242811015612a68576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b6000612a957f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48c8c612200565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b158015612af057600080fd5b505af1158015612b04573d6000803e3d6000fd5b505050506040513d6020811015612b1a57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b158015612b6757600080fd5b505af1158015612b7b573d6000803e3d6000fd5b505050506040513d6040811015612b9157600080fd5b50805160209091015190925090506000612bab8e8e6132dd565b509050806001600160a01b03168e6001600160a01b031614612bce578183612bd1565b82825b90975095508a871015612c155760405162461bcd60e51b81526004018080602001828103825260278152602001806134996027913960400191505060405180910390fd5b89861015612c545760405162461bcd60e51b81526004018080602001828103825260278152602001806133e86027913960400191505060405180910390fd5b505050505097509795505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310612ce25780518252601f199092019160209182019101612cc3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612d44576040519150601f19603f3d011682016040523d82523d6000602084013e612d49565b606091505b5091509150818015612d77575080511580612d775750808060200190516020811015612d7457600080fd5b50515b612db25760405162461bcd60e51b815260040180806020018281038252602d815260200180613584602d913960400191505060405180910390fd5b5050505050565b6060600282511015612e12576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015612e2a57600080fd5b50604051908082528060200260200182016040528015612e54578160200160208202803683370190505b5090508281600081518110612e6557fe5b60200260200101818152505060005b600183510381101561212857600080612eaa87868581518110612e9357fe5b60200260200101518786600101815181106120d457fe5b91509150612ecc848481518110612ebd57fe5b60200260200101518383611ef3565b848460010181518110612edb57fe5b60209081029190910101525050600101612e74565b6040805163e6a4390560e01b81526001600160a01b03888116600483015287811660248301529151600092839283927f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b49092169163e6a4390591604480820192602092909190829003018186803b158015612f6a57600080fd5b505afa158015612f7e573d6000803e3d6000fd5b505050506040513d6020811015612f9457600080fd5b50516001600160a01b0316141561304757604080516364e329cb60e11b81526001600160a01b038a81166004830152898116602483015291517f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b49092169163c9c65396916044808201926020929091908290030181600087803b15801561301a57600080fd5b505af115801561302e573d6000803e3d6000fd5b505050506040513d602081101561304457600080fd5b50505b6000806130757f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48b8b613216565b91509150816000148015613087575080155b1561309757879350869250613157565b60006130a489848461291d565b90508781116130f757858110156130ec5760405162461bcd60e51b81526004018080602001828103825260278152602001806133e86027913960400191505060405180910390fd5b889450925082613155565b600061310489848661291d565b90508981111561311057fe5b8781101561314f5760405162461bcd60e51b81526004018080602001828103825260278152602001806134996027913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b600081158061317f5750508082028282828161317c57fe5b04145b61066e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b8082018281101561066e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b600080600061322585856132dd565b509050600080613236888888612200565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561326e57600080fd5b505afa158015613282573d6000803e3d6000fd5b505050506040513d606081101561329857600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b03878116908416146132cb5780826132ce565b81815b90999098509650505050505050565b600080826001600160a01b0316846001600160a01b031614156133315760405162461bcd60e51b81526004018080602001828103825260258152602001806134746025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610613351578284613354565b83835b90925090506001600160a01b0382166133b4576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b925092905056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e5445746865725669737461526f757465723a20494e53554646494349454e545f425f414d4f554e545472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c65645472616e7366657248656c7065723a3a736166655472616e736665724554483a20455448207472616e73666572206661696c6564556e697377617056324c6962726172793a204944454e544943414c5f41444452455353455345746865725669737461526f757465723a20494e53554646494349454e545f415f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c495155494449545945746865725669737461526f757465723a20494e53554646494349454e545f4554485f464545556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e5445746865725669737461526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e5445746865725669737461526f757465723a20494e56414c49445f504154485f4c454e4754485472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a26469706673582212203135dee36ed13115589dd2aae068fe1acf054546189393484857d542ca3aa25764736f6c63430006060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b4000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
-----Decoded View---------------
Arg [0] : _factory (address): 0x9a27cb5ae0B2cEe0bb71f9A85C0D60f3920757B4
Arg [1] : _WETH (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _oracleAddress (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b4
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,308.22 | 0.00102327 | $3.39 |
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.