Overview
ETH Balance
0.000626151416422142 ETH
Eth Value
$2.08 (@ $3,316.17/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 156,446 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap Exact Token... | 20728460 | 72 days ago | IN | 0.00137813 ETH | 0.00022618 | ||||
Swap Exact ETH F... | 20727719 | 72 days ago | IN | 0.001 ETH | 0.00036341 | ||||
Launch | 20723516 | 72 days ago | IN | 0.01 ETH | 0.01373927 | ||||
Swap Exact ETH F... | 20720527 | 73 days ago | IN | 0.01170933 ETH | 0.00115476 | ||||
Swap Exact ETH F... | 20720511 | 73 days ago | IN | 0.01128199 ETH | 0.00092467 | ||||
Swap Exact Token... | 20719253 | 73 days ago | IN | 0.00504749 ETH | 0.00005189 | ||||
Swap Exact Token... | 20719251 | 73 days ago | IN | 0.0051336 ETH | 0.0000546 | ||||
Swap Exact Token... | 20719251 | 73 days ago | IN | 0.0051336 ETH | 0.0000546 | ||||
Swap Exact Token... | 20719251 | 73 days ago | IN | 0.0051336 ETH | 0.0000546 | ||||
Swap Exact Token... | 20719251 | 73 days ago | IN | 0.0051336 ETH | 0.00005457 | ||||
Swap Exact Token... | 20719251 | 73 days ago | IN | 0.0051336 ETH | 0.00005457 | ||||
Swap Exact ETH F... | 20716631 | 73 days ago | IN | 0.00398209 ETH | 0.00062286 | ||||
Swap Exact ETH F... | 20715456 | 74 days ago | IN | 0.03469921 ETH | 0.00082514 | ||||
Swap Exact ETH F... | 20715454 | 74 days ago | IN | 0.03469921 ETH | 0.00081118 | ||||
Swap Exact ETH F... | 20712779 | 74 days ago | IN | 0.01677693 ETH | 0.00006966 | ||||
Swap Exact ETH F... | 20712779 | 74 days ago | IN | 0.01277693 ETH | 0.00006966 | ||||
Swap Exact ETH F... | 20712778 | 74 days ago | IN | 0.01277693 ETH | 0.00006208 | ||||
Swap Exact ETH F... | 20712778 | 74 days ago | IN | 0.01577693 ETH | 0.00006202 | ||||
Swap Exact ETH F... | 20712778 | 74 days ago | IN | 0.01277622 ETH | 0.00006205 | ||||
Swap Exact ETH F... | 20712773 | 74 days ago | IN | 0.01518981 ETH | 0.00006574 | ||||
Swap Exact Token... | 20709177 | 75 days ago | IN | 0.0009 ETH | 0.00016399 | ||||
Swap Exact Token... | 20709176 | 75 days ago | IN | 0.0009 ETH | 0.00016603 | ||||
Swap Exact Token... | 20707535 | 75 days ago | IN | 0.00416835 ETH | 0.00010215 | ||||
Swap Exact Token... | 20707227 | 75 days ago | IN | 0.00416835 ETH | 0.00008941 | ||||
Swap Exact Token... | 20706921 | 75 days ago | IN | 0.01 ETH | 0.00072651 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20723516 | 72 days ago | 0.01 ETH | ||||
20720527 | 73 days ago | 0.01 ETH | ||||
20720511 | 73 days ago | 0.01 ETH | ||||
20716631 | 73 days ago | 0.001 ETH | ||||
20715456 | 74 days ago | 0.03 ETH | ||||
20715454 | 74 days ago | 0.03 ETH | ||||
20706550 | 75 days ago | 0.01867834 ETH | ||||
20705521 | 75 days ago | 0.04782886 ETH | ||||
20705410 | 75 days ago | 0.04782353 ETH | ||||
20704305 | 75 days ago | 0.04868826 ETH | ||||
20702734 | 75 days ago | 0.04691756 ETH | ||||
20701553 | 76 days ago | 0.04514721 ETH | ||||
20701053 | 76 days ago | 0.04869109 ETH | ||||
20700893 | 76 days ago | 0.04737169 ETH | ||||
20700837 | 76 days ago | 0.04693364 ETH | ||||
20700636 | 76 days ago | 0.04693251 ETH | ||||
20700537 | 76 days ago | 0.04867877 ETH | ||||
20699901 | 76 days ago | 0.02522625 ETH | ||||
20699901 | 76 days ago | 0.04522625 ETH | ||||
20699887 | 76 days ago | 0.02869807 ETH | ||||
20699188 | 76 days ago | 0.04520285 ETH | ||||
20698547 | 76 days ago | 0.04080624 ETH | ||||
20698162 | 76 days ago | 0.01 ETH | ||||
20698010 | 76 days ago | 0.04081023 ETH | ||||
20697557 | 76 days ago | 0.01868823 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) { 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) { 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
60c060405234801561001057600080fd5b506040516136ea3803806136ea8339818101604052606081101561003357600080fd5b50805160208201516040909201516001600160601b0319606092831b81166080529290911b90911660a052600180546001600160a01b039092166001600160a01b0319928316179055600080549091163317905560805160601c60a05160601c61356e61017c6000398060f1528061076a52806109885280610cd25280610d745280610e265280610f835280610ff752806115b55280611609528061172a528061183e528061189452806118c8528061193c5280611a895280611b485280611b9e5280611bd25280611c465280611dbe525080610645528061070052806108d85280610a855280610bc85280610df6528061102952806112f25280611418528061153f52806115e752806117c152806118725280611a675280611b7c5280611d9c52806123f6528061257552806129f15280612ea35280612f515280612fd1525061356e6000f3fe6080604052600436106100e15760003560e01c8063ad615dec1161007f578063cc4cf86811610059578063cc4cf8681461046a578063d06ca61f146104b5578063f6f1e3061461056a578063fe1bfba6146105c65761011a565b8063ad615dec1461039b578063b6f9de95146103d1578063c45a0155146104555761011a565b806361d027b3116100bb57806361d027b314610296578063791ac947146102c757806385f8c25914610350578063ad5c4648146103865761011a565b8063054d50d41461011f5780631f00ca7414610167578063590205301461026c5761011a565b3661011a57336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461011857fe5b005b600080fd5b34801561012b57600080fd5b506101556004803603606081101561014257600080fd5b5080359060208101359060400135610629565b60408051918252519081900360200190f35b34801561017357600080fd5b5061021c6004803603604081101561018a57600080fd5b81359190810190604081016020820135600160201b8111156101ab57600080fd5b8201836020820111156101bd57600080fd5b803590602001918460208302840111600160201b831117156101de57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061063e945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610258578181015183820152602001610240565b505050509050019250505060405180910390f35b34801561027857600080fd5b506101556004803603602081101561028f57600080fd5b5035610674565b3480156102a257600080fd5b506102ab61069e565b604080516001600160a01b039092168252519081900360200190f35b610118600480360360a08110156102dd57600080fd5b813591602081013591810190606081016040820135600160201b81111561030357600080fd5b82018360208201111561031557600080fd5b803590602001918460208302840111600160201b8311171561033657600080fd5b91935091506001600160a01b0381351690602001356106ad565b34801561035c57600080fd5b506101556004803603606081101561037357600080fd5b5080359060208101359060400135610d65565b34801561039257600080fd5b506102ab610d72565b3480156103a757600080fd5b50610155600480360360608110156103be57600080fd5b5080359060208101359060400135610d96565b610118600480360360808110156103e757600080fd5b81359190810190604081016020820135600160201b81111561040857600080fd5b82018360208201111561041a57600080fd5b803590602001918460208302840111600160201b8311171561043b57600080fd5b91935091506001600160a01b038135169060200135610da3565b34801561046157600080fd5b506102ab61153d565b34801561047657600080fd5b50610155600480360360a081101561048d57600080fd5b506001600160a01b038135169060208101359060408101359060608101359060800135611561565b3480156104c157600080fd5b5061021c600480360360408110156104d857600080fd5b81359190810190604081016020820135600160201b8111156104f957600080fd5b82018360208201111561050b57600080fd5b803590602001918460208302840111600160201b8311171561052c57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506117ba945050505050565b6105a8600480360360a081101561058057600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001356117e7565b60408051938452602084019290925282820152519081900360600190f35b6105a860048036036101208110156105dd57600080fd5b506001600160a01b03813581169160208101359160408201359160608101359160ff608083013581169260a081013582169260c082013583169260e08301351691610100013516611b3d565b6000610636848484611e75565b949350505050565b606061066b7f00000000000000000000000000000000000000000000000000000000000000008484611f65565b90505b92915050565b60008061067f6120b2565b90508069d3c21bcecceda100000084028161069657fe5b049392505050565b6000546001600160a01b031681565b80428110156106f9576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b600061075e7f00000000000000000000000000000000000000000000000000000000000000008787600081811061072c57fe5b905060200201356001600160a01b03168888600181811061074957fe5b905060200201356001600160a01b0316612182565b90506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168686600019810181811061079a57fe5b905060200201356001600160a01b03166001600160a01b031614610805576040805162461bcd60e51b815260206004820152601e60248201527f45746865725669737461526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b610874816001600160a01b031662afb3256040518163ffffffff1660e01b815260040160206040518083038186803b15801561084057600080fd5b505afa158015610854573d6000803e3d6000fd5b505050506040513d602081101561086a57600080fd5b505160ff16610674565b3410156108b25760405162461bcd60e51b815260040180806020018281038252602681526020018061346a6026913960400191505060405180910390fd5b610927868660008181106108c257fe5b905060200201356001600160a01b0316336109217f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061090457fe5b905060200201356001600160a01b03168b8b600181811061074957fe5b8b612242565b61096586868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061239f915050565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b1580156109cf57600080fd5b505afa1580156109e3573d6000803e3d6000fd5b505050506040513d60208110156109f957600080fd5b5051905087811015610a3c5760405162461bcd60e51b815260040180806020018281038252602c8152602001806134b5602c913960400191505060405180910390fd5b6000546001600160a01b03166108fc610a556001610674565b6040518115909202916000818181858888f19350505050158015610a7d573d6000803e3d6000fd5b506000610ace7f000000000000000000000000000000000000000000000000000000000000000089896000818110610ab157fe5b905060200201356001600160a01b03168a8a600181811061074957fe5b6001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b0657600080fd5b505afa158015610b1a573d6000803e3d6000fd5b505050506040513d6020811015610b3057600080fd5b505160408051637153bcbf60e11b815290516001600160a01b0392831692610b7c929087169163e2a7797e91600480820192602092909190829003018186803b15801561084057600080fd5b604051600081818185875af1925050503d8060008114610bb8576040519150601f19603f3d011682016040523d82523d6000602084013e610bbd565b606091505b505090506000610bf47f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061090457fe5b6001600160a01b0316610c39856001600160a01b031663c7b8b46d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561084057600080fd5b604051600081818185875af1925050503d8060008114610c75576040519150601f19603f3d011682016040523d82523d6000602084013e610c7a565b606091505b50509050818015610c885750805b610cd0576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610d3657600080fd5b505af1158015610d4a573d6000803e3d6000fd5b50505050610d5887846126bc565b5050505050505050505050565b60006106368484846127af565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061063684848461289f565b8042811015610def576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b6000610e227f00000000000000000000000000000000000000000000000000000000000000008787600081811061072c57fe5b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031686866000818110610e5b57fe5b905060200201356001600160a01b03166001600160a01b031614610ec6576040805162461bcd60e51b815260206004820152601e60248201527f45746865725669737461526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b610f02816001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561084057600080fd5b3411610f3f5760405162461bcd60e51b815260040180806020018281038252602681526020018061346a6026913960400191505060405180910390fd5b6000610f7d826001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561084057600080fd5b340390507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610fdc57600080fd5b505af1158015610ff0573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6110557f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061090457fe5b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156110a557600080fd5b505af11580156110b9573d6000803e3d6000fd5b505050506040513d60208110156110cf57600080fd5b50516110d757fe5b6000878760001981018181106110e957fe5b905060200201356001600160a01b03166001600160a01b03166370a08231876040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561114e57600080fd5b505afa158015611162573d6000803e3d6000fd5b505050506040513d602081101561117857600080fd5b50516040805160208a810282810182019093528a82529293506111ba9290918b918b9182918501908490808284376000920191909152508a925061239f915050565b8861126c828a8a60001981018181106111cf57fe5b905060200201356001600160a01b03166001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561123457600080fd5b505afa158015611248573d6000803e3d6000fd5b505050506040513d602081101561125e57600080fd5b50519063ffffffff61294b16565b10156112a95760405162461bcd60e51b815260040180806020018281038252602c8152602001806134b5602c913960400191505060405180910390fd5b6000546001600160a01b03166108fc6112c26001610674565b6040518115909202916000818181858888f193505050501580156112ea573d6000803e3d6000fd5b50600061131e7f00000000000000000000000000000000000000000000000000000000000000008a8a600081811061090457fe5b6001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561135657600080fd5b505afa15801561136a573d6000803e3d6000fd5b505050506040513d602081101561138057600080fd5b50516040805163cc2b765760e01b815290516001600160a01b03928316926113cc929088169163cc2b765791600480820192602092909190829003018186803b15801561084057600080fd5b604051600081818185875af1925050503d8060008114611408576040519150601f19603f3d011682016040523d82523d6000602084013e61140d565b606091505b5050905060006114617f00000000000000000000000000000000000000000000000000000000000000008b8b600081811061144457fe5b905060200201356001600160a01b03168c8c600181811061074957fe5b6001600160a01b03166114a6866001600160a01b0316636fd3acb46040518163ffffffff1660e01b815260040160206040518083038186803b15801561084057600080fd5b604051600081818185875af1925050503d80600081146114e2576040519150601f19603f3d011682016040523d82523d6000602084013e6114e7565b606091505b505090508180156114f55750805b610d58576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000081565b600081428110156115af576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b6115de877f0000000000000000000000000000000000000000000000000000000000000000888888308961299b565b925061162d90507f0000000000000000000000000000000000000000000000000000000000000000887f0000000000000000000000000000000000000000000000000000000000000000612182565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b15801561168457600080fd5b505af1158015611698573d6000803e3d6000fd5b505050506117288733896001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156116f757600080fd5b505afa15801561170b573d6000803e3d6000fd5b505050506040513d602081101561172157600080fd5b5051612be7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561178e57600080fd5b505af11580156117a2573d6000803e3d6000fd5b505050506117b033836126bc565b5095945050505050565b606061066b7f00000000000000000000000000000000000000000000000000000000000000008484612d3b565b60008060008342811015611838576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b611866897f00000000000000000000000000000000000000000000000000000000000000008a348b8b612e72565b909450925060006118b87f00000000000000000000000000000000000000000000000000000000000000008b7f0000000000000000000000000000000000000000000000000000000000000000612182565b90506118c68a338388612242565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561192157600080fd5b505af1158015611935573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156119ba57600080fd5b505af11580156119ce573d6000803e3d6000fd5b505050506040513d60208110156119e457600080fd5b50516119ec57fe5b604080516335313c2160e11b815233600482015290516001600160a01b03831691636a6278429160248083019260209291908290030181600087803b158015611a3457600080fd5b505af1158015611a48573d6000803e3d6000fd5b505050506040513d6020811015611a5e57600080fd5b50519250611aad7f00000000000000000000000000000000000000000000000000000000000000008b7f0000000000000000000000000000000000000000000000000000000000000000612182565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015611b0457600080fd5b505af1158015611b18573d6000803e3d6000fd5b5050505083341115611b3057611b30338534036126bc565b5050955095509592505050565b6000806000611b708c7f00000000000000000000000000000000000000000000000000000000000000008d348e8e612e72565b90935091506000611bc27f00000000000000000000000000000000000000000000000000000000000000008e7f0000000000000000000000000000000000000000000000000000000000000000612182565b9050611bd08d338387612242565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b158015611c2b57600080fd5b505af1158015611c3f573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611cc457600080fd5b505af1158015611cd8573d6000803e3d6000fd5b505050506040513d6020811015611cee57600080fd5b5051611cf657fe5b6040805163dc2dc3f360e01b815233600482015260ff808c166024830152808b166044830152808a166064830152881660848201526001600160a01b0387811660a483015291519183169163dc2dc3f39160c4808201926020929091908290030181600087803b158015611d6957600080fd5b505af1158015611d7d573d6000803e3d6000fd5b505050506040513d6020811015611d9357600080fd5b50519150611de27f00000000000000000000000000000000000000000000000000000000000000008e7f0000000000000000000000000000000000000000000000000000000000000000612182565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015611e3957600080fd5b505af1158015611e4d573d6000803e3d6000fd5b5050505082341115611e6557611e65338434036126bc565b5099509950999650505050505050565b6000808411611eb55760405162461bcd60e51b815260040180806020018281038252602b81526020018061350e602b913960400191505060405180910390fd5b600083118015611ec55750600082115b611f005760405162461bcd60e51b81526004018080602001828103825260288152602001806134426028913960400191505060405180910390fd5b6000611f14856103e863ffffffff6130e616565b90506000611f28828563ffffffff6130e616565b90506000611f4e83611f42886103e863ffffffff6130e616565b9063ffffffff61314916565b9050808281611f5957fe5b04979650505050505050565b6060600282511015611fbe576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015611fd657600080fd5b50604051908082528060200260200182016040528015612000578160200160208202803683370190505b509050828160018351038151811061201457fe5b60209081029190910101528151600019015b80156120aa576000806120638786600186038151811061204257fe5b602002602001015187868151811061205657fe5b6020026020010151613198565b9150915061208584848151811061207657fe5b602002602001015183836127af565b84600185038151811061209457fe5b6020908102919091010152505060001901612026565b509392505050565b600080600160009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561210357600080fd5b505afa158015612117573d6000803e3d6000fd5b505050506040513d60a081101561212d57600080fd5b5060200151905060008113612179576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b604482015290519081900360640190fd5b60649005919050565b6000806000612191858561325f565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fe260b72768e8ec6814aa811c576f346d208ba00840f835949d65c6424ac80a8d609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106122c75780518252601f1990920191602091820191016122a8565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612329576040519150601f19603f3d011682016040523d82523d6000602084013e61232e565b606091505b509150915081801561235c57508051158061235c575080806020019051602081101561235957600080fd5b50515b6123975760405162461bcd60e51b81526004018080602001828103825260318152602001806133916031913960400191505060405180910390fd5b505050505050565b60005b60018351038110156126b7576000808483815181106123bd57fe5b60200260200101518584600101815181106123d457fe5b60200260200101519150915060006123ec838361325f565b509050600061241c7f00000000000000000000000000000000000000000000000000000000000000008585612182565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561245d57600080fd5b505afa158015612471573d6000803e3d6000fd5b505050506040513d606081101561248757600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a8116908916146124bd5782846124c0565b83835b9150915061251e828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561123457600080fd5b955061252b868383611e75565b945050505050600080856001600160a01b0316886001600160a01b03161461255557826000612559565b6000835b91509150600060028c51038a10612570578a6125b1565b6125b17f0000000000000000000000000000000000000000000000000000000000000000898e8d600201815181106125a457fe5b6020026020010151612182565b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b8381101561263b578181015183820152602001612623565b50505050905090810190601f1680156126685780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561268a57600080fd5b505af115801561269e573d6000803e3d6000fd5b50506001909b019a506123a29950505050505050505050565b505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106127085780518252601f1990920191602091820191016126e9565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461276a576040519150601f19603f3d011682016040523d82523d6000602084013e61276f565b606091505b50509050806126b75760405162461bcd60e51b81526004018080602001828103825260348152602001806133c26034913960400191505060405180910390fd5b60008084116127ef5760405162461bcd60e51b815260040180806020018281038252602c81526020018061333e602c913960400191505060405180910390fd5b6000831180156127ff5750600082115b61283a5760405162461bcd60e51b81526004018080602001828103825260288152602001806134426028913960400191505060405180910390fd5b600061285e6103e8612852868863ffffffff6130e616565b9063ffffffff6130e616565b905060006128786103e8612852868963ffffffff61294b16565b9050612895600182848161288857fe5b049063ffffffff61314916565b9695505050505050565b60008084116128df5760405162461bcd60e51b81526004018080602001828103825260258152602001806134906025913960400191505060405180910390fd5b6000831180156128ef5750600082115b61292a5760405162461bcd60e51b81526004018080602001828103825260288152602001806134426028913960400191505060405180910390fd5b8261293b858463ffffffff6130e616565b8161294257fe5b04949350505050565b8082038281111561066e576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b60008082428110156129ea576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b6000612a177f00000000000000000000000000000000000000000000000000000000000000008c8c612182565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b158015612a7257600080fd5b505af1158015612a86573d6000803e3d6000fd5b505050506040513d6020811015612a9c57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b158015612ae957600080fd5b505af1158015612afd573d6000803e3d6000fd5b505050506040513d6040811015612b1357600080fd5b50805160209091015190925090506000612b2d8e8e61325f565b509050806001600160a01b03168e6001600160a01b031614612b50578183612b53565b82825b90975095508a871015612b975760405162461bcd60e51b815260040180806020018281038252602781526020018061341b6027913960400191505060405180910390fd5b89861015612bd65760405162461bcd60e51b815260040180806020018281038252602781526020018061336a6027913960400191505060405180910390fd5b505050505097509795505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310612c645780518252601f199092019160209182019101612c45565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612cc6576040519150601f19603f3d011682016040523d82523d6000602084013e612ccb565b606091505b5091509150818015612cf9575080511580612cf95750808060200190516020811015612cf657600080fd5b50515b612d345760405162461bcd60e51b815260040180806020018281038252602d8152602001806134e1602d913960400191505060405180910390fd5b5050505050565b6060600282511015612d94576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015612dac57600080fd5b50604051908082528060200260200182016040528015612dd6578160200160208202803683370190505b5090508281600081518110612de757fe5b60200260200101818152505060005b60018351038110156120aa57600080612e2c87868581518110612e1557fe5b602002602001015187866001018151811061205657fe5b91509150612e4e848481518110612e3f57fe5b60200260200101518383611e75565b848460010181518110612e5d57fe5b60209081029190910101525050600101612df6565b6040805163e6a4390560e01b81526001600160a01b03888116600483015287811660248301529151600092839283927f00000000000000000000000000000000000000000000000000000000000000009092169163e6a4390591604480820192602092909190829003018186803b158015612eec57600080fd5b505afa158015612f00573d6000803e3d6000fd5b505050506040513d6020811015612f1657600080fd5b50516001600160a01b03161415612fc957604080516364e329cb60e11b81526001600160a01b038a81166004830152898116602483015291517f00000000000000000000000000000000000000000000000000000000000000009092169163c9c65396916044808201926020929091908290030181600087803b158015612f9c57600080fd5b505af1158015612fb0573d6000803e3d6000fd5b505050506040513d6020811015612fc657600080fd5b50505b600080612ff77f00000000000000000000000000000000000000000000000000000000000000008b8b613198565b91509150816000148015613009575080155b15613019578793508692506130d9565b600061302689848461289f565b9050878111613079578581101561306e5760405162461bcd60e51b815260040180806020018281038252602781526020018061336a6027913960400191505060405180910390fd5b8894509250826130d7565b600061308689848661289f565b90508981111561309257fe5b878110156130d15760405162461bcd60e51b815260040180806020018281038252602781526020018061341b6027913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b6000811580613101575050808202828282816130fe57fe5b04145b61066e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b8082018281101561066e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b60008060006131a7858561325f565b5090506000806131b8888888612182565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156131f057600080fd5b505afa158015613204573d6000803e3d6000fd5b505050506040513d606081101561321a57600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b038781169084161461324d578082613250565b81815b90999098509650505050505050565b600080826001600160a01b0316846001600160a01b031614156132b35760405162461bcd60e51b81526004018080602001828103825260258152602001806133f66025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b0316106132d35782846132d6565b83835b90925090506001600160a01b038216613336576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b925092905056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e5445746865725669737461526f757465723a20494e53554646494349454e545f425f414d4f554e545472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c65645472616e7366657248656c7065723a3a736166655472616e736665724554483a20455448207472616e73666572206661696c6564556e697377617056324c6962726172793a204944454e544943414c5f41444452455353455345746865725669737461526f757465723a20494e53554646494349454e545f415f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c495155494449545945746865725669737461526f757465723a20494e53554646494349454e545f4554485f464545556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e5445746865725669737461526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a264697066735822122080d095aa9146179cc733d7a7280232096973caaa72b9223de02c047bd6f1c26664736f6c634300060600330000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b4000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Deployed Bytecode
0x6080604052600436106100e15760003560e01c8063ad615dec1161007f578063cc4cf86811610059578063cc4cf8681461046a578063d06ca61f146104b5578063f6f1e3061461056a578063fe1bfba6146105c65761011a565b8063ad615dec1461039b578063b6f9de95146103d1578063c45a0155146104555761011a565b806361d027b3116100bb57806361d027b314610296578063791ac947146102c757806385f8c25914610350578063ad5c4648146103865761011a565b8063054d50d41461011f5780631f00ca7414610167578063590205301461026c5761011a565b3661011a57336001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2161461011857fe5b005b600080fd5b34801561012b57600080fd5b506101556004803603606081101561014257600080fd5b5080359060208101359060400135610629565b60408051918252519081900360200190f35b34801561017357600080fd5b5061021c6004803603604081101561018a57600080fd5b81359190810190604081016020820135600160201b8111156101ab57600080fd5b8201836020820111156101bd57600080fd5b803590602001918460208302840111600160201b831117156101de57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061063e945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610258578181015183820152602001610240565b505050509050019250505060405180910390f35b34801561027857600080fd5b506101556004803603602081101561028f57600080fd5b5035610674565b3480156102a257600080fd5b506102ab61069e565b604080516001600160a01b039092168252519081900360200190f35b610118600480360360a08110156102dd57600080fd5b813591602081013591810190606081016040820135600160201b81111561030357600080fd5b82018360208201111561031557600080fd5b803590602001918460208302840111600160201b8311171561033657600080fd5b91935091506001600160a01b0381351690602001356106ad565b34801561035c57600080fd5b506101556004803603606081101561037357600080fd5b5080359060208101359060400135610d65565b34801561039257600080fd5b506102ab610d72565b3480156103a757600080fd5b50610155600480360360608110156103be57600080fd5b5080359060208101359060400135610d96565b610118600480360360808110156103e757600080fd5b81359190810190604081016020820135600160201b81111561040857600080fd5b82018360208201111561041a57600080fd5b803590602001918460208302840111600160201b8311171561043b57600080fd5b91935091506001600160a01b038135169060200135610da3565b34801561046157600080fd5b506102ab61153d565b34801561047657600080fd5b50610155600480360360a081101561048d57600080fd5b506001600160a01b038135169060208101359060408101359060608101359060800135611561565b3480156104c157600080fd5b5061021c600480360360408110156104d857600080fd5b81359190810190604081016020820135600160201b8111156104f957600080fd5b82018360208201111561050b57600080fd5b803590602001918460208302840111600160201b8311171561052c57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506117ba945050505050565b6105a8600480360360a081101561058057600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001356117e7565b60408051938452602084019290925282820152519081900360600190f35b6105a860048036036101208110156105dd57600080fd5b506001600160a01b03813581169160208101359160408201359160608101359160ff608083013581169260a081013582169260c082013583169260e08301351691610100013516611b3d565b6000610636848484611e75565b949350505050565b606061066b7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48484611f65565b90505b92915050565b60008061067f6120b2565b90508069d3c21bcecceda100000084028161069657fe5b049392505050565b6000546001600160a01b031681565b80428110156106f9576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b600061075e7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48787600081811061072c57fe5b905060200201356001600160a01b03168888600181811061074957fe5b905060200201356001600160a01b0316612182565b90506001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168686600019810181811061079a57fe5b905060200201356001600160a01b03166001600160a01b031614610805576040805162461bcd60e51b815260206004820152601e60248201527f45746865725669737461526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b610874816001600160a01b031662afb3256040518163ffffffff1660e01b815260040160206040518083038186803b15801561084057600080fd5b505afa158015610854573d6000803e3d6000fd5b505050506040513d602081101561086a57600080fd5b505160ff16610674565b3410156108b25760405162461bcd60e51b815260040180806020018281038252602681526020018061346a6026913960400191505060405180910390fd5b610927868660008181106108c257fe5b905060200201356001600160a01b0316336109217f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48a8a600081811061090457fe5b905060200201356001600160a01b03168b8b600181811061074957fe5b8b612242565b61096586868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061239f915050565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216916370a0823191602480820192602092909190829003018186803b1580156109cf57600080fd5b505afa1580156109e3573d6000803e3d6000fd5b505050506040513d60208110156109f957600080fd5b5051905087811015610a3c5760405162461bcd60e51b815260040180806020018281038252602c8152602001806134b5602c913960400191505060405180910390fd5b6000546001600160a01b03166108fc610a556001610674565b6040518115909202916000818181858888f19350505050158015610a7d573d6000803e3d6000fd5b506000610ace7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b489896000818110610ab157fe5b905060200201356001600160a01b03168a8a600181811061074957fe5b6001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b0657600080fd5b505afa158015610b1a573d6000803e3d6000fd5b505050506040513d6020811015610b3057600080fd5b505160408051637153bcbf60e11b815290516001600160a01b0392831692610b7c929087169163e2a7797e91600480820192602092909190829003018186803b15801561084057600080fd5b604051600081818185875af1925050503d8060008114610bb8576040519150601f19603f3d011682016040523d82523d6000602084013e610bbd565b606091505b505090506000610bf47f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48a8a600081811061090457fe5b6001600160a01b0316610c39856001600160a01b031663c7b8b46d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561084057600080fd5b604051600081818185875af1925050503d8060008114610c75576040519150601f19603f3d011682016040523d82523d6000602084013e610c7a565b606091505b50509050818015610c885750805b610cd0576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610d3657600080fd5b505af1158015610d4a573d6000803e3d6000fd5b50505050610d5887846126bc565b5050505050505050505050565b60006106368484846127af565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600061063684848461289f565b8042811015610def576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b6000610e227f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48787600081811061072c57fe5b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031686866000818110610e5b57fe5b905060200201356001600160a01b03166001600160a01b031614610ec6576040805162461bcd60e51b815260206004820152601e60248201527f45746865725669737461526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b610f02816001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561084057600080fd5b3411610f3f5760405162461bcd60e51b815260040180806020018281038252602681526020018061346a6026913960400191505060405180910390fd5b6000610f7d826001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561084057600080fd5b340390507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610fdc57600080fd5b505af1158015610ff0573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb6110557f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48a8a600081811061090457fe5b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156110a557600080fd5b505af11580156110b9573d6000803e3d6000fd5b505050506040513d60208110156110cf57600080fd5b50516110d757fe5b6000878760001981018181106110e957fe5b905060200201356001600160a01b03166001600160a01b03166370a08231876040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561114e57600080fd5b505afa158015611162573d6000803e3d6000fd5b505050506040513d602081101561117857600080fd5b50516040805160208a810282810182019093528a82529293506111ba9290918b918b9182918501908490808284376000920191909152508a925061239f915050565b8861126c828a8a60001981018181106111cf57fe5b905060200201356001600160a01b03166001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561123457600080fd5b505afa158015611248573d6000803e3d6000fd5b505050506040513d602081101561125e57600080fd5b50519063ffffffff61294b16565b10156112a95760405162461bcd60e51b815260040180806020018281038252602c8152602001806134b5602c913960400191505060405180910390fd5b6000546001600160a01b03166108fc6112c26001610674565b6040518115909202916000818181858888f193505050501580156112ea573d6000803e3d6000fd5b50600061131e7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48a8a600081811061090457fe5b6001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561135657600080fd5b505afa15801561136a573d6000803e3d6000fd5b505050506040513d602081101561138057600080fd5b50516040805163cc2b765760e01b815290516001600160a01b03928316926113cc929088169163cc2b765791600480820192602092909190829003018186803b15801561084057600080fd5b604051600081818185875af1925050503d8060008114611408576040519150601f19603f3d011682016040523d82523d6000602084013e61140d565b606091505b5050905060006114617f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48b8b600081811061144457fe5b905060200201356001600160a01b03168c8c600181811061074957fe5b6001600160a01b03166114a6866001600160a01b0316636fd3acb46040518163ffffffff1660e01b815260040160206040518083038186803b15801561084057600080fd5b604051600081818185875af1925050503d80600081146114e2576040519150601f19603f3d011682016040523d82523d6000602084013e6114e7565b606091505b505090508180156114f55750805b610d58576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b481565b600081428110156115af576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b6115de877f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2888888308961299b565b925061162d90507f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b4887f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612182565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b15801561168457600080fd5b505af1158015611698573d6000803e3d6000fd5b505050506117288733896001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156116f757600080fd5b505afa15801561170b573d6000803e3d6000fd5b505050506040513d602081101561172157600080fd5b5051612be7565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561178e57600080fd5b505af11580156117a2573d6000803e3d6000fd5b505050506117b033836126bc565b5095945050505050565b606061066b7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48484612d3b565b60008060008342811015611838576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b611866897f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28a348b8b612e72565b909450925060006118b87f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612182565b90506118c68a338388612242565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561192157600080fd5b505af1158015611935573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156119ba57600080fd5b505af11580156119ce573d6000803e3d6000fd5b505050506040513d60208110156119e457600080fd5b50516119ec57fe5b604080516335313c2160e11b815233600482015290516001600160a01b03831691636a6278429160248083019260209291908290030181600087803b158015611a3457600080fd5b505af1158015611a48573d6000803e3d6000fd5b505050506040513d6020811015611a5e57600080fd5b50519250611aad7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612182565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015611b0457600080fd5b505af1158015611b18573d6000803e3d6000fd5b5050505083341115611b3057611b30338534036126bc565b5050955095509592505050565b6000806000611b708c7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28d348e8e612e72565b90935091506000611bc27f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48e7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612182565b9050611bd08d338387612242565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b158015611c2b57600080fd5b505af1158015611c3f573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb82856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611cc457600080fd5b505af1158015611cd8573d6000803e3d6000fd5b505050506040513d6020811015611cee57600080fd5b5051611cf657fe5b6040805163dc2dc3f360e01b815233600482015260ff808c166024830152808b166044830152808a166064830152881660848201526001600160a01b0387811660a483015291519183169163dc2dc3f39160c4808201926020929091908290030181600087803b158015611d6957600080fd5b505af1158015611d7d573d6000803e3d6000fd5b505050506040513d6020811015611d9357600080fd5b50519150611de27f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48e7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612182565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015611e3957600080fd5b505af1158015611e4d573d6000803e3d6000fd5b5050505082341115611e6557611e65338434036126bc565b5099509950999650505050505050565b6000808411611eb55760405162461bcd60e51b815260040180806020018281038252602b81526020018061350e602b913960400191505060405180910390fd5b600083118015611ec55750600082115b611f005760405162461bcd60e51b81526004018080602001828103825260288152602001806134426028913960400191505060405180910390fd5b6000611f14856103e863ffffffff6130e616565b90506000611f28828563ffffffff6130e616565b90506000611f4e83611f42886103e863ffffffff6130e616565b9063ffffffff61314916565b9050808281611f5957fe5b04979650505050505050565b6060600282511015611fbe576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015611fd657600080fd5b50604051908082528060200260200182016040528015612000578160200160208202803683370190505b509050828160018351038151811061201457fe5b60209081029190910101528151600019015b80156120aa576000806120638786600186038151811061204257fe5b602002602001015187868151811061205657fe5b6020026020010151613198565b9150915061208584848151811061207657fe5b602002602001015183836127af565b84600185038151811061209457fe5b6020908102919091010152505060001901612026565b509392505050565b600080600160009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561210357600080fd5b505afa158015612117573d6000803e3d6000fd5b505050506040513d60a081101561212d57600080fd5b5060200151905060008113612179576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b604482015290519081900360640190fd5b60649005919050565b6000806000612191858561325f565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fe260b72768e8ec6814aa811c576f346d208ba00840f835949d65c6424ac80a8d609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106122c75780518252601f1990920191602091820191016122a8565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612329576040519150601f19603f3d011682016040523d82523d6000602084013e61232e565b606091505b509150915081801561235c57508051158061235c575080806020019051602081101561235957600080fd5b50515b6123975760405162461bcd60e51b81526004018080602001828103825260318152602001806133916031913960400191505060405180910390fd5b505050505050565b60005b60018351038110156126b7576000808483815181106123bd57fe5b60200260200101518584600101815181106123d457fe5b60200260200101519150915060006123ec838361325f565b509050600061241c7f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48585612182565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561245d57600080fd5b505afa158015612471573d6000803e3d6000fd5b505050506040513d606081101561248757600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a8116908916146124bd5782846124c0565b83835b9150915061251e828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561123457600080fd5b955061252b868383611e75565b945050505050600080856001600160a01b0316886001600160a01b03161461255557826000612559565b6000835b91509150600060028c51038a10612570578a6125b1565b6125b17f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b4898e8d600201815181106125a457fe5b6020026020010151612182565b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b8381101561263b578181015183820152602001612623565b50505050905090810190601f1680156126685780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561268a57600080fd5b505af115801561269e573d6000803e3d6000fd5b50506001909b019a506123a29950505050505050505050565b505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106127085780518252601f1990920191602091820191016126e9565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461276a576040519150601f19603f3d011682016040523d82523d6000602084013e61276f565b606091505b50509050806126b75760405162461bcd60e51b81526004018080602001828103825260348152602001806133c26034913960400191505060405180910390fd5b60008084116127ef5760405162461bcd60e51b815260040180806020018281038252602c81526020018061333e602c913960400191505060405180910390fd5b6000831180156127ff5750600082115b61283a5760405162461bcd60e51b81526004018080602001828103825260288152602001806134426028913960400191505060405180910390fd5b600061285e6103e8612852868863ffffffff6130e616565b9063ffffffff6130e616565b905060006128786103e8612852868963ffffffff61294b16565b9050612895600182848161288857fe5b049063ffffffff61314916565b9695505050505050565b60008084116128df5760405162461bcd60e51b81526004018080602001828103825260258152602001806134906025913960400191505060405180910390fd5b6000831180156128ef5750600082115b61292a5760405162461bcd60e51b81526004018080602001828103825260288152602001806134426028913960400191505060405180910390fd5b8261293b858463ffffffff6130e616565b8161294257fe5b04949350505050565b8082038281111561066e576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b60008082428110156129ea576040805162461bcd60e51b8152602060048201526013602482015272115d1a195c959a5cdd184e8811561412549151606a1b604482015290519081900360640190fd5b6000612a177f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48c8c612182565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b158015612a7257600080fd5b505af1158015612a86573d6000803e3d6000fd5b505050506040513d6020811015612a9c57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b158015612ae957600080fd5b505af1158015612afd573d6000803e3d6000fd5b505050506040513d6040811015612b1357600080fd5b50805160209091015190925090506000612b2d8e8e61325f565b509050806001600160a01b03168e6001600160a01b031614612b50578183612b53565b82825b90975095508a871015612b975760405162461bcd60e51b815260040180806020018281038252602781526020018061341b6027913960400191505060405180910390fd5b89861015612bd65760405162461bcd60e51b815260040180806020018281038252602781526020018061336a6027913960400191505060405180910390fd5b505050505097509795505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310612c645780518252601f199092019160209182019101612c45565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612cc6576040519150601f19603f3d011682016040523d82523d6000602084013e612ccb565b606091505b5091509150818015612cf9575080511580612cf95750808060200190516020811015612cf657600080fd5b50515b612d345760405162461bcd60e51b815260040180806020018281038252602d8152602001806134e1602d913960400191505060405180910390fd5b5050505050565b6060600282511015612d94576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015612dac57600080fd5b50604051908082528060200260200182016040528015612dd6578160200160208202803683370190505b5090508281600081518110612de757fe5b60200260200101818152505060005b60018351038110156120aa57600080612e2c87868581518110612e1557fe5b602002602001015187866001018151811061205657fe5b91509150612e4e848481518110612e3f57fe5b60200260200101518383611e75565b848460010181518110612e5d57fe5b60209081029190910101525050600101612df6565b6040805163e6a4390560e01b81526001600160a01b03888116600483015287811660248301529151600092839283927f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b49092169163e6a4390591604480820192602092909190829003018186803b158015612eec57600080fd5b505afa158015612f00573d6000803e3d6000fd5b505050506040513d6020811015612f1657600080fd5b50516001600160a01b03161415612fc957604080516364e329cb60e11b81526001600160a01b038a81166004830152898116602483015291517f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b49092169163c9c65396916044808201926020929091908290030181600087803b158015612f9c57600080fd5b505af1158015612fb0573d6000803e3d6000fd5b505050506040513d6020811015612fc657600080fd5b50505b600080612ff77f0000000000000000000000009a27cb5ae0b2cee0bb71f9a85c0d60f3920757b48b8b613198565b91509150816000148015613009575080155b15613019578793508692506130d9565b600061302689848461289f565b9050878111613079578581101561306e5760405162461bcd60e51b815260040180806020018281038252602781526020018061336a6027913960400191505060405180910390fd5b8894509250826130d7565b600061308689848661289f565b90508981111561309257fe5b878110156130d15760405162461bcd60e51b815260040180806020018281038252602781526020018061341b6027913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b6000811580613101575050808202828282816130fe57fe5b04145b61066e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b8082018281101561066e576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b60008060006131a7858561325f565b5090506000806131b8888888612182565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156131f057600080fd5b505afa158015613204573d6000803e3d6000fd5b505050506040513d606081101561321a57600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b038781169084161461324d578082613250565b81815b90999098509650505050505050565b600080826001600160a01b0316846001600160a01b031614156132b35760405162461bcd60e51b81526004018080602001828103825260258152602001806133f66025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b0316106132d35782846132d6565b83835b90925090506001600160a01b038216613336576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b925092905056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e5445746865725669737461526f757465723a20494e53554646494349454e545f425f414d4f554e545472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c65645472616e7366657248656c7065723a3a736166655472616e736665724554483a20455448207472616e73666572206661696c6564556e697377617056324c6962726172793a204944454e544943414c5f41444452455353455345746865725669737461526f757465723a20494e53554646494349454e545f415f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c495155494449545945746865725669737461526f757465723a20494e53554646494349454e545f4554485f464545556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e5445746865725669737461526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a264697066735822122080d095aa9146179cc733d7a7280232096973caaa72b9223de02c047bd6f1c26664736f6c63430006060033
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
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.