Contract 0x12eFc306d0aDB92085025617F50B7F76D87385BF 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x13fec8dbb604946d0b39f55c03231f8515c395eecc71c10db315a6b8fa6dd0feWithdraw101480012021-08-18 21:59:5768 days 17 hrs ago0x8cb5475e3d1a4deb1816bcd8e9434773e593fdb2 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00031899
0x2252f6d814da849133817bbef26f62eab21bc77b1180763528dbda10baee19faWithdraw100494462021-08-15 11:40:4672 days 4 hrs ago0xb45d6b00ba4a90a31a3efa71c76dbafd4ac1e82d IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.000308355
0x6e21a75c202aee9a24188545aa7064f6cb238e27b234f958184a5f3397060ebfWithdraw100492672021-08-15 11:31:4972 days 4 hrs ago0xb45d6b00ba4a90a31a3efa71c76dbafd4ac1e82d IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.000308355
0x751066351af65c3a1f50446a5799d4d6e53451a21ef6da88dd330e0a94064c81Deposit99647322021-08-12 12:12:5675 days 3 hrs ago0x8cb5475e3d1a4deb1816bcd8e9434773e593fdb2 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00045935
0x5f8e3d22bffd9e0507251b81d79cc13a431f3a240002f7eb0b28ad1393007205Withdraw95022972021-07-26 19:53:5791 days 19 hrs ago0x870af3ffdca66a0ce1c4e8d4517a43195e534887 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00031899
0x28c2502837d181ea21ba37ba7f6eb33e3e16f737557d5553c798a55be192c8eeDeposit95015812021-07-26 19:17:2891 days 20 hrs ago0x870af3ffdca66a0ce1c4e8d4517a43195e534887 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00045935
0xc66186e9dec40ff092e2bf799b90c713db80f5d32fd8fec0b2ee5138871d5d09Withdraw66838722021-04-18 21:15:03190 days 18 hrs ago0x2b93787eac1e219cbfc47b1ab00d611bf22c4c47 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00031899
0x30aa8cf37abc0bd00e9c9aa05bd718782e5feca66f025d42756245c0e6c88006Deposit66806272021-04-18 18:32:48190 days 21 hrs ago0x2b93787eac1e219cbfc47b1ab00d611bf22c4c47 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00045935
0xfc23f93e471d2ff31a826ea82f811cd519530fe74a5b43b417ae0dc3dee62a33Withdraw64347512021-04-10 5:18:16199 days 10 hrs ago0x755aa1da825ee40be0272e272221d93dbd961657 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00043272
0x1739741848be8b85211904f2648887013767927f298b114e1af685e5db2dee9eWithdraw61272962021-03-30 8:56:55210 days 6 hrs ago0x1ae6912e08bb3e105a4f0a60f666376d3c7af380 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00063774
0xa560cf017535ba081519ec56c610f68314317d4d62144149bacad843970d2590Withdraw60182162021-03-26 13:06:59214 days 2 hrs ago0x95a24a95bef127ba0e620b48602d9e10dddba627 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00071544
0x6a9d037e6dee6ed20e244cab13384391fbd98ef041b0c2a9d16b0da24a99a476Withdraw59640272021-03-24 15:33:51216 days 8 mins ago0x8c8ca36ae0285df644d394ad910229c73e2c525f IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00101544
0x7fbdec7f51ffc930c61138029c610a961430f734652bad57daa4af177572143aWithdraw59638602021-03-24 15:25:30216 days 16 mins ago0xad5ded9e8700d532d07b8a9de6060703b7e1c077 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00095661
0x149f1133621139abebe112af5e784230076fc86bb01b85833037756efa1ed02bWithdraw59248032021-03-23 6:45:49217 days 8 hrs ago0xb74001b10d05e586f48a597a28b5e02227b7c628 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00048786
0x42f7341a5e40aad9fe83ed69511aee66e2dca464d8e2486e574ac32ca4d2266eWithdraw58972572021-03-22 7:24:57218 days 8 hrs ago0xdace3ceed19f0bb323af8408b1384018395bd808 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00061671
0xf9b1e967f0cca831afaa747e563bd4270925e34b7ef4bd2ce0447a6bba2c7fb8Withdraw58972512021-03-22 7:24:39218 days 8 hrs ago0xdace3ceed19f0bb323af8408b1384018395bd808 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00061671
0xf12ac50e89b6d112641d6b78dbe13a73283b9a5d5c7b06c57a2796c484280eebWithdraw58967122021-03-22 6:57:41218 days 8 hrs ago0xdace3ceed19f0bb323af8408b1384018395bd808 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00061671
0x43a6c568830854482dc58ac34f211ee44ef3d991ba4cee51906d461c5369b10dWithdraw58965332021-03-22 6:48:44218 days 8 hrs ago0xdace3ceed19f0bb323af8408b1384018395bd808 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00063774
0x02f18f92aedb61bfe4c574fb058b865914498442a5f3e181c9af8f4dd5e9bf26Withdraw58930502021-03-22 3:54:07218 days 11 hrs ago0x0c2e9a64c9382bc2f99b092b3d0c3164375536d3 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00086544
0x93ee5b5b29eb8cc8e0351aa88e5137ecd8d560b2279090bbe9f49078bc27c12cWithdraw58607812021-03-21 0:58:36219 days 14 hrs ago0x14b81ae188bd36e90fc2ca081ea845e5d1b0bc8d IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00063786
0xa5c3af45ee7c129534dbb7b4ca0b0beb82eda3056eaf1ba3f486d28fcf9ec67fWithdraw58592792021-03-20 23:43:30219 days 15 hrs ago0xabebdb7d35f38d519d1c3ed72d3975424f420417 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00063774
0xfd2c2533d7ed00e0a2dc6a1babfd9a41998b8ccb8c0801dd83cc3e9820d6cebaWithdraw58570932021-03-20 21:53:50219 days 17 hrs ago0xd88e3c23e9f71fcf2ee21a7438d34cc3a8ee6d04 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00048786
0xe15fbb179867d2764229141a57ad1a7b3ae45a1f04490337e07edde7fc558739Withdraw58555142021-03-20 20:34:53219 days 19 hrs ago0xbe99c08a503cd6f7fcc3839d98a5212d8fb27e2a IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00063798
0xaa8606782d767a95906f21811bd623562aa0ce1f527239bbc7c81590627ca6b1Withdraw58517812021-03-20 17:28:14219 days 22 hrs ago0xbc0791a33138f0839472b015cfb3d37931e5e172 IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.00063798
0xb2f2bd0a5e5e9633ac518294517c6f4ac3cbf762f8f4d8e6bdf564311ee95f2fWithdraw58502072021-03-20 16:09:32219 days 23 hrs ago0x6cd717264803166d049e02c6785b711153c4057b IN  0x12efc306d0adb92085025617f50b7f76d87385bf0 BNB0.0004852
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xc797fdca9ad82fac05d470a1171e6f68a5f3afb0fd6ff8d62164ff21a7303e3954687662021-03-07 9:51:15233 days 5 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0xc797fdca9ad82fac05d470a1171e6f68a5f3afb0fd6ff8d62164ff21a7303e3954687662021-03-07 9:51:15233 days 5 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x91e62def0064710833efe7c65948697071a71b1841d102efbe4a087b7ec9756b54680432021-03-07 9:15:06233 days 6 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x91e62def0064710833efe7c65948697071a71b1841d102efbe4a087b7ec9756b54680432021-03-07 9:15:06233 days 6 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x8f1f1c4f76db507403ad870fd118c74665d5cd6b726c43ad920af3ca3dab17a754680302021-03-07 9:14:27233 days 6 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x8f1f1c4f76db507403ad870fd118c74665d5cd6b726c43ad920af3ca3dab17a754680302021-03-07 9:14:27233 days 6 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x8f1f1c4f76db507403ad870fd118c74665d5cd6b726c43ad920af3ca3dab17a754680302021-03-07 9:14:27233 days 6 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0xacbe8bb1e1ca0fd8bf3f44558cd2648d7de30b8e634041c4555031287461650054639922021-03-07 5:52:23233 days 9 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0xacbe8bb1e1ca0fd8bf3f44558cd2648d7de30b8e634041c4555031287461650054639922021-03-07 5:52:23233 days 9 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x1440d60bb111eda09dc1ed9027c861232f38323bc8b278b0356755e4923ab1a054633522021-03-07 5:20:23233 days 10 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x1440d60bb111eda09dc1ed9027c861232f38323bc8b278b0356755e4923ab1a054633522021-03-07 5:20:23233 days 10 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x5ec24c9c2380bb65c0f48668563343bfe4634610f0540dcbbb196c96c7fa5e4554586762021-03-07 1:26:35233 days 14 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0xc8112988e8698227eb45cbfff908456b7236cf6f1dcc9f5554a3002640ce6e9d54586652021-03-07 1:26:02233 days 14 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0xc8112988e8698227eb45cbfff908456b7236cf6f1dcc9f5554a3002640ce6e9d54586652021-03-07 1:26:02233 days 14 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0xc8112988e8698227eb45cbfff908456b7236cf6f1dcc9f5554a3002640ce6e9d54586652021-03-07 1:26:02233 days 14 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0xc8112988e8698227eb45cbfff908456b7236cf6f1dcc9f5554a3002640ce6e9d54586652021-03-07 1:26:02233 days 14 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x77f3faedd81e5abbb96f83be2d8c4372d8ace0e3604ad76ba31a34700d9ef74754574452021-03-07 0:25:00233 days 15 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x77f3faedd81e5abbb96f83be2d8c4372d8ace0e3604ad76ba31a34700d9ef74754574452021-03-07 0:25:00233 days 15 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x77f3faedd81e5abbb96f83be2d8c4372d8ace0e3604ad76ba31a34700d9ef74754574452021-03-07 0:25:00233 days 15 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf Soup Protocol: SOUP Token0 BNB
0x77f3faedd81e5abbb96f83be2d8c4372d8ace0e3604ad76ba31a34700d9ef74754574452021-03-07 0:25:00233 days 15 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0xdc4d3e5dbd3007db98b44db3bc2753a32856a6eeb202977a1ba1daf1b509e3b254566752021-03-06 23:46:30233 days 15 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0xdc4d3e5dbd3007db98b44db3bc2753a32856a6eeb202977a1ba1daf1b509e3b254566752021-03-06 23:46:30233 days 15 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x364534935326f6e346e27e817bbbe0b7c9bbbd99a83173a23140e1a2d4cbdf5954564992021-03-06 23:37:42233 days 16 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x364534935326f6e346e27e817bbbe0b7c9bbbd99a83173a23140e1a2d4cbdf5954564992021-03-06 23:37:42233 days 16 hrs ago 0x12efc306d0adb92085025617f50b7f76d87385bf PancakeSwap: SOUP 60 BNB
0x8ff15f23f7dad1852b64778dbb5a71b914e7bb219ab603798af95f97cf72b05c54564272021-03-06 23:34:06233 days 16 hrs 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 Security Audit

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

-----Decoded View---------------
Arg [0] : _soup (address): 0x94f559ae621f1c810f31a6a620ad7376776fe09e
Arg [1] : _startBlock (uint256): 4892150

-----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.