ETH Price: $3,112.45 (-1.80%)

Contract

0xc39886c268cc2350Cdf3D7347A19ECC6175c1f7d
 

Overview

ETH Balance

0.064761945140953946 ETH

Eth Value

$201.57 (@ $3,112.45/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw187132852023-12-04 13:25:35351 days ago1701696335IN
0xc39886c2...6175c1f7d
0 ETH0.0013652639.82466536
Swap Exact ETH F...186917212023-12-01 13:00:23354 days ago1701435623IN
0xc39886c2...6175c1f7d
0.18 ETH0.0111135151.70301785
Swap Exact ETH F...186917202023-12-01 13:00:11354 days ago1701435611IN
0xc39886c2...6175c1f7d
0.18 ETH0.0102159647.52739151
Swap Exact ETH F...186917182023-12-01 12:59:47354 days ago1701435587IN
0xc39886c2...6175c1f7d
0.19 ETH0.0014488143.62598798
Swap Exact ETH F...186917182023-12-01 12:59:47354 days ago1701435587IN
0xc39886c2...6175c1f7d
0.19 ETH0.0014488143.62598798
Swap Exact ETH F...186917182023-12-01 12:59:47354 days ago1701435587IN
0xc39886c2...6175c1f7d
0.19 ETH0.0089229543.62598798
Swap Exact ETH F...186917182023-12-01 12:59:47354 days ago1701435587IN
0xc39886c2...6175c1f7d
0.19 ETH0.0093773643.62598798
Swap Exact ETH F...186915472023-12-01 12:24:59354 days ago1701433499IN
0xc39886c2...6175c1f7d
0.01 ETH0.0079770442.25175244
Swap Exact ETH F...186884402023-12-01 1:58:59354 days ago1701395939IN
0xc39886c2...6175c1f7d
0.04 ETH0.0067274636.20185011
Swap Exact ETH F...186867632023-11-30 20:21:11354 days ago1701375671IN
0xc39886c2...6175c1f7d
0.05121271 ETH0.0165384676.94566209
Swap Exact ETH F...186866772023-11-30 20:03:59354 days ago1701374639IN
0xc39886c2...6175c1f7d
0.07 ETH0.0121576162.07647051
Swap Exact ETH F...186866472023-11-30 19:57:59354 days ago1701374279IN
0xc39886c2...6175c1f7d
0.04 ETH0.0145577267.72643348
Swap Exact ETH F...186865872023-11-30 19:45:47354 days ago1701373547IN
0xc39886c2...6175c1f7d
0.05 ETH0.0133795862.2488845
Swap Exact ETH F...186865812023-11-30 19:44:35354 days ago1701373475IN
0xc39886c2...6175c1f7d
0.05 ETH0.0019867659.84594125
Withdraw186865282023-11-30 19:33:35354 days ago1701372815IN
0xc39886c2...6175c1f7d
0 ETH0.0022706961.94599972
Swap Exact ETH F...186864802023-11-30 19:23:59354 days ago1701372239IN
0xc39886c2...6175c1f7d
0.2 ETH0.0016876550.81757482
Swap Exact ETH F...186864702023-11-30 19:21:59354 days ago1701372119IN
0xc39886c2...6175c1f7d
0.2 ETH0.0112468252.32566135
Swap Exact ETH F...186863452023-11-30 18:56:47354 days ago1701370607IN
0xc39886c2...6175c1f7d
0.19 ETH0.014357766.79584749
Swap Exact ETH F...186862732023-11-30 18:41:59354 days ago1701369719IN
0xc39886c2...6175c1f7d
0.25 ETH0.0152275874.45049003
Swap Exact ETH F...186862692023-11-30 18:41:11354 days ago1701369671IN
0xc39886c2...6175c1f7d
0.25 ETH0.0024084372.52123025
Swap Exact ETH F...186862662023-11-30 18:40:35354 days ago1701369635IN
0xc39886c2...6175c1f7d
0.25 ETH0.0038138576.61885063
Swap Exact ETH F...186862232023-11-30 18:31:59354 days ago1701369119IN
0xc39886c2...6175c1f7d
0.05 ETH0.0200316997.93871573
Swap Exact ETH F...186862232023-11-30 18:31:59354 days ago1701369119IN
0xc39886c2...6175c1f7d
0.32 ETH0.0210544697.95644573
Swap Exact ETH F...186861992023-11-30 18:27:11354 days ago1701368831IN
0xc39886c2...6175c1f7d
0.2 ETH0.0136647566.80952138
Swap Exact ETH F...186861932023-11-30 18:25:59354 days ago1701368759IN
0xc39886c2...6175c1f7d
0.1 ETH0.0128905260.50896834
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
209536612024-10-13 2:22:1137 days ago1728786131
0xc39886c2...6175c1f7d
0.00024181 ETH
201537892024-06-23 10:27:47149 days ago1719138467
0xc39886c2...6175c1f7d
0.00034973 ETH
194948992024-03-23 4:24:11241 days ago1711167851
0xc39886c2...6175c1f7d
0.00032118 ETH
189457632024-01-06 4:19:35318 days ago1704514775
0xc39886c2...6175c1f7d
0.00059764 ETH
188682822023-12-26 7:08:47329 days ago1703574527
0xc39886c2...6175c1f7d
0.00028089 ETH
188682762023-12-26 7:07:35329 days ago1703574455
0xc39886c2...6175c1f7d
0.00022301 ETH
188525382023-12-24 2:02:59331 days ago1703383379
0xc39886c2...6175c1f7d
0.00030263 ETH
188525382023-12-24 2:02:59331 days ago1703383379
0xc39886c2...6175c1f7d
0.00029727 ETH
187686272023-12-12 7:30:11343 days ago1702366211
0xc39886c2...6175c1f7d
0.00038003 ETH
187445722023-12-08 22:40:47346 days ago1702075247
0xc39886c2...6175c1f7d
0.00054499 ETH
187201262023-12-05 12:25:23350 days ago1701779123
0xc39886c2...6175c1f7d
0.00052098 ETH
187132852023-12-04 13:25:35351 days ago1701696335
0xc39886c2...6175c1f7d
3.97907746 ETH
187086352023-12-03 21:48:23351 days ago1701640103
0xc39886c2...6175c1f7d
0.00086712 ETH
187077382023-12-03 18:47:47351 days ago1701629267
0xc39886c2...6175c1f7d
0.00024388 ETH
187065952023-12-03 14:56:11352 days ago1701615371
0xc39886c2...6175c1f7d
0.00052281 ETH
187045502023-12-03 8:02:47352 days ago1701590567
0xc39886c2...6175c1f7d
0.00099946 ETH
186969072023-12-02 6:23:59353 days ago1701498239
0xc39886c2...6175c1f7d
0.00096102 ETH
186968912023-12-02 6:20:47353 days ago1701498047
0xc39886c2...6175c1f7d
0.00094733 ETH
186968702023-12-02 6:16:23353 days ago1701497783
0xc39886c2...6175c1f7d
0.00100479 ETH
186952432023-12-02 0:48:47353 days ago1701478127
0xc39886c2...6175c1f7d
0.00086498 ETH
186951272023-12-02 0:25:23353 days ago1701476723
0xc39886c2...6175c1f7d
0.00087149 ETH
186951272023-12-02 0:25:23353 days ago1701476723
0xc39886c2...6175c1f7d
0.00051931 ETH
186942462023-12-01 21:28:35353 days ago1701466115
0xc39886c2...6175c1f7d
0.00127533 ETH
186940532023-12-01 20:49:47353 days ago1701463787
0xc39886c2...6175c1f7d
0.00081625 ETH
186938332023-12-01 20:05:35353 days ago1701461135
0xc39886c2...6175c1f7d
0.00079943 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardsEngine

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : RewardsEngine.sol
// SPDX-License-Identifier: Apache 2.0
// Rewards Engine for recur protocol.
// https://recur.gg

pragma solidity >=0.4.23 <0.9.0;

import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/lib/contracts/libraries/TransferHelper.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";

import "./interfaces/IWETH.sol";


library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" // 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, ) = IUniswapV2Pair(
            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(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(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);
        }
    }
}

abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return payable(msg.sender);
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

contract Ownable is Context {
    address private _owner;
    address private _previousOwner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    constructor() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    function owner() public view returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

interface Token {
    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);
    function proveEngine(address account) external;
}

contract RewardsEngine is Ownable {
    using SafeMath for uint;

    address public token;
    mapping(address => address) private  referrals;
    mapping(address => uint256) private  referralAmounts;
    uint private totalRewards;
    Token public iToken;
    uint public minHoldingAmount;
    address private immutable og;

    address public immutable factory;
    address public immutable WETH;

    modifier ensure(uint deadline) {
        require(deadline >= block.timestamp, "UniswapV2Router: EXPIRED");
        _;
    }

    constructor(
        address _token,
        address _factory,
        address _WETH,
        uint _minHoldingAmount
    ) {
        token = _token;
        factory = _factory;
        WETH = _WETH;
        iToken = Token(token);
        minHoldingAmount = _minHoldingAmount;
        og = msg.sender;
    }

    receive() external payable {
    }

    modifier onlyToken() {
        require(token == _msgSender(), "caller is not the Token");
        _;
    }

    function getOG() public view returns (address) {
        return og;
    }

    function calculatePercentage(uint256 value, uint256 total) private pure returns (uint256) {
        require(total > 0, "Total value must be greater than zero");
        require(value <= total, "Value must be less than or equal to the total value");

        // Multiply by 1000000 to preserve up to 0.0001% accuracy
        uint256 multipliedValue = value * 1000000;

        uint256 percentage = multipliedValue / total;

        return percentage;
    }

    function calculateEthPercentage(uint256 percentage) private view returns (uint256) {
        require(percentage >= 0 && percentage <= 1000000, "Invalid percentage value");
        uint256 contractBalance = address(this).balance;

        uint256 ethPercentage = (contractBalance * percentage) / 1000000;

        return ethPercentage;
    }

    function setToken(address newToken) public onlyOwner {
        token = newToken;
        iToken = Token(token);
    }

    function setMinHoldingAmount(uint newAmount) public onlyOwner {
        minHoldingAmount = newAmount;
    }

    function addReferralAmount(address referrer, uint amount) internal {
        referralAmounts[referrer] += amount;
        totalRewards += amount;
    }

    function updateRewards(address party, uint256 amount) external onlyToken {
        if (referrals[party] != address(0)) {
            addReferralAmount(referrals[party], amount);
        } else {
            addReferralAmount(og, amount);
        }
    }

    function withdrawalBalance(address referrer) public view returns (uint256) {
        if(address(this).balance == 0){
            return 0;
        }
        return calculateEthPercentage(calculatePercentage(referralAmounts[referrer], totalRewards));
    }

    function withdraw() public {
        if(tx.origin != og) {
            require(iToken.balanceOf(msg.sender) >= minHoldingAmount, "Must be holding minimum required amount to withdraw rewards");
        }
        // tx.origin instead of msg.sender so users could use a router to withdraw their funds.
        uint256 owedAmount = calculateEthPercentage(calculatePercentage(referralAmounts[tx.origin], totalRewards));
        payable(tx.origin).transfer(owedAmount);
        totalRewards -= referralAmounts[tx.origin];
        referralAmounts[tx.origin] = 0;
    }

    // **** SWAP ****
    // requires the initial amount to have already been sent to the first pair
    function _swap(
        uint[] memory amounts,
        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);
            uint amountOut = amounts[i + 1];
            (uint amount0Out, uint amount1Out) = input == token0
                ? (uint(0), amountOut)
                : (amountOut, uint(0));
            address to = i < path.length - 2
                ? UniswapV2Library.pairFor(factory, output, path[i + 2])
                : _to;
            IUniswapV2Pair(UniswapV2Library.pairFor(factory, input, output))
                .swap(amount0Out, amount1Out, to, new bytes(0));
        }
    }

    function handleReferral(
        address referrer,
        address theOneBeingReferred
    ) internal virtual {
        if (referrals[theOneBeingReferred] == address(0)) {
            if (referrer == address(0)) {
                referrals[theOneBeingReferred] = og;
            } else {
                if (iToken.balanceOf(referrer) >= minHoldingAmount) {
                    referrals[theOneBeingReferred] = referrer;
                } else {
                    referrals[theOneBeingReferred] = og;
                }
            }
        }
    }

    function swapExactETHForTokens(
        uint amountOutMin,
        address to,
        uint deadline,
        address referrer
    )
        external
        payable
        virtual
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        address[] memory path = new address[](2);
        path[0] = WETH;
        path[1] = token;
        amounts = UniswapV2Library.getAmountsOut(factory, msg.value, path);
        require(
            amounts[amounts.length - 1] >= amountOutMin,
            "UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT"
        );
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(
            IWETH(WETH).transfer(
                UniswapV2Library.pairFor(factory, path[0], path[1]),
                amounts[0]
            )
        );
        iToken.proveEngine(to);
        handleReferral(referrer, to);
        _swap(amounts, path, to);
    }

    function swapETHForExactTokens(
        uint amountOut,
        address to,
        uint deadline,
        address referrer
    )
        external
        payable
        virtual
        ensure(deadline)
        returns (uint[] memory amounts)
    {
        address[] memory path = new address[](2);
        path[0] = WETH;
        path[1] = token;
        amounts = UniswapV2Library.getAmountsIn(factory, amountOut, path);
        require(
            amounts[0] <= msg.value,
            "UniswapV2Router: EXCESSIVE_INPUT_AMOUNT"
        );
        IWETH(WETH).deposit{value: amounts[0]}();
        assert(
            IWETH(WETH).transfer(
                UniswapV2Library.pairFor(factory, path[0], path[1]),
                amounts[0]
            )
        );
        iToken.proveEngine(to);
        handleReferral(referrer, to);
        _swap(amounts, path, to);
        // refund dust eth, if any
        if (msg.value > amounts[0])
            TransferHelper.safeTransferETH(msg.sender, msg.value - amounts[0]);
    }
}

File 2 of 5 : IWETH.sol
pragma solidity >=0.5.0;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}

File 3 of 5 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    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 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, address) external;
}

File 4 of 5 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
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');
    }
}

File 5 of 5 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH","type":"address"},{"internalType":"uint256","name":"_minHoldingAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOG","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"iToken","outputs":[{"internalType":"contract Token","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minHoldingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setMinHoldingAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newToken","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"address","name":"referrer","type":"address"}],"name":"swapETHForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"address","name":"referrer","type":"address"}],"name":"swapExactETHForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"party","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"referrer","type":"address"}],"name":"withdrawalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e06040523480156200001157600080fd5b506040516200354f3803806200354f833981810160405260808110156200003757600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291905050506000620000786200027060201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806007819055503373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050505062000278565b600033905090565b60805160601c60a05160601c60c05160601c613251620002fe60003980610da35280610f0f5280610fa452806111db528061157852806116e7528061177c525080610e785280610fe352806111ff528061164d52806117bb52806123ee5280612432525080610862528061145f528061148d5280612090528061228252506132516000f3fe6080604052600436106100f75760003560e01c8063ad5c46481161008a578063d1c4938411610059578063d1c4938414610479578063d1f426cc146104ba578063f2fde38b14610587578063fc0c546a146105d8576100fe565b8063ad5c464814610337578063c45a015514610378578063c5b208ff146103b9578063c81d5bc61461041e576100fe565b8063408cfe24116100c6578063408cfe24146101d1578063715018a6146102125780638da5cb5b14610229578063a679c71f1461026a576100fe565b806309143f2314610103578063144fa6d71461013e5780631ab99e121461018f5780633ccfd60b146101ba576100fe565b366100fe57005b600080fd5b34801561010f57600080fd5b5061013c6004803603602081101561012657600080fd5b8101908080359060200190929190505050610619565b005b34801561014a57600080fd5b5061018d6004803603602081101561016157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106eb565b005b34801561019b57600080fd5b506101a461085a565b6040518082815260200191505060405180910390f35b3480156101c657600080fd5b506101cf610860565b005b3480156101dd57600080fd5b506101e6610b07565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561021e57600080fd5b50610227610b2d565b005b34801561023557600080fd5b5061023e610cb3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102e06004803603608081101561028057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cdc565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610323578082015181840152602081019050610308565b505050509050019250505060405180910390f35b34801561034357600080fd5b5061034c6111d9565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561038457600080fd5b5061038d6111fd565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103c557600080fd5b50610408600480360360208110156103dc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611221565b6040518082815260200191505060405180910390f35b34801561042a57600080fd5b506104776004803603604081101561044157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061128f565b005b34801561048557600080fd5b5061048e611489565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610530600480360360808110156104d057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506114b1565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610573578082015181840152602081019050610558565b505050509050019250505060405180910390f35b34801561059357600080fd5b506105d6600480360360208110156105aa57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611974565b005b3480156105e457600080fd5b506105ed611b7f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610621611ba5565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146106e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060078190555050565b6106f3611ba5565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146109d257600754600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561093f57600080fd5b505afa158015610953573d6000803e3d6000fd5b505050506040513d602081101561096957600080fd5b810190808051906020019092919050505010156109d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b8152602001806131b6603b913960400191505060405180910390fd5b5b6000610a27610a22600460003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600554611bad565b611c83565b90503273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610a6f573d6000803e3d6000fd5b50600460003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546005600082825403925050819055506000600460003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b35611ba5565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bf5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60608242811015610d55576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f556e69737761705632526f757465723a2045585049524544000000000000000081525060200191505060405180910390fd5b6060600267ffffffffffffffff81118015610d6f57600080fd5b50604051908082528060200260200182016040528015610d9e5781602001602082028036833780820191505090505b5090507f000000000000000000000000000000000000000000000000000000000000000081600081518110610dcf57fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600181518110610e3957fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610e9e7f00000000000000000000000000000000000000000000000000000000000000008883611d2c565b92503483600081518110610eae57fe5b60200260200101511115610f0d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061313f6027913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db084600081518110610f5657fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015610f8957600080fd5b505af1158015610f9d573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6110317f00000000000000000000000000000000000000000000000000000000000000008460008151811061100f57fe5b60200260200101518560018151811061102457fe5b6020026020010151611eac565b8560008151811061103e57fe5b60200260200101516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561109957600080fd5b505af11580156110ad573d6000803e3d6000fd5b505050506040513d60208110156110c357600080fd5b81019080805190602001909291905050506110da57fe5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663caca5315876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561116557600080fd5b505af1158015611179573d6000803e3d6000fd5b505050506111878487611fc5565b611192838288612325565b8260008151811061119f57fe5b60200260200101513411156111cf576111ce33846000815181106111bf57fe5b602002602001015134036125ba565b5b5050949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080471415611234576000905061128a565b611287611282600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600554611bad565b611c83565b90505b919050565b611297611ba5565b73ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611359576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f63616c6c6572206973206e6f742074686520546f6b656e00000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461145a57611455600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612719565b611485565b6114847f000000000000000000000000000000000000000000000000000000000000000082612719565b5b5050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b6060824281101561152a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f556e69737761705632526f757465723a2045585049524544000000000000000081525060200191505060405180910390fd5b6060600267ffffffffffffffff8111801561154457600080fd5b506040519080825280602002602001820160405280156115735781602001602082028036833780820191505090505b5090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106115a457fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160018151811061160e57fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506116737f0000000000000000000000000000000000000000000000000000000000000000348361277a565b9250868360018551038151811061168657fe5b602002602001015110156116e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061318b602b913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db08460008151811061172e57fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561176157600080fd5b505af1158015611775573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6118097f0000000000000000000000000000000000000000000000000000000000000000846000815181106117e757fe5b6020026020010151856001815181106117fc57fe5b6020026020010151611eac565b8560008151811061181657fe5b60200260200101516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561187157600080fd5b505af1158015611885573d6000803e3d6000fd5b505050506040513d602081101561189b57600080fd5b81019080805190602001909291905050506118b257fe5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663caca5315876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561193d57600080fd5b505af1158015611951573d6000803e3d6000fd5b5050505061195f8487611fc5565b61196a838288612325565b5050949350505050565b61197c611ba5565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a3c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ac2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806130186026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b6000808211611c07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806131666025913960400191505060405180910390fd5b81831115611c60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603381526020018061310c6033913960400191505060405180910390fd5b6000620f4240840290506000838281611c7557fe5b049050809250505092915050565b6000808210158015611c985750620f42408211155b611d0a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f496e76616c69642070657263656e746167652076616c7565000000000000000081525060200191505060405180910390fd5b60004790506000620f424084830281611d1f57fe5b0490508092505050919050565b6060600282511015611da6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f556e697377617056324c6962726172793a20494e56414c49445f50415448000081525060200191505060405180910390fd5b815167ffffffffffffffff81118015611dbe57600080fd5b50604051908082528060200260200182016040528015611ded5781602001602082028036833780820191505090505b5090508281600183510381518110611e0157fe5b6020026020010181815250506000600183510390505b6000811115611ea457600080611e5787866001860381518110611e3657fe5b6020026020010151878681518110611e4a57fe5b60200260200101516128f2565b91509150611e79848481518110611e6a57fe5b60200260200101518383612a1b565b846001850381518110611e8857fe5b6020026020010181815250505050808060019003915050611e17565b509392505050565b6000806000611ebb8585612b58565b91509150858282604051602001808373ffffffffffffffffffffffffffffffffffffffff1660601b81526014018273ffffffffffffffffffffffffffffffffffffffff1660601b8152601401925050506040516020818303038152906040528051906020012060405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018373ffffffffffffffffffffffffffffffffffffffff1660601b8152601401828152602001807f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f815250602001925050506040516020818303038152906040528051906020012060001c925050509392505050565b600073ffffffffffffffffffffffffffffffffffffffff16600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561232157600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612131577f0000000000000000000000000000000000000000000000000000000000000000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612320565b600754600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156121bd57600080fd5b505afa1580156121d1573d6000803e3d6000fd5b505050506040513d60208110156121e757600080fd5b8101908080519060200190929190505050106122805781600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061231f565b7f0000000000000000000000000000000000000000000000000000000000000000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b5b5050565b60005b60018351038110156125b45760008084838151811061234357fe5b602002602001015185600185018151811061235a57fe5b60200260200101519150915060006123728383612b58565b509050600087600186018151811061238657fe5b602002602001015190506000808373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16146123ce578260006123d2565b6000835b91509150600060028a510388106123e9578861242b565b61242a7f0000000000000000000000000000000000000000000000000000000000000000878c60028c018151811061241d57fe5b6020026020010151611eac565b5b90506124587f00000000000000000000000000000000000000000000000000000000000000008888611eac565b73ffffffffffffffffffffffffffffffffffffffff1663022c0d9f848484600067ffffffffffffffff8111801561248e57600080fd5b506040519080825280601f01601f1916602001820160405280156124c15781602001600182028036833780820191505090505b506040518563ffffffff1660e01b8152600401808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561253957808201518184015260208101905061251e565b50505050905090810190601f1680156125665780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561258857600080fd5b505af115801561259c573d6000803e3d6000fd5b50505050505050505050508080600101915050612328565b50505050565b60008273ffffffffffffffffffffffffffffffffffffffff1682600067ffffffffffffffff811180156125ec57600080fd5b506040519080825280601f01601f19166020018201604052801561261f5781602001600182028036833780820191505090505b506040518082805190602001908083835b602083106126535780518252602082019150602081019050602083039250612630565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146126b5576040519150601f19603f3d011682016040523d82523d6000602084013e6126ba565b606091505b5050905080612714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603481526020018061306a6034913960400191505060405180910390fd5b505050565b80600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550806005600082825401925050819055505050565b60606002825110156127f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f556e697377617056324c6962726172793a20494e56414c49445f50415448000081525060200191505060405180910390fd5b815167ffffffffffffffff8111801561280c57600080fd5b5060405190808252806020026020018201604052801561283b5781602001602082028036833780820191505090505b509050828160008151811061284c57fe5b60200260200101818152505060005b60018351038110156128ea5760008061289e8786858151811061287a57fe5b602002602001015187600187018151811061289157fe5b60200260200101516128f2565b915091506128c08484815181106128b157fe5b60200260200101518383612ccf565b8460018501815181106128cf57fe5b6020026020010181815250505050808060010191505061285b565b509392505050565b60008060006129018585612b58565b509050600080612912888888611eac565b73ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561295757600080fd5b505afa15801561296b573d6000803e3d6000fd5b505050506040513d606081101561298157600080fd5b81019080805190602001909291908051906020019092919080519060200190929190505050506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691508273ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614612a05578082612a08565b81815b8095508196505050505050935093915050565b6000808411612a75576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c81526020018061303e602c913960400191505060405180910390fd5b600083118015612a855750600082115b612ada576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806130c36028913960400191505060405180910390fd5b6000612b036103e8612af58787612dff90919063ffffffff16565b612dff90919063ffffffff16565b90506000612b2e6103e5612b208887612e8590919063ffffffff16565b612dff90919063ffffffff16565b9050612b4d6001828481612b3e57fe5b04612ecf90919063ffffffff16565b925050509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612be0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061309e6025913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610612c1a578284612c1d565b83835b8092508193505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612cc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f556e697377617056324c6962726172793a205a45524f5f41444452455353000081525060200191505060405180910390fd5b9250929050565b6000808411612d29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806131f1602b913960400191505060405180910390fd5b600083118015612d395750600082115b612d8e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806130c36028913960400191505060405180910390fd5b6000612da56103e586612dff90919063ffffffff16565b90506000612dbc8483612dff90919063ffffffff16565b90506000612de783612dd96103e889612dff90919063ffffffff16565b612ecf90919063ffffffff16565b9050808281612df257fe5b0493505050509392505050565b600080831415612e125760009050612e7f565b6000828402905082848281612e2357fe5b0414612e7a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806130eb6021913960400191505060405180910390fd5b809150505b92915050565b6000612ec783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612f57565b905092915050565b600080828401905083811015612f4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000838311158290613004576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612fc9578082015181840152602081019050612fae565b50505050905090810190601f168015612ff65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838503905080915050939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a3a736166655472616e736665724554483a20455448207472616e73666572206661696c6564556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7756616c7565206d757374206265206c657373207468616e206f7220657175616c20746f2074686520746f74616c2076616c7565556e69737761705632526f757465723a204558434553534956455f494e5055545f414d4f554e54546f74616c2076616c7565206d7573742062652067726561746572207468616e207a65726f556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e544d75737420626520686f6c64696e67206d696e696d756d20726571756972656420616d6f756e7420746f2077697468647261772072657761726473556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a264697066735822122093b1017bcabbb6fe3c47332ef29fad7f722c01613625c9a1d1ed6d53ccd3405f64736f6c6343000704003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000002386f26fc10000

Deployed Bytecode

0x6080604052600436106100f75760003560e01c8063ad5c46481161008a578063d1c4938411610059578063d1c4938414610479578063d1f426cc146104ba578063f2fde38b14610587578063fc0c546a146105d8576100fe565b8063ad5c464814610337578063c45a015514610378578063c5b208ff146103b9578063c81d5bc61461041e576100fe565b8063408cfe24116100c6578063408cfe24146101d1578063715018a6146102125780638da5cb5b14610229578063a679c71f1461026a576100fe565b806309143f2314610103578063144fa6d71461013e5780631ab99e121461018f5780633ccfd60b146101ba576100fe565b366100fe57005b600080fd5b34801561010f57600080fd5b5061013c6004803603602081101561012657600080fd5b8101908080359060200190929190505050610619565b005b34801561014a57600080fd5b5061018d6004803603602081101561016157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106eb565b005b34801561019b57600080fd5b506101a461085a565b6040518082815260200191505060405180910390f35b3480156101c657600080fd5b506101cf610860565b005b3480156101dd57600080fd5b506101e6610b07565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561021e57600080fd5b50610227610b2d565b005b34801561023557600080fd5b5061023e610cb3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102e06004803603608081101561028057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cdc565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610323578082015181840152602081019050610308565b505050509050019250505060405180910390f35b34801561034357600080fd5b5061034c6111d9565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561038457600080fd5b5061038d6111fd565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103c557600080fd5b50610408600480360360208110156103dc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611221565b6040518082815260200191505060405180910390f35b34801561042a57600080fd5b506104776004803603604081101561044157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061128f565b005b34801561048557600080fd5b5061048e611489565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610530600480360360808110156104d057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506114b1565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610573578082015181840152602081019050610558565b505050509050019250505060405180910390f35b34801561059357600080fd5b506105d6600480360360208110156105aa57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611974565b005b3480156105e457600080fd5b506105ed611b7f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610621611ba5565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146106e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060078190555050565b6106f3611ba5565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b7f0000000000000000000000006d757ad17e106b54d093aa83da11bdd3a34c1af373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146109d257600754600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561093f57600080fd5b505afa158015610953573d6000803e3d6000fd5b505050506040513d602081101561096957600080fd5b810190808051906020019092919050505010156109d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b8152602001806131b6603b913960400191505060405180910390fd5b5b6000610a27610a22600460003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600554611bad565b611c83565b90503273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610a6f573d6000803e3d6000fd5b50600460003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546005600082825403925050819055506000600460003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b35611ba5565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bf5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60608242811015610d55576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f556e69737761705632526f757465723a2045585049524544000000000000000081525060200191505060405180910390fd5b6060600267ffffffffffffffff81118015610d6f57600080fd5b50604051908082528060200260200182016040528015610d9e5781602001602082028036833780820191505090505b5090507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600081518110610dcf57fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600181518110610e3957fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610e9e7f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8883611d2c565b92503483600081518110610eae57fe5b60200260200101511115610f0d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061313f6027913960400191505060405180910390fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db084600081518110610f5657fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015610f8957600080fd5b505af1158015610f9d573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6110317f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8460008151811061100f57fe5b60200260200101518560018151811061102457fe5b6020026020010151611eac565b8560008151811061103e57fe5b60200260200101516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561109957600080fd5b505af11580156110ad573d6000803e3d6000fd5b505050506040513d60208110156110c357600080fd5b81019080805190602001909291905050506110da57fe5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663caca5315876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561116557600080fd5b505af1158015611179573d6000803e3d6000fd5b505050506111878487611fc5565b611192838288612325565b8260008151811061119f57fe5b60200260200101513411156111cf576111ce33846000815181106111bf57fe5b602002602001015134036125ba565b5b5050949350505050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b7f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b600080471415611234576000905061128a565b611287611282600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600554611bad565b611c83565b90505b919050565b611297611ba5565b73ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611359576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f63616c6c6572206973206e6f742074686520546f6b656e00000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461145a57611455600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612719565b611485565b6114847f0000000000000000000000006d757ad17e106b54d093aa83da11bdd3a34c1af382612719565b5b5050565b60007f0000000000000000000000006d757ad17e106b54d093aa83da11bdd3a34c1af3905090565b6060824281101561152a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f556e69737761705632526f757465723a2045585049524544000000000000000081525060200191505060405180910390fd5b6060600267ffffffffffffffff8111801561154457600080fd5b506040519080825280602002602001820160405280156115735781602001602082028036833780820191505090505b5090507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816000815181106115a457fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160018151811061160e57fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506116737f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f348361277a565b9250868360018551038151811061168657fe5b602002602001015110156116e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061318b602b913960400191505060405180910390fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db08460008151811061172e57fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561176157600080fd5b505af1158015611775573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6118097f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f846000815181106117e757fe5b6020026020010151856001815181106117fc57fe5b6020026020010151611eac565b8560008151811061181657fe5b60200260200101516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561187157600080fd5b505af1158015611885573d6000803e3d6000fd5b505050506040513d602081101561189b57600080fd5b81019080805190602001909291905050506118b257fe5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663caca5315876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561193d57600080fd5b505af1158015611951573d6000803e3d6000fd5b5050505061195f8487611fc5565b61196a838288612325565b5050949350505050565b61197c611ba5565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a3c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ac2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806130186026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b6000808211611c07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806131666025913960400191505060405180910390fd5b81831115611c60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603381526020018061310c6033913960400191505060405180910390fd5b6000620f4240840290506000838281611c7557fe5b049050809250505092915050565b6000808210158015611c985750620f42408211155b611d0a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f496e76616c69642070657263656e746167652076616c7565000000000000000081525060200191505060405180910390fd5b60004790506000620f424084830281611d1f57fe5b0490508092505050919050565b6060600282511015611da6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f556e697377617056324c6962726172793a20494e56414c49445f50415448000081525060200191505060405180910390fd5b815167ffffffffffffffff81118015611dbe57600080fd5b50604051908082528060200260200182016040528015611ded5781602001602082028036833780820191505090505b5090508281600183510381518110611e0157fe5b6020026020010181815250506000600183510390505b6000811115611ea457600080611e5787866001860381518110611e3657fe5b6020026020010151878681518110611e4a57fe5b60200260200101516128f2565b91509150611e79848481518110611e6a57fe5b60200260200101518383612a1b565b846001850381518110611e8857fe5b6020026020010181815250505050808060019003915050611e17565b509392505050565b6000806000611ebb8585612b58565b91509150858282604051602001808373ffffffffffffffffffffffffffffffffffffffff1660601b81526014018273ffffffffffffffffffffffffffffffffffffffff1660601b8152601401925050506040516020818303038152906040528051906020012060405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018373ffffffffffffffffffffffffffffffffffffffff1660601b8152601401828152602001807f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f815250602001925050506040516020818303038152906040528051906020012060001c925050509392505050565b600073ffffffffffffffffffffffffffffffffffffffff16600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561232157600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612131577f0000000000000000000000006d757ad17e106b54d093aa83da11bdd3a34c1af3600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612320565b600754600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156121bd57600080fd5b505afa1580156121d1573d6000803e3d6000fd5b505050506040513d60208110156121e757600080fd5b8101908080519060200190929190505050106122805781600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061231f565b7f0000000000000000000000006d757ad17e106b54d093aa83da11bdd3a34c1af3600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b5b5050565b60005b60018351038110156125b45760008084838151811061234357fe5b602002602001015185600185018151811061235a57fe5b60200260200101519150915060006123728383612b58565b509050600087600186018151811061238657fe5b602002602001015190506000808373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16146123ce578260006123d2565b6000835b91509150600060028a510388106123e9578861242b565b61242a7f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f878c60028c018151811061241d57fe5b6020026020010151611eac565b5b90506124587f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8888611eac565b73ffffffffffffffffffffffffffffffffffffffff1663022c0d9f848484600067ffffffffffffffff8111801561248e57600080fd5b506040519080825280601f01601f1916602001820160405280156124c15781602001600182028036833780820191505090505b506040518563ffffffff1660e01b8152600401808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561253957808201518184015260208101905061251e565b50505050905090810190601f1680156125665780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561258857600080fd5b505af115801561259c573d6000803e3d6000fd5b50505050505050505050508080600101915050612328565b50505050565b60008273ffffffffffffffffffffffffffffffffffffffff1682600067ffffffffffffffff811180156125ec57600080fd5b506040519080825280601f01601f19166020018201604052801561261f5781602001600182028036833780820191505090505b506040518082805190602001908083835b602083106126535780518252602082019150602081019050602083039250612630565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146126b5576040519150601f19603f3d011682016040523d82523d6000602084013e6126ba565b606091505b5050905080612714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603481526020018061306a6034913960400191505060405180910390fd5b505050565b80600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550806005600082825401925050819055505050565b60606002825110156127f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f556e697377617056324c6962726172793a20494e56414c49445f50415448000081525060200191505060405180910390fd5b815167ffffffffffffffff8111801561280c57600080fd5b5060405190808252806020026020018201604052801561283b5781602001602082028036833780820191505090505b509050828160008151811061284c57fe5b60200260200101818152505060005b60018351038110156128ea5760008061289e8786858151811061287a57fe5b602002602001015187600187018151811061289157fe5b60200260200101516128f2565b915091506128c08484815181106128b157fe5b60200260200101518383612ccf565b8460018501815181106128cf57fe5b6020026020010181815250505050808060010191505061285b565b509392505050565b60008060006129018585612b58565b509050600080612912888888611eac565b73ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561295757600080fd5b505afa15801561296b573d6000803e3d6000fd5b505050506040513d606081101561298157600080fd5b81019080805190602001909291908051906020019092919080519060200190929190505050506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691508273ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614612a05578082612a08565b81815b8095508196505050505050935093915050565b6000808411612a75576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c81526020018061303e602c913960400191505060405180910390fd5b600083118015612a855750600082115b612ada576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806130c36028913960400191505060405180910390fd5b6000612b036103e8612af58787612dff90919063ffffffff16565b612dff90919063ffffffff16565b90506000612b2e6103e5612b208887612e8590919063ffffffff16565b612dff90919063ffffffff16565b9050612b4d6001828481612b3e57fe5b04612ecf90919063ffffffff16565b925050509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612be0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061309e6025913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610612c1a578284612c1d565b83835b8092508193505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612cc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f556e697377617056324c6962726172793a205a45524f5f41444452455353000081525060200191505060405180910390fd5b9250929050565b6000808411612d29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806131f1602b913960400191505060405180910390fd5b600083118015612d395750600082115b612d8e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806130c36028913960400191505060405180910390fd5b6000612da56103e586612dff90919063ffffffff16565b90506000612dbc8483612dff90919063ffffffff16565b90506000612de783612dd96103e889612dff90919063ffffffff16565b612ecf90919063ffffffff16565b9050808281612df257fe5b0493505050509392505050565b600080831415612e125760009050612e7f565b6000828402905082848281612e2357fe5b0414612e7a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806130eb6021913960400191505060405180910390fd5b809150505b92915050565b6000612ec783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612f57565b905092915050565b600080828401905083811015612f4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000838311158290613004576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612fc9578082015181840152602081019050612fae565b50505050905090810190601f168015612ff65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838503905080915050939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a3a736166655472616e736665724554483a20455448207472616e73666572206661696c6564556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7756616c7565206d757374206265206c657373207468616e206f7220657175616c20746f2074686520746f74616c2076616c7565556e69737761705632526f757465723a204558434553534956455f494e5055545f414d4f554e54546f74616c2076616c7565206d7573742062652067726561746572207468616e207a65726f556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e544d75737420626520686f6c64696e67206d696e696d756d20726571756972656420616d6f756e7420746f2077697468647261772072657761726473556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a264697066735822122093b1017bcabbb6fe3c47332ef29fad7f722c01613625c9a1d1ed6d53ccd3405f64736f6c63430007040033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000002386f26fc10000

-----Decoded View---------------
Arg [0] : _token (address): 0x0000000000000000000000000000000000000000
Arg [1] : _factory (address): 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
Arg [2] : _WETH (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [3] : _minHoldingAmount (uint256): 10000000000000000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [3] : 000000000000000000000000000000000000000000000000002386f26fc10000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.