Contract 0x12efc306d0adb92085025617f50b7f76d87385bf

 
Txn Hash
Block
From
To
Value [Txn Fee]
0xd004d6967ced346357bd03d5fc6c6e539c5d2c39e184cc33bb1681d951fd1b6453346892021-03-02 16:42:3723 mins ago0xde325743c758d07fa97a9c5993545d061733f618 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00071544
0x8f3e50626a0445db64e3e6f3eb529b827bad5cc6acff76ccd9b196a0617efeb253346512021-03-02 16:40:4325 mins ago0xc9739dd73d5f078a5a6431b0c30daf6e1ed0641c IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00092975
0x68d883a2b631253c2f041f66a835eec4ad03fce4a7e7ae626e21269351d765d053345352021-03-02 16:34:5531 mins ago0xad5ded9e8700d532d07b8a9de6060703b7e1c077 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00091858
0x85364888c8c6e4a0d8ccb1d2b034945801e26c99ecce1a34818b78b9b10d567353342342021-03-02 16:19:3946 mins ago0x1680e78d4628e0305df475fd830a981eeef38087 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00102848
0xa2a299b461bd44124b1dbba9ef4cebeeb9fe11a96543cf14c38706e2198a86d753339882021-03-02 16:07:1358 mins ago0x3bf331d61f370198974e4b67d9e519b8d4e44b3e IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00092975
0x51202974e7587661ba7de8380d8ec24a64263e3b0ab907c91399b1affa8f8e4e53339622021-03-02 16:05:551 hr ago0xb2812370f17465ae096ced55679428786734a678 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00086544
0x7637d850e5e5175e6676d8b8a86de23b73be95c8b3e5efea94b98605c143694b53339552021-03-02 16:05:341 hr ago0x581417f2ae6793c605f0d31a22d049c69ce4626d IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.0004852
0x286f3150b0c814f86b9430b7c682b30c6a95095be8ce1754be3318b530875f8753339212021-03-02 16:03:521 hr 2 mins ago0x581417f2ae6793c605f0d31a22d049c69ce4626d IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00092975
0x6a177f6f5791bba823797126a53902752a4d8a2faa7328ef4d5092fbefea4a4053336812021-03-02 15:51:521 hr 14 mins ago0x022f7bb75611b823d3f3940992372118a9ae8615 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00048786
0x8b463f62447dc6ac0119b3d9b047cb0037e0414e52758f11797363041bfcb91553336632021-03-02 15:50:581 hr 15 mins ago0x022f7bb75611b823d3f3940992372118a9ae8615 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00106858
0x0072929b0064a8512c109835b1133ac7b03667780283352ce3aa83a6606e111653334592021-03-02 15:40:461 hr 25 mins ago0x2c5713746efb794a435bd1b790d911051ab8d04e IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00092975
0x8ae58ff876e0d1930da3c257557801b5a01be82ab255fcb7d9bbad1c2a239d0753333632021-03-02 15:35:581 hr 30 mins ago0xa98dd9bb6363078f9316ed534abd569e300fdaa8 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00092975
0x12d0ace3767e658081cd7a8f2656d28449d3e401fee26a528cdb45159d01648353333422021-03-02 15:34:551 hr 31 mins ago0xbdaad2919e0fc1cb8e63e42f634f768cc8da5374 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00092975
0x37633049e5e6e63d6202550e2aaab566e816f116ec72cecc2d2ba090a111cf7753332162021-03-02 15:28:371 hr 37 mins ago0x3849df387855f07079eb5fbc88b36343400f4b0c IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00048786
0x755618743da3288d4dc36bc4dd42a31ca532b0f445384edc1c15d1980fef33be53331922021-03-02 15:27:251 hr 38 mins ago0xbeb0c8b94d70868334dc743027e83b74032abdfc IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00101544
0xa8718958c11c0f1ef993e2dc25471a0dfe37b60314561c7abb6017b3da78440853330912021-03-02 15:22:221 hr 43 mins ago0x6870e78e3a5ac842363ad0998d066c0f2a59a6c2 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00048786
0xaec2f5cfde17e25773413b9238121f817ea026d9f43cda4dd48e3d8c60c4746253330642021-03-02 15:21:011 hr 45 mins ago0x3849df387855f07079eb5fbc88b36343400f4b0c IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00092975
0x4a9f67fb6b7dc4a6f098b283572aa3d9b83a8fbddbc4d610dab1b038f3529e0653328522021-03-02 15:10:251 hr 55 mins ago0xc1d3cb8dc1896c51a8a95f0b6ead5dd5b794d93b IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00101798
0x86dd6b84534650bb553f4f231fcce193f3b1d7fd5cc3647008b497dad208d6f353327892021-03-02 15:07:161 hr 58 mins ago0xa3134f4a21c29bc1353b3c26761ef9b8fffe9033 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00086798
0xb5c085978827226df363e4c429aaab0d58439e454eb9cb5f0d8138f7ab4417bc53327242021-03-02 15:04:012 hrs 2 mins ago0xcfc5e5659174b613c874c5c5550045a2231dcd68 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00048774
0x2df2d25c8819ab987c2354e6f70f84eae0cd96c4bd5c5a33259f7f13a495ae4a53327032021-03-02 15:02:582 hrs 3 mins ago0x60c7a104286480ecbb2f46ab74e39ea6fbc3cdb3 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00048786
0xb0deb8ced3b3e3f436b2d09635f4ebe59e7675f11d12392462690e5b33c5dfd253326992021-03-02 15:02:462 hrs 3 mins ago0xcfc5e5659174b613c874c5c5550045a2231dcd68 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00077975
0xf0965ac60f17552949e304630a54069bca580125167ab4cf220d37113b3f2cca53326842021-03-02 15:02:012 hrs 4 mins ago0x70e26d1d0c4ecad25f66835ecec0126e104c34cf IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00079836
0x11bcd20238f0d6c009f4053cf3f1dcaee2b760ed11a7c29bc4c59367066411fe53326712021-03-02 15:01:222 hrs 4 mins ago0x6cc62150900f721c45a3dad23e975a838c0b1633 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00048786
0xa73b3b53a59979246fc385cad936701112e77429da4f60dc956ffb5e2aede10e53325262021-03-02 14:54:072 hrs 12 mins ago0x70e26d1d0c4ecad25f66835ecec0126e104c34cf IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00092975
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd004d6967ced346357bd03d5fc6c6e539c5d2c39e184cc33bb1681d951fd1b6453346892021-03-02 16:42:3723 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0xd004d6967ced346357bd03d5fc6c6e539c5d2c39e184cc33bb1681d951fd1b6453346892021-03-02 16:42:3723 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0xd004d6967ced346357bd03d5fc6c6e539c5d2c39e184cc33bb1681d951fd1b6453346892021-03-02 16:42:3723 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0xd004d6967ced346357bd03d5fc6c6e539c5d2c39e184cc33bb1681d951fd1b6453346892021-03-02 16:42:3723 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x8f3e50626a0445db64e3e6f3eb529b827bad5cc6acff76ccd9b196a0617efeb253346512021-03-02 16:40:4325 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x8f3e50626a0445db64e3e6f3eb529b827bad5cc6acff76ccd9b196a0617efeb253346512021-03-02 16:40:4325 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x8f3e50626a0445db64e3e6f3eb529b827bad5cc6acff76ccd9b196a0617efeb253346512021-03-02 16:40:4325 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x68d883a2b631253c2f041f66a835eec4ad03fce4a7e7ae626e21269351d765d053345352021-03-02 16:34:5531 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x68d883a2b631253c2f041f66a835eec4ad03fce4a7e7ae626e21269351d765d053345352021-03-02 16:34:5531 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x85364888c8c6e4a0d8ccb1d2b034945801e26c99ecce1a34818b78b9b10d567353342342021-03-02 16:19:3946 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x85364888c8c6e4a0d8ccb1d2b034945801e26c99ecce1a34818b78b9b10d567353342342021-03-02 16:19:3946 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x85364888c8c6e4a0d8ccb1d2b034945801e26c99ecce1a34818b78b9b10d567353342342021-03-02 16:19:3946 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x85364888c8c6e4a0d8ccb1d2b034945801e26c99ecce1a34818b78b9b10d567353342342021-03-02 16:19:3946 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0xa2a299b461bd44124b1dbba9ef4cebeeb9fe11a96543cf14c38706e2198a86d753339882021-03-02 16:07:1358 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0xa2a299b461bd44124b1dbba9ef4cebeeb9fe11a96543cf14c38706e2198a86d753339882021-03-02 16:07:1358 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0xa2a299b461bd44124b1dbba9ef4cebeeb9fe11a96543cf14c38706e2198a86d753339882021-03-02 16:07:1358 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x51202974e7587661ba7de8380d8ec24a64263e3b0ab907c91399b1affa8f8e4e53339622021-03-02 16:05:551 hr ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x51202974e7587661ba7de8380d8ec24a64263e3b0ab907c91399b1affa8f8e4e53339622021-03-02 16:05:551 hr ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x51202974e7587661ba7de8380d8ec24a64263e3b0ab907c91399b1affa8f8e4e53339622021-03-02 16:05:551 hr ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x51202974e7587661ba7de8380d8ec24a64263e3b0ab907c91399b1affa8f8e4e53339622021-03-02 16:05:551 hr ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x7637d850e5e5175e6676d8b8a86de23b73be95c8b3e5efea94b98605c143694b53339552021-03-02 16:05:341 hr ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x7637d850e5e5175e6676d8b8a86de23b73be95c8b3e5efea94b98605c143694b53339552021-03-02 16:05:341 hr ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x286f3150b0c814f86b9430b7c682b30c6a95095be8ce1754be3318b530875f8753339212021-03-02 16:03:521 hr 2 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x286f3150b0c814f86b9430b7c682b30c6a95095be8ce1754be3318b530875f8753339212021-03-02 16:03:521 hr 2 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x286f3150b0c814f86b9430b7c682b30c6a95095be8ce1754be3318b530875f8753339212021-03-02 16:03:521 hr 2 mins ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SoupRewardPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 5 : SoupRewardPool.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";

