Contract 0x034aF5a55e4316D975A29672733B9791c397b6AF

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x68b3aaf06037fcfd3481e2e1354270fa8f20d6517edc9f28b72aa28eb2996a1cWithdraw116804692021-10-11 12:42:2215 days 2 hrs ago0x88156124d29026918031d01548a59cee51a42d1b IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.00038413
0x3478c25ed6e872a4f748250cf3f01d956669fc64ef472dc815dcc1c67d3c9021Withdraw115081242021-10-05 12:44:4721 days 2 hrs ago0xcc140600b095752cbb11ba54937de5896a356c12 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.00038288
0x8a1a976fbf6deaeeb9b9171964406d252aa51f920de4a492396d4d5dcad2847fDeposit114897312021-10-04 21:24:2721 days 18 hrs ago0xd0ce1113cf178f163bb4034a72d0deb5e862572e IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000414965
0x3f1a3700de0a1fdb707e55ccbd7b5183efda41687bcd02aef3be21ccde5e962bDeposit114897292021-10-04 21:24:2121 days 18 hrs ago0xd0ce1113cf178f163bb4034a72d0deb5e862572e IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000414905
0xabab80c57ec53abf3554aa9df06d18c1290511f2fcf36821afb378d0500d0645Withdraw114579002021-10-03 18:49:3422 days 20 hrs ago0x80addcc11eb1ca96ae8f54f854e9b4d58df0e415 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000333195
0x2ed4b1520e543e6aaee8d43f849e92c8c39701b347db3c9c1885e0b6ee92cd7fDeposit114490062021-10-03 11:23:3823 days 4 hrs ago0x767670119c046c5134dcd04eae7fd6ea83bc9973 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.00055902
0xe451fd35200e68d63409ab73a102333752512fb0c904a1573fb4801d5abd0a20Withdraw114488992021-10-03 11:18:1723 days 4 hrs ago0x767670119c046c5134dcd04eae7fd6ea83bc9973 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.00038419
0xe3c6f4e6cc4c0c8d207e50b797fdb948161badb7c40639f9a3270839b1e04996Deposit114488692021-10-03 11:16:4723 days 4 hrs ago0x767670119c046c5134dcd04eae7fd6ea83bc9973 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000414905
0x3ecd3aa8f20ba4790d0317e5b56d58c36b0e2db3466451888842e908c7f62e53Deposit114087962021-10-02 1:34:3924 days 14 hrs ago0xb39b5433b660d3ac0075c631a418c84414bc01f7 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000414905
0x15ab4f322c1774a67785e67516980110be5571705c6a12aa6b9a9dc2087a1affDeposit114055732021-10-01 22:51:5624 days 16 hrs ago0xabebdb7d35f38d519d1c3ed72d3975424f420417 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.0003477408
0x256e10d1e6644063e61b082ce7e27159fd786997dd114325c15011287e63c136Deposit112245222021-09-25 14:26:4031 days 1 hr ago0x851497cf9b1362858c095cdd577b506d24f57336 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000414965
0x50e3c79170958dd016996a9e79456c0f50a865cc9fb7a8c2e71d0a825750f578Deposit112245202021-09-25 14:26:3431 days 1 hr ago0x851497cf9b1362858c095cdd577b506d24f57336 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000414905
0xbe418ee088deb7091aa18a6f10e1fe6304d46f1da1fa8e70cfef09e702ea4dfdDeposit110534172021-09-19 15:08:5737 days 31 mins ago0x4acf98e7b380313439d189c94febe7ccfb4ae745 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000489905
0x1a11481c4f458670f84bdd29e879f841f52d2976f6c4d62bd03e3e2c4bee29fcWithdraw109697982021-09-16 17:07:1339 days 22 hrs ago0x5c1f95fc3ab191e4f750e299ef4aa5e19c93bbf8 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.00045919
0x7bc945048d4b2922c686baead6105dadbcd7e08f46cf079928f5566d58f77b95Withdraw109675692021-09-16 15:15:2740 days 24 mins ago0xb23a1053923cd2b821bf71f6cc7b012857326311 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.00038419
0x1246e5a63d8a62e876ca0387f4fc0763f9b12d21d8f26bb2459f113b8e9b8cbfWithdraw109347302021-09-15 11:51:0441 days 3 hrs ago0x7fe31527b85cbdde61dcd8a6e6939a77367200a4 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.0004683738
0x5d9bc8f39f2d82aacc06dde990050adcaecd12147ccd55afcfda592a30468433Withdraw109097402021-09-14 14:52:5742 days 47 mins ago0xb5a8f14720f65a59db24037caf40217164903a09 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.0003918126
0x7e343cefa79b942fe0c913768bf879149fcf4347e496a7933ec9e16707b8f9ccDeposit108665172021-09-13 2:47:2943 days 12 hrs ago0x40191dfe9166e3628a52aceb2b8132c79146304a IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.00055902
0x595574f0a0aaa99a1a29747e3ec6caa54cc954b3c0f5a1425bcab74cebcdbcadDeposit108616022021-09-12 22:41:4243 days 16 hrs ago0xf6f5b2ed4e8ada6485d3050a5839f077c5213462 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.0005589
0x9b10fece01b93be20271f43d8a9b4ec6c3579b4eb7768fe2f9b85fc893cba522Deposit107819762021-09-10 3:48:0946 days 11 hrs ago0xb39b5433b660d3ac0075c631a418c84414bc01f7 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000414905
0xe2b012ede59a64d866d575ef4c558dc34a43c1c54c6d4f28d95b04a635cacee7Withdraw107568972021-09-09 6:40:3447 days 8 hrs ago0xf61569972659d9a0ea1f1879939f44301e764454 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000333195
0xa8e3e4c194308c84aaad14b5353138557eca2c65246c2f20889d6a6f5ab1ff8dWithdraw107568802021-09-09 6:39:4347 days 9 hrs ago0xf61569972659d9a0ea1f1879939f44301e764454 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.00038413
0x04e215e353775f94cd06dba413ced4b68a27de9c7cd1232b54f31f5edbd74ff3Deposit107456702021-09-08 21:15:3247 days 18 hrs ago0xf61569972659d9a0ea1f1879939f44301e764454 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.000489905
0x81f096fb0201aca6d70baaffe5ba526e3c16ecc0be68e46caab16bfa423b9539Deposit107455382021-09-08 21:08:5647 days 18 hrs ago0xf61569972659d9a0ea1f1879939f44301e764454 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.00055896
0x7fe8ad57c022c31d2b86e4ebdbfd536976a93d8c1dd55df795c16103b8ad0883Deposit107019382021-09-07 8:11:1449 days 7 hrs ago0x767670119c046c5134dcd04eae7fd6ea83bc9973 IN  0x034af5a55e4316d975a29672733b9791c397b6af0 BNB0.00055902
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xf5d534f4554d252b41eff0d6785e87a08cc4f1c66c4e74512d4ebc9bf10b65c354713052021-03-07 11:58:12233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af PancakeSwap: SOUP 60 BNB
0xf5d534f4554d252b41eff0d6785e87a08cc4f1c66c4e74512d4ebc9bf10b65c354713052021-03-07 11:58:12233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0xf5d534f4554d252b41eff0d6785e87a08cc4f1c66c4e74512d4ebc9bf10b65c354713052021-03-07 11:58:12233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0xf5d534f4554d252b41eff0d6785e87a08cc4f1c66c4e74512d4ebc9bf10b65c354713052021-03-07 11:58:12233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af PancakeSwap: SOUP 60 BNB
0xf5d534f4554d252b41eff0d6785e87a08cc4f1c66c4e74512d4ebc9bf10b65c354713052021-03-07 11:58:12233 days 3 hrs ago 0xf5e3f92ba9bf181e8eb168d619419c827cb25dad 0x034af5a55e4316d975a29672733b9791c397b6af0 BNB
0xa17a995911f4bd830640ef7fc97224ba239babde957dd67b1e3b81f127c838bb54713042021-03-07 11:58:09233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af PancakeSwap: SOUP 60 BNB
0xa17a995911f4bd830640ef7fc97224ba239babde957dd67b1e3b81f127c838bb54713042021-03-07 11:58:09233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0xa17a995911f4bd830640ef7fc97224ba239babde957dd67b1e3b81f127c838bb54713042021-03-07 11:58:09233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0xa17a995911f4bd830640ef7fc97224ba239babde957dd67b1e3b81f127c838bb54713042021-03-07 11:58:09233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af PancakeSwap: SOUP 60 BNB
0xa17a995911f4bd830640ef7fc97224ba239babde957dd67b1e3b81f127c838bb54713042021-03-07 11:58:09233 days 3 hrs ago 0xc370b3a3958579f2aafedf4c3548f75deb43db11 0x034af5a55e4316d975a29672733b9791c397b6af0 BNB
0xa17a995911f4bd830640ef7fc97224ba239babde957dd67b1e3b81f127c838bb54713042021-03-07 11:58:09233 days 3 hrs ago 0xc370b3a3958579f2aafedf4c3548f75deb43db11 0x034af5a55e4316d975a29672733b9791c397b6af0 BNB
0xe1db351c3e1f05aaf2c6825e013351d71ad54cc375d83b0ae1bf8e3f18f0151d54712852021-03-07 11:57:12233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0xe1db351c3e1f05aaf2c6825e013351d71ad54cc375d83b0ae1bf8e3f18f0151d54712852021-03-07 11:57:12233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0xe1db351c3e1f05aaf2c6825e013351d71ad54cc375d83b0ae1bf8e3f18f0151d54712852021-03-07 11:57:12233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af PancakeSwap: SOUP 60 BNB
0x8dbb8d71bdf71fd67a5cd04635a43fd14baab25cd98ddbbbaab1fae47a555cd454712832021-03-07 11:57:06233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0x8dbb8d71bdf71fd67a5cd04635a43fd14baab25cd98ddbbbaab1fae47a555cd454712832021-03-07 11:57:06233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0x8dbb8d71bdf71fd67a5cd04635a43fd14baab25cd98ddbbbaab1fae47a555cd454712832021-03-07 11:57:06233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af PancakeSwap: SOUP 60 BNB
0xba084f60e5c4ca5691eedd318be80dfc2f64b448fdb4ee8aa8189d30baa145e754712692021-03-07 11:56:24233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af PancakeSwap: SOUPS 60 BNB
0xba084f60e5c4ca5691eedd318be80dfc2f64b448fdb4ee8aa8189d30baa145e754712692021-03-07 11:56:24233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0xba084f60e5c4ca5691eedd318be80dfc2f64b448fdb4ee8aa8189d30baa145e754712692021-03-07 11:56:24233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0xba084f60e5c4ca5691eedd318be80dfc2f64b448fdb4ee8aa8189d30baa145e754712692021-03-07 11:56:24233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af PancakeSwap: SOUPS 60 BNB
0x75790423df19a4a816e8c4cda06f352673815f572d32353bd9107638f63eeea554712682021-03-07 11:56:21233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0x75790423df19a4a816e8c4cda06f352673815f572d32353bd9107638f63eeea554712682021-03-07 11:56:21233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af Soup Protocol: SOUPS Token0 BNB
0x75790423df19a4a816e8c4cda06f352673815f572d32353bd9107638f63eeea554712682021-03-07 11:56:21233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af PancakeSwap: SOUPS 60 BNB
0x71974e636392c4559b1939b0b9c7635094b85126fd674ab631f1b3733696371754712612021-03-07 11:56:00233 days 3 hrs ago 0x034af5a55e4316d975a29672733b9791c397b6af PancakeSwap: SOUP 60 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShareRewardPool

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 : ShareRewardPool.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 SOUPS (rewards).
// Instead, the governance will call SOUPS distributeReward method and send reward to this pool at the beginning.
contract ShareRewardPool {
    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. SOUPSs to distribute per block.
        uint256 lastRewardBlock; // Last block number that SOUPSs distribution occurs.
        uint256 accSsoupPerShare; // Accumulated SOUPSs per share, times 1e18. See below.
        bool isStarted; // if lastRewardBlock has passed
    }

    IERC20 public soups = IERC20(0x69F27E70E820197A6e495219D9aC34C8C6dA7EeE);

    // 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 SOUPS mining starts.
    uint256 public startBlock;

    uint256 public endBlock;

    uint256 public soupsPerBlock = 0.004 ether;

    uint256 public runningBlocks = 10625000; // 368 days

    uint256 public constant BLOCKS_PER_WEEK = 201600; // 86400 * 7 / 3;
    uint256 public constant TOTAL_REWARDS = 42500 ether;

    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 _soups,
        uint256 _startBlock
    ) public {
        require(block.number < _startBlock, "late");
        if (_soups != address(0)) soups = IERC20(_soups);
        startBlock = _startBlock;
        // supposed to be 3,496,900 (Mon Dec 28 2020 15:00:00 UTC)
        endBlock = startBlock + runningBlocks;
        // 14,121,900 (Sat Jan 01 2022 20:45:00 UTC)
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "ShareRewardPool: 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, "ShareRewardPool: 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,
            accSsoupPerShare : 0,
            isStarted : _isStarted
            }));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

    // Update the given pool's SOUPS 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) {
        if (_from >= _to) return 0;
        if (_to >= endBlock) {
            if (_from >= endBlock) return 0;
            if (_from <= startBlock) return endBlock.sub(startBlock).mul(soupsPerBlock);
            return endBlock.sub(_from).mul(soupsPerBlock);
        } else {
            if (_to <= startBlock) return 0;
            if (_from <= startBlock) return _to.sub(startBlock).mul(soupsPerBlock);
            return _to.sub(_from).mul(soupsPerBlock);
        }
    }

    // View function to see pending SOUPSs on frontend.
    function pendingRewards(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accSsoupPerShare = pool.accSsoupPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardBlock, block.number);
            uint256 _soupsReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accSsoupPerShare = accSsoupPerShare.add(_soupsReward.mul(1e18).div(lpSupply));
        }
        return user.amount.mul(accSsoupPerShare).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 _soupsReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accSsoupPerShare = pool.accSsoupPerShare.add(_soupsReward.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.accSsoupPerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeSsoupTransfer(_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.accSsoupPerShare).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.accSsoupPerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safeSsoupTransfer(_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.accSsoupPerShare).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 soups transfer function, just in case if rounding error causes pool to not have enough SOUPSs.
    function safeSsoupTransfer(address _to, uint256 _amount) internal {
        uint256 _soupsBal = soups.balanceOf(address(this));
        if (_soupsBal > 0) {
            if (_amount > _soupsBal) {
                soups.safeTransfer(_to, _soupsBal);
            } else {
                soups.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":"_soups","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":[],"name":"TOTAL_REWARDS","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":[],"name":"endBlock","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":"accSsoupPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"runningBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"soups","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"soupsPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]

6080604052600180546001600160a01b0319167369f27e70e820197a6e495219d9ac34c8c6da7eee1790556000600455660e35fa931a000060075562a21fe860085534801561004d57600080fd5b50604051611b03380380611b038339818101604052604081101561007057600080fd5b5080516020909101514381116100b6576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b038216156100e157600180546001600160a01b0319166001600160a01b0384161790555b60058190556008540160065550600080546001600160a01b031916331790556119f48061010f6000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063570ca735116100d857806393f1a40b1161008c578063d18df53c11610066578063d18df53c14610415578063e2bbb1581461044e578063fc47e2091461047157610182565b806393f1a40b1461034957806396805e541461039b578063b3ab15fb146103e257610182565b8063630b5ba1116100bd578063630b5ba1146103315780636845978a146103395780638d9d08191461034157610182565b8063570ca735146102f857806358cb8fc81461032957610182565b8063231f0c6a1161013a57806348cd4cb11161011457806348cd4cb1146102b657806351eb05a6146102be5780635312ea8e146102db57610182565b8063231f0c6a146102375780633656eec21461025a578063441a3e701461029357610182565b80631526fe271161016b5780631526fe27146101a957806317caf6f11461020a5780631ab06ee51461021257610182565b8063083c63231461018757806309cf6091146101a1575b600080fd5b61018f610479565b60408051918252519081900360200190f35b61018f61047f565b6101c6600480360360208110156101bf57600080fd5b503561048d565b6040805173ffffffffffffffffffffffffffffffffffffffff9096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b61018f6104e5565b6102356004803603604081101561022857600080fd5b50803590602001356104eb565b005b61018f6004803603604081101561024d57600080fd5b50803590602001356105a6565b61018f6004803603604081101561027057600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff1661066b565b610235600480360360408110156102a957600080fd5b50803590602001356106a0565b61018f6108cd565b610235600480360360208110156102d457600080fd5b50356108d3565b610235600480360360208110156102f157600080fd5b5035610a75565b610300610b1e565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610300610b3a565b610235610b56565b61018f610b79565b61018f610b7f565b6103826004803603604081101561035f57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610b85565b6040805192835260208301919091528051918290030190f35b610235600480360360808110156103b157600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff60208201351690604081013515159060600135610ba9565b610235600480360360208110156103f857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610df6565b61018f6004803603604081101561042b57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610e93565b6102356004803603604081101561046457600080fd5b5080359060200135611015565b61018f6111b9565b60065481565b6908ffedfb59597590000081565b6002818154811061049a57fe5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff90931694509092909160ff1685565b60045481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105415760405162461bcd60e51b815260040180806020018281038252602b815260200180611949602b913960400191505060405180910390fd5b610549610b56565b60006002838154811061055857fe5b60009182526020909120600590910201600481015490915060ff161561059f5761059b8261059583600101546004546111c090919063ffffffff16565b90611209565b6004555b6001015550565b60008183106105b757506000610665565b600654821061061f5760065483106105d157506000610665565b6005548311610604576105fd6007546105f76005546006546111c090919063ffffffff16565b90611263565b9050610665565b6105fd6007546105f7856006546111c090919063ffffffff16565b600554821161063057506000610665565b6005548311610654576105fd6007546105f7600554856111c090919063ffffffff16565b6007546105fd906105f784866111c0565b92915050565b600091825260036020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205490565b60003390506000600284815481106106b457fe5b6000918252602080832087845260038252604080852073ffffffffffffffffffffffffffffffffffffffff881686529092529220805460059092029092019250841115610748576040805162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b610751856108d3565b600061078e8260010154610788670de0b6b3a76400006107828760030154876000015461126390919063ffffffff16565b906112bc565b906111c0565b905080156107ed576107a084826112fe565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff8616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b84156108295781546107ff90866111c0565b825582546108249073ffffffffffffffffffffffffffffffffffffffff1685876113fd565b610855565b81546000835583549095506108559073ffffffffffffffffffffffffffffffffffffffff1685876113fd565b6003830154825461087391670de0b6b3a76400009161078291611263565b6001830155604080518681529051879173ffffffffffffffffffffffffffffffffffffffff8716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60055481565b6000600282815481106108e257fe5b90600052602060002090600502019050806002015443116109035750610a72565b8054604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561097357600080fd5b505afa158015610987573d6000803e3d6000fd5b505050506040513d602081101561099d57600080fd5b50519050806109b3575043600290910155610a72565b600482015460ff16610a0257600480830180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915583015490546109fe91611209565b6004555b60045415610a69576000610a1a8360020154436105a6565b90506000610a3b60045461078286600101548561126390919063ffffffff16565b9050610a61610a568461078284670de0b6b3a7640000611263565b600386015490611209565b600385015550505b50436002909101555b50565b600060028281548110610a8457fe5b600091825260208083208584526003825260408085203380875293528420805485825560018201959095556005909302018054909450919291610ae19173ffffffffffffffffffffffffffffffffffffffff9190911690836113fd565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60025460005b81811015610b7557610b6d816108d3565b600101610b5c565b5050565b60075481565b60085481565b60036020908152600092835260408084209091529082529020805460019091015482565b60005473ffffffffffffffffffffffffffffffffffffffff163314610bff5760405162461bcd60e51b815260040180806020018281038252602b815260200180611949602b913960400191505060405180910390fd5b610c088361148a565b8115610c1657610c16610b56565b600554431015610c425780610c2e5750600554610c3d565b600554811015610c3d57506005545b610c56565b801580610c4e57504381105b15610c565750435b600060055482111580610c695750438211155b6040805160a08101825273ffffffffffffffffffffffffffffffffffffffff878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180547fffffffffffffffffffffffff000000000000000000000000000000000000000016919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad290920180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001692151592909217909155909150610def57600454610deb9086611209565b6004555b5050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e4c5760405162461bcd60e51b815260040180806020018281038252602b815260200180611949602b913960400191505060405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008060028481548110610ea357fe5b600091825260208083208784526003808352604080862073ffffffffffffffffffffffffffffffffffffffff808b168852908552818720600590960290930191820154825482517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610f4157600080fd5b505afa158015610f55573d6000803e3d6000fd5b505050506040513d6020811015610f6b57600080fd5b5051600285015490915043118015610f8257508015155b15610fdf576000610f978560020154436105a6565b90506000610fb860045461078288600101548561126390919063ffffffff16565b9050610fda610fd38461078284670de0b6b3a7640000611263565b8590611209565b935050505b61100a8360010154610788670de0b6b3a764000061078286886000015461126390919063ffffffff16565b979650505050505050565b600033905060006002848154811061102957fe5b6000918252602080832087845260038252604080852073ffffffffffffffffffffffffffffffffffffffff88168652909252922060059091029091019150611070856108d3565b8054156111095760006110a88260010154610788670de0b6b3a76400006107828760030154876000015461126390919063ffffffff16565b90508015611107576110ba84826112fe565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff8616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b83156111425781546111339073ffffffffffffffffffffffffffffffffffffffff1684308761153e565b805461113f9085611209565b81555b6003820154815461116091670de0b6b3a76400009161078291611263565b6001820155604080518581529051869173ffffffffffffffffffffffffffffffffffffffff8616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b6203138081565b600061120283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506115d9565b9392505050565b600082820183811015611202576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008261127257506000610665565b8282028284828161127f57fe5b04146112025760405162461bcd60e51b81526004018080602001828103825260218152602001806119746021913960400191505060405180910390fd5b600061120283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611670565b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561136f57600080fd5b505afa158015611383573d6000803e3d6000fd5b505050506040513d602081101561139957600080fd5b5051905080156113f857808211156113d4576001546113cf9073ffffffffffffffffffffffffffffffffffffffff1684836113fd565b6113f8565b6001546113f89073ffffffffffffffffffffffffffffffffffffffff1684846113fd565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526113f89084906116d5565b60025460005b818110156113f8578273ffffffffffffffffffffffffffffffffffffffff16600282815481106114bc57fe5b600091825260209091206005909102015473ffffffffffffffffffffffffffffffffffffffff161415611536576040805162461bcd60e51b815260206004820152601f60248201527f5368617265526577617264506f6f6c3a206578697374696e6720706f6f6c3f00604482015290519081900360640190fd5b600101611490565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526115d39085906116d5565b50505050565b600081848411156116685760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561162d578181015183820152602001611615565b50505050905090810190601f16801561165a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836116bf5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561162d578181015183820152602001611615565b5060008385816116cb57fe5b0495945050505050565b6060611737826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117939092919063ffffffff16565b8051909150156113f85780806020019051602081101561175657600080fd5b50516113f85760405162461bcd60e51b815260040180806020018281038252602a815260200180611995602a913960400191505060405180910390fd5b60606117a284846000856117aa565b949350505050565b60606117b585611942565b611806576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061187057805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611833565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146118d2576040519150601f19603f3d011682016040523d82523d6000602084013e6118d7565b606091505b509150915081156118eb5791506117a29050565b8051156118fb5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561162d578181015183820152602001611615565b3b15159056fe5368617265526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220e42a34267b1929994758c67ed3676e03db964ac75cdba3a709e37804f65b3fd564736f6c634300060c003300000000000000000000000069f27e70e820197a6e495219d9ac34c8c6da7eee00000000000000000000000000000000000000000000000000000000004db976

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

00000000000000000000000069f27e70e820197a6e495219d9ac34c8c6da7eee00000000000000000000000000000000000000000000000000000000004db976

-----Decoded View---------------
Arg [0] : _soups (address): 0x69f27e70e820197a6e495219d9ac34c8c6da7eee
Arg [1] : _startBlock (uint256): 5093750

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000069f27e70e820197a6e495219d9ac34c8c6da7eee
Arg [1] : 00000000000000000000000000000000000000000000000000000000004db976


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.