// Note that this pool has no minter key of SOUP (rewards).
// Instead, the governance will call SOUP distributeReward method and send reward to this pool at the beginning.
contract SoupRewardPool {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // governance
    address public operator;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. SOUPs to distribute per block.
        uint256 lastRewardBlock; // Last block number that SOUP distribution occurs.
        uint256 accSoupPerShare; // Accumulated SOUPs per share, times 1e18. See below.
        bool isStarted; // if lastRewardBlock has passed
    }

    IERC20 public soup = IERC20(0x94F559aE621F1c810F31a6a620Ad7376776fe09E);

    // Info of each pool.
    PoolInfo[] public poolInfo;

    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;

    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;

    // The block number when SOUP mining starts.
    uint256 public startBlock;

    uint256 public constant BLOCKS_PER_WEEK = 144000; // 86400 * 5 / 3; 5 DAYS!

    uint256[] public epochTotalRewards = [500 ether, 350 ether, 250 ether];

    // Block number when each epoch ends.
    uint[3] public epochEndBlocks;

    // Reward per block for each of 3 epochs (last item is equal to 0 - for sanity).
    uint[4] public epochSoupPerBlock;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event RewardPaid(address indexed user, uint256 amount);

    constructor(
        address _soup,
        uint256 _startBlock
    ) public {
        require(block.number < _startBlock, "late");
        if (_soup != address(0)) soup = IERC20(_soup);
        startBlock = _startBlock; // supposed to be 3,410,000 (Fri Dec 25 2020 15:00:00 UTC)
        epochEndBlocks[0] = startBlock + BLOCKS_PER_WEEK;
        uint256 i;
        for (i = 1; i <= 2; ++i) {
            epochEndBlocks[i] = epochEndBlocks[i - 1] + BLOCKS_PER_WEEK;
        }
        for (i = 0; i <= 2; ++i) {
            epochSoupPerBlock[i] = epochTotalRewards[i].div(BLOCKS_PER_WEEK);
        }
        epochSoupPerBlock[3] = 0;
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "SoupRewardPool: caller is not the operator");
        _;
    }

    function checkPoolDuplicate(IERC20 _lpToken) internal view {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            require(poolInfo[pid].lpToken != _lpToken, "SoupRewardPool: existing pool?");
        }
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _lpToken,
        bool _withUpdate,
        uint256 _lastRewardBlock
    ) public onlyOperator {
        checkPoolDuplicate(_lpToken);
        if (_withUpdate) {
            massUpdatePools();
        }
        if (block.number < startBlock) {
            // chef is sleeping
            if (_lastRewardBlock == 0) {
                _lastRewardBlock = startBlock;
            } else {
                if (_lastRewardBlock < startBlock) {
                    _lastRewardBlock = startBlock;
                }
            }
        } else {
            // chef is cooking
            if (_lastRewardBlock == 0 || _lastRewardBlock < block.number) {
                _lastRewardBlock = block.number;
            }
        }
        bool _isStarted =
        (_lastRewardBlock <= startBlock) ||
        (_lastRewardBlock <= block.number);
        poolInfo.push(PoolInfo({
            lpToken : _lpToken,
            allocPoint : _allocPoint,
            lastRewardBlock : _lastRewardBlock,
            accSoupPerShare : 0,
            isStarted : _isStarted
            }));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

    // Update the given pool's SOUP allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint) public onlyOperator {
        massUpdatePools();
        PoolInfo storage pool = poolInfo[_pid];
        if (pool.isStarted) {
            totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(
                _allocPoint
            );
        }
        pool.allocPoint = _allocPoint;
    }

    // Return accumulate rewards over the given _from to _to block.
    function getGeneratedReward(uint256 _from, uint256 _to) public view returns (uint256) {
        for (uint8 epochId = 3; epochId >= 1; --epochId) {
            if (_to >= epochEndBlocks[epochId - 1]) {
                if (_from >= epochEndBlocks[epochId - 1]) return _to.sub(_from).mul(epochSoupPerBlock[epochId]);
                uint256 _generatedReward = _to.sub(epochEndBlocks[epochId - 1]).mul(epochSoupPerBlock[epochId]);
                if (epochId == 1) return _generatedReward.add(epochEndBlocks[0].sub(_from).mul(epochSoupPerBlock[0]));
                for (epochId = epochId - 1; epochId >= 1; --epochId) {
                    if (_from >= epochEndBlocks[epochId - 1]) return _generatedReward.add(epochEndBlocks[epochId].sub(_from).mul(epochSoupPerBlock[epochId]));
                    _generatedReward = _generatedReward.add(epochEndBlocks[epochId].sub(epochEndBlocks[epochId - 1]).mul(epochSoupPerBlock[epochId]));
                }
                return _generatedReward.add(epochEndBlocks[0].sub(_from).mul(epochSoupPerBlock[0]));
            }
        }
        return _to.sub(_from).mul(epochSoupPerBlock[0]);
    }

    // View function to see pending SOUPs on frontend.
    function pendingRewards(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accSoupPerShare = pool.accSoupPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardBlock, block.number);
            uint256 _soupReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accSoupPerShare = accSoupPerShare.add(_soupReward.mul(1e18).div(lpSupply));
        }
        return user.amount.mul(accSoupPerShare).div(1e18).sub(user.rewardDebt);
    }
    // View function to see user balance on frontend.
    function balanceOf(uint256 _pid, address _user) external view returns (uint256) {
        UserInfo storage user = userInfo[_pid][_user];
        return user.amount;
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        if (!pool.isStarted) {
            pool.isStarted = true;
            totalAllocPoint = totalAllocPoint.add(pool.allocPoint);
        }
        if (totalAllocPoint > 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardBlock, block.number);
            uint256 _soupReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accSoupPerShare = pool.accSoupPerShare.add(_soupReward.mul(1e18).div(lpSupply));
        }
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens.
    function deposit(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 _pending = user.amount.mul(pool.accSoupPerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeSoupTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(_sender, address(this), _amount);
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accSoupPerShare).div(1e18);
        emit Deposit(_sender, _pid, _amount);
    }

    // Withdraw LP tokens.
    function withdraw(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 _pending = user.amount.mul(pool.accSoupPerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safeSoupTransfer(_sender, _pending);
            emit RewardPaid(_sender, _pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(_sender, _amount);
        } else {
            // withdraws all
            _amount = user.amount;
            user.amount = 0;
            pool.lpToken.safeTransfer(_sender, _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accSoupPerShare).div(1e18);
        emit Withdraw(_sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 _amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.lpToken.safeTransfer(msg.sender, _amount);
        emit EmergencyWithdraw(msg.sender, _pid, _amount);
    }

    // Safe soup transfer function, just in case if rounding error causes pool to not have enough SOUPs.
    function safeSoupTransfer(address _to, uint256 _amount) internal {
        uint256 _soupBal = soup.balanceOf(address(this));
        if (_soupBal > 0) {
            if (_amount > _soupBal) {
                soup.safeTransfer(_to, _soupBal);
            } else {
                soup.safeTransfer(_to, _amount);
            }
        }
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }
}

File 2 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 3 of 5 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 5 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be 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;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 5 of 5 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 9999
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_soup","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BLOCKS_PER_WEEK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardBlock","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochEndBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochSoupPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochTotalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accSoupPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"soup","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600180546001600160a01b0319167394f559ae621f1c810f31a6a620ad7376776fe09e179055600060045560e0604052681b1ae4d6e2ef50000060809081526812f939c99edab8000060a052680d8d726b7177a8000060c05262000068906006906003620002d0565b503480156200007657600080fd5b5060405162001ebf38038062001ebf833981810160405260408110156200009c57600080fd5b508051602090910151438111620000e3576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b038216156200010f57600180546001600160a01b0319166001600160a01b0384161790555b600581905562023280810160075560015b600281116200015a5762023280600760018303600381106200013e57fe5b015401600782600381106200014f57fe5b015560010162000120565b5060005b60028111620001b5576200019c62023280600683815481106200017d57fe5b9060005260206000200154620001d860201b620013411790919060201c565b600a8260048110620001aa57fe5b01556001016200015e565b6000600a600301555050600080546001600160a01b031916331790555062000342565b60006200022283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506200022960201b60201c565b9392505050565b60008183620002b95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200027d57818101518382015260200162000263565b50505050905090810190601f168015620002ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581620002c657fe5b0495945050505050565b82805482825590600052602060002090810192821562000319579160200282015b828111156200031957825182906001600160481b0316905591602001919060010190620002f1565b50620003279291506200032b565b5090565b5b808211156200032757600081556001016200032c565b611b6d80620003526000396000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c8063570ca735116100d85780639a25cefc1161008c578063d18df53c11610066578063d18df53c14610441578063e2bbb1581461047a578063fc47e2091461049d57610177565b80639a25cefc146103e9578063b3ab15fb14610406578063b4852e7a1461043957610177565b8063630b5ba1116100bd578063630b5ba11461034857806393f1a40b1461035057806396805e54146103a257610177565b8063570ca735146102fa5780635d2c155f1461032b57610177565b80633fd500011161012f57806348cd4cb11161011457806348cd4cb1146102b857806351eb05a6146102c05780635312ea8e146102dd57610177565b80633fd5000114610278578063441a3e701461029557610177565b80631ab06ee5116101605780631ab06ee5146101f7578063231f0c6a1461021c5780633656eec21461023f57610177565b80631526fe271461017c57806317caf6f1146101dd575b600080fd5b6101996004803603602081101561019257600080fd5b50356104a5565b6040805173ffffffffffffffffffffffffffffffffffffffff9096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b6101e56104fd565b60408051918252519081900360200190f35b61021a6004803603604081101561020d57600080fd5b5080359060200135610503565b005b6101e56004803603604081101561023257600080fd5b50803590602001356105be565b6101e56004803603604081101561025557600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166107b9565b6101e56004803603602081101561028e57600080fd5b50356107ee565b61021a600480360360408110156102ab57600080fd5b5080359060200135610802565b6101e5610a2f565b61021a600480360360208110156102d657600080fd5b5035610a35565b61021a600480360360208110156102f357600080fd5b5035610bd7565b610302610c80565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101e56004803603602081101561034157600080fd5b5035610c9c565b61021a610ca9565b6103896004803603604081101561036657600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610ccc565b6040805192835260208301919091528051918290030190f35b61021a600480360360808110156103b857600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff60208201351690604081013515159060600135610cf0565b6101e5600480360360208110156103ff57600080fd5b5035610f3d565b61021a6004803603602081101561041c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610f5b565b610302610ff8565b6101e56004803603604081101561045757600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611014565b61021a6004803603604081101561049057600080fd5b5080359060200135611196565b6101e561133a565b600281815481106104b257fe5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff90931694509092909160ff1685565b60045481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105595760405162461bcd60e51b815260040180806020018281038252602a815260200180611ae4602a913960400191505060405180910390fd5b610561610ca9565b60006002838154811061057057fe5b60009182526020909120600590910201600481015490915060ff16156105b7576105b3826105ad836001015460045461138390919063ffffffff16565b906113c5565b6004555b6001015550565b600060035b60018160ff161061079e5760076001820360ff16600381106105e157fe5b015483106107775760076001820360ff16600381106105fc57fe5b0154841061063157610629600a8260ff166004811061061757fe5b01546106238587611383565b9061141f565b9150506107b3565b6000610667600a8360ff166004811061064657fe5b015461062360076001860360ff166003811061065e57fe5b01548790611383565b90508160ff16600114156106a35761069a610693600a60005b015461062388600760005b015490611383565b82906113c5565b925050506107b3565b6001820391505b60018260ff16106107685760076001830360ff16600381106106c857fe5b015485106106fc5761069a610693600a8460ff16600481106106e657fe5b01546106238860078760ff166003811061068b57fe5b61073c610693600a8460ff166004811061071257fe5b015461062360076001870360ff166003811061072a57fe5b015460078760ff166003811061068b57fe5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019190506106aa565b61069a610693600a6000610680565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016105c3565b50600a546107b0906106238486611383565b90505b92915050565b600091825260036020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205490565b600781600381106107fb57fe5b0154905081565b600033905060006002848154811061081657fe5b6000918252602080832087845260038252604080852073ffffffffffffffffffffffffffffffffffffffff8816865290925292208054600590920290920192508411156108aa576040805162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6108b385610a35565b60006108f082600101546108ea670de0b6b3a76400006108e48760030154876000015461141f90919063ffffffff16565b90611341565b90611383565b9050801561094f576109028482611478565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff8616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b841561098b5781546109619086611383565b825582546109869073ffffffffffffffffffffffffffffffffffffffff168587611577565b6109b7565b81546000835583549095506109b79073ffffffffffffffffffffffffffffffffffffffff168587611577565b600383015482546109d591670de0b6b3a7640000916108e49161141f565b6001830155604080518681529051879173ffffffffffffffffffffffffffffffffffffffff8716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60055481565b600060028281548110610a4457fe5b9060005260206000209060050201905080600201544311610a655750610bd4565b8054604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015610ad557600080fd5b505afa158015610ae9573d6000803e3d6000fd5b505050506040513d6020811015610aff57600080fd5b5051905080610b15575043600290910155610bd4565b600482015460ff16610b6457600480830180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558301549054610b60916113c5565b6004555b60045415610bcb576000610b7c8360020154436105be565b90506000610b9d6004546108e486600101548561141f90919063ffffffff16565b9050610bc3610bb8846108e484670de0b6b3a764000061141f565b6003860154906113c5565b600385015550505b50436002909101555b50565b600060028281548110610be657fe5b600091825260208083208584526003825260408085203380875293528420805485825560018201959095556005909302018054909450919291610c439173ffffffffffffffffffffffffffffffffffffffff919091169083611577565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600a81600481106107fb57fe5b60025460005b81811015610cc857610cc081610a35565b600101610caf565b5050565b60036020908152600092835260408084209091529082529020805460019091015482565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d465760405162461bcd60e51b815260040180806020018281038252602a815260200180611ae4602a913960400191505060405180910390fd5b610d4f83611604565b8115610d5d57610d5d610ca9565b600554431015610d895780610d755750600554610d84565b600554811015610d8457506005545b610d9d565b801580610d9557504381105b15610d9d5750435b600060055482111580610db05750438211155b6040805160a08101825273ffffffffffffffffffffffffffffffffffffffff878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180547fffffffffffffffffffffffff000000000000000000000000000000000000000016919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad290920180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001692151592909217909155909150610f3657600454610f3290866113c5565b6004555b5050505050565b60068181548110610f4a57fe5b600091825260209091200154905081565b60005473ffffffffffffffffffffffffffffffffffffffff163314610fb15760405162461bcd60e51b815260040180806020018281038252602a815260200180611ae4602a913960400191505060405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000806002848154811061102457fe5b600091825260208083208784526003808352604080862073ffffffffffffffffffffffffffffffffffffffff808b168852908552818720600590960290930191820154825482517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b1580156110c257600080fd5b505afa1580156110d6573d6000803e3d6000fd5b505050506040513d60208110156110ec57600080fd5b505160028501549091504311801561110357508015155b156111605760006111188560020154436105be565b905060006111396004546108e488600101548561141f90919063ffffffff16565b905061115b611154846108e484670de0b6b3a764000061141f565b85906113c5565b935050505b61118b83600101546108ea670de0b6b3a76400006108e486886000015461141f90919063ffffffff16565b979650505050505050565b60003390506000600284815481106111aa57fe5b6000918252602080832087845260038252604080852073ffffffffffffffffffffffffffffffffffffffff881686529092529220600590910290910191506111f185610a35565b80541561128a57600061122982600101546108ea670de0b6b3a76400006108e48760030154876000015461141f90919063ffffffff16565b905080156112885761123b8482611478565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff8616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b83156112c35781546112b49073ffffffffffffffffffffffffffffffffffffffff168430876116b8565b80546112c090856113c5565b81555b600382015481546112e191670de0b6b3a7640000916108e49161141f565b6001820155604080518581529051869173ffffffffffffffffffffffffffffffffffffffff8616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b6202328081565b60006107b083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611753565b60006107b083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506117f5565b6000828201838110156107b0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008261142e575060006107b3565b8282028284828161143b57fe5b04146107b05760405162461bcd60e51b8152600401808060200182810382526021815260200180611ac36021913960400191505060405180910390fd5b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b1580156114e957600080fd5b505afa1580156114fd573d6000803e3d6000fd5b505050506040513d602081101561151357600080fd5b505190508015611572578082111561154e576001546115499073ffffffffffffffffffffffffffffffffffffffff168483611577565b611572565b6001546115729073ffffffffffffffffffffffffffffffffffffffff168484611577565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261157290849061184f565b60025460005b81811015611572578273ffffffffffffffffffffffffffffffffffffffff166002828154811061163657fe5b600091825260209091206005909102015473ffffffffffffffffffffffffffffffffffffffff1614156116b0576040805162461bcd60e51b815260206004820152601e60248201527f536f7570526577617264506f6f6c3a206578697374696e6720706f6f6c3f0000604482015290519081900360640190fd5b60010161160a565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261174d90859061184f565b50505050565b600081836117df5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117a457818101518382015260200161178c565b50505050905090810190601f1680156117d15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816117eb57fe5b0495945050505050565b600081848411156118475760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156117a457818101518382015260200161178c565b505050900390565b60606118b1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661190d9092919063ffffffff16565b805190915015611572578080602001905160208110156118d057600080fd5b50516115725760405162461bcd60e51b815260040180806020018281038252602a815260200180611b0e602a913960400191505060405180910390fd5b606061191c8484600085611924565b949350505050565b606061192f85611abc565b611980576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106119ea57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016119ad565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611a4c576040519150601f19603f3d011682016040523d82523d6000602084013e611a51565b606091505b50915091508115611a6557915061191c9050565b805115611a755780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156117a457818101518382015260200161178c565b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77536f7570526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122000d1476e287ff0b84f2e9d54df163ebe34e9fdfe5b9f1b7a2abd4ed87a9461ca64736f6c634300060c003300000000000000000000000094f559ae621f1c810f31a6a620ad7376776fe09e00000000000000000000000000000000000000000000000000000000004aa5f6

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

00000000000000000000000094f559ae621f1c810f31a6a620ad7376776fe09e00000000000000000000000000000000000000000000000000000000004aa5f6

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000094f559ae621f1c810f31a6a620ad7376776fe09e
Arg [1] : 00000000000000000000000000000000000000000000000000000000004aa5f6


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.