Contract 0x898b5332de3f0e87b363b0a47de41c50b3c6e6a1 1

 
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7ac990956eb4f9dd9d014b4f18661813f7f41deb7a9575ba1cef0238ac8a1998Withdraw202813452021-10-16 15:33:347 days 5 hrs ago0x1375b6b4cbc1652dd24f281fc1fac4fb8c71aca0 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.0017913
0xd48cc66d9b89ff10fba24329b63df9019430d6277d579c6d6b8a11e8a17e97d9Withdraw202812572021-10-16 15:30:307 days 5 hrs ago0x1375b6b4cbc1652dd24f281fc1fac4fb8c71aca0 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.0022017
0x9f0d2369c15159d07ae5dd764fc544974f5496d9051a798fb33c2d8e01555ff7Deposit200664682021-10-10 15:24:1213 days 6 hrs ago0xef669b7c021853c091b5ef77068594ff081f987e IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.008527905001
0x7d3aa44a082113ca9c1b01c0cc4494493ddc8174c4193d67fc9dfafdbb0d3754Withdraw197771272021-10-03 0:26:1420 days 20 hrs ago0x4cea47098f9dcf54cae012ec7c83f2111dc778f5 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.0008119989
0x2134e39f647b119511002e3c7f8b709c83c7d393438a6aafb4f168e7d748fa1cDeposit195812262021-09-27 17:50:2026 days 3 hrs ago0xef669b7c021853c091b5ef77068594ff081f987e IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.002639565001
0x171bdedf9bc78227dbd0f7b7fd1baf9436a6feb0d9c91c27bc1802f658427d67Withdraw194748502021-09-24 22:35:0728 days 22 hrs ago0x6acb021119ed12d5b4c40e7a4f208e65818337e8 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.00276304
0x4cb1e3841f543be043a74070123f780522af3b9fe103c5d623d5612a5f8f85ddDeposit194572322021-09-24 11:49:5429 days 9 hrs ago0x6acb021119ed12d5b4c40e7a4f208e65818337e8 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.00481166
0xbe165913b5a000362aea4debe01ddcfc216b735068154f984a754d2bedd93fe8Deposit194013892021-09-22 23:46:1730 days 21 hrs ago0x53433746b2dc9b17dc009a79d525ac953a202e9d IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.000197426
0xdacd6dfdab8ae61c5b9a769a9bdc7ad6c5201df575c7a6dd2bdc5875599cf8e3Withdraw193932272021-09-22 18:25:5731 days 2 hrs ago0xf465d66fe7c960bf1da323c0ee6dee54eedb6edb IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.00274393
0xd6b2dc11deacf63c7f0c60fe3185620773f660062d96f57b1b6480edc5a497f1Deposit193932072021-09-22 18:25:1031 days 2 hrs ago0xf465d66fe7c960bf1da323c0ee6dee54eedb6edb IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.00541016
0xb3ea89ba8ccfc34c5eec979a089e3c5004432dff5454c750c18141f66336560eDeposit193931192021-09-22 18:22:0831 days 3 hrs ago0xf465d66fe7c960bf1da323c0ee6dee54eedb6edb IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.005176325
0xaf500f4cf85f87c12162223755d3bb2b19f2ba8379644353c0ec62efd5c75a53Withdraw192991422021-09-20 4:42:3333 days 16 hrs ago0xb53c39a74b0b0170a9e0df641691ff41aa7659eb IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.001002564
0x24c36fa98625a251015169081ac9c184a68c4a828984a03f61c477d953294e76Withdraw192565102021-09-19 0:43:3734 days 20 hrs ago0xf451281b096d6833d2e27dbfde58161498118f89 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.0000738716
0x60fc2db81970e7d28278cfc23099418d0a388cf6b67a6b59086bef0f755e639aEmergency Withdr...192183022021-09-17 21:56:4035 days 23 hrs ago0xf0536e35d259f27d3cf7b908f644b97ce8791202 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.0049327
0x6bae674fcf104b941d6c2f7a6420c871923505d01589881fe87073e0e6000821Withdraw192041082021-09-17 12:29:1436 days 8 hrs ago0xed262dbf0888c23fd50d3753c7ffa848c84d19d8 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.000411564912
0x499fddfc4740ece12608ac90a54d7e0fa29820ddd0bed54acd09f995545b3cbcTransfer Ownersh...191976862021-09-17 8:17:4336 days 13 hrs ago0xf2d862f226e0187fe551bf66d99be9306db368e0 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.000060377828
0xe861f34c2c4d7ac8175b28e793b5b8aa2c2e94e4a4b3ef3db2dab1b5796a7ae4Withdraw191734782021-09-16 14:27:5737 days 6 hrs ago0xae6b272364ed6ff64afb3dada20e9c0da112ad7f IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.002590313522
0x3f3c3d42e98576d8173510277c19f14d0059737e8e0fce78aae8d0cf11d933dfWithdraw191668742021-09-16 9:34:2137 days 11 hrs ago0xba937e27968758b9492098b29911c823e02f513a IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.000073402
0x0874c5d2b921203b922ddfaeada1a58ce4ab59567dec8d978b6716513033defdWithdraw191246362021-09-15 5:32:0838 days 15 hrs ago0x528e48267b65a5504d0b6f52cf72984d7339a8be IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.00006630474
0x75fe6afea91b4cf8bc37acee38f0aa53405632c43127ec62d290d081b3de8e84Withdraw191240892021-09-15 5:11:0838 days 16 hrs ago0x528e48267b65a5504d0b6f52cf72984d7339a8be IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.00008704842
0xb64d367649c3c86479d65207b6618f9ac5fadb5ecabbda80f4eba6224db9c004Withdraw191240852021-09-15 5:11:0038 days 16 hrs ago0x528e48267b65a5504d0b6f52cf72984d7339a8be IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.0000941496
0x2a8f5274875995ed1dc2542bd3fb5fd3097aeaf3ed623e1ea1887a6df48beff5Withdraw190915212021-09-14 8:38:3039 days 12 hrs ago0xd1e0f228324a036d7cc3e7614e43483b6b0a2761 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.00328471
0x98eff4dd8fed1aa69226cda26ffe01c54db7317dbbe6fafb301567f41e047f49Deposit190906702021-09-14 8:08:3839 days 13 hrs ago0xd1e0f228324a036d7cc3e7614e43483b6b0a2761 IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.00018832028
0x33491523c1494ba06982ddf66e7065e9210fbcc562e7047786f79b95b40e12f9Withdraw190889842021-09-14 7:04:1239 days 14 hrs ago0xa641d62cd4a33d92ac7ad73336d752d6195c95ba IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.00031902
0xd770de2941595499bc339559d4e0fd0226df759a8b0cc1d0096309276bc2f807Withdraw190889632021-09-14 7:03:3039 days 14 hrs ago0xa641d62cd4a33d92ac7ad73336d752d6195c95ba IN  0x898b5332de3f0e87b363b0a47de41c50b3c6e6a10 MATIC0.000652777948
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChefV2

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : MasterChefV2.sol
/*_________   _____    _______  ________      _____      _____    _______   
 /   _____/  /  _  \   \      \ \______ \    /     \    /  _  \   \      \  
 \_____  \  /  /_\  \  /   |   \ |    |  \  /  \ /  \  /  /_\  \  /   |   \ 
 /        \/    |    \/    |    \|    `   \/    Y    \/    |    \/    |    \
/_______  /\____|__  /\____|__  /_______  /\____|__  /\____|__  /\____|__  /
One Thing I've Learned. You Can Know Anything. It's All There. You Just Have To Find It.
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import "./SandManToken.sol";

// MasterChef is the master of SandMan. He can make SandMan and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once SANDMAN is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterChefV2 is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;         // How many LP tokens the user has provided.
        uint256 rewardDebt;     // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of SANDMANs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accSandManPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accSandManPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. SANDMANs to distribute per block.
        uint256 lastRewardBlock;  // Last block number that SANDMANs distribution occurs.
        uint256 accSandManPerShare;   // Accumulated SANDMANs per share, times 1e12. See below.
        uint16 depositFeeBP;      // Deposit fee in basis points
        uint256 lpSupply;
    }

    uint256 public constant sandManMaximumSupply = 100 * (10 ** 3) * (10 ** 18);

    uint256 public constant sandManPreMint = 42000 * (10 ** 18);

    // The SANDMAN TOKEN!
    SandManToken public immutable sandMan;
    // SANDMAN tokens created per block.
    uint256 public sandManPerBlock;
    // Deposit Fee address
    address public feeAddress;

    // 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 SANDMAN mining starts.
    uint256 public startBlock;
    // The block number when SANDMAN mining ends.
    uint256 public emmissionEndBlock = type(uint256).max;

    event addPool(uint256 indexed pid, address lpToken, uint256 allocPoint, uint256 depositFeeBP);
    event setPool(uint256 indexed pid, address lpToken, uint256 allocPoint, uint256 depositFeeBP);
    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 SetFeeAddress(address indexed user, address indexed newAddress);
    event UpdateStartBlock(uint256 newStartBlock);

    constructor(
        SandManToken _sandMan,
        address _feeAddress,
        uint256 _sandManPerBlock,
        uint256 _startBlock
    ) {
        sandMan = _sandMan;
        feeAddress = _feeAddress;
        sandManPerBlock = _sandManPerBlock;
        startBlock = _startBlock;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    mapping(IERC20 => bool) public poolExistence;
    modifier nonDuplicated(IERC20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(uint256 _allocPoint, IERC20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner nonDuplicated(_lpToken) {
        // Make sure the provided token is ERC20
        _lpToken.balanceOf(address(this));

        require(_depositFeeBP <= 401, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint + _allocPoint;
        poolExistence[_lpToken] = true;

        poolInfo.push(PoolInfo({
        lpToken : _lpToken,
        allocPoint : _allocPoint,
        lastRewardBlock : lastRewardBlock,
        accSandManPerShare : 0,
        depositFeeBP : _depositFeeBP,
        lpSupply: 0
        }));

        emit addPool(poolInfo.length - 1, address(_lpToken), _allocPoint, _depositFeeBP);
    }

    // Update the given pool's SANDMAN allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner {
        require(_depositFeeBP <= 401, "set: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;

        emit setPool(_pid, address(poolInfo[_pid].lpToken), _allocPoint, _depositFeeBP);
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        // As we set the multiplier to 0 here after emmissionEndBlock
        // deposits aren't blocked after farming ends.
        if (_from > emmissionEndBlock)
            return 0;
        if (_to > emmissionEndBlock)
            return emmissionEndBlock - _from;
        else
            return _to - _from;
    }

    // View function to see pending SANDMANs on frontend.
    function pendingSandMan(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accSandManPerShare = pool.accSandManPerShare;
        if (block.number > pool.lastRewardBlock && pool.lpSupply != 0 && totalAllocPoint > 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 sandManReward = (multiplier * sandManPerBlock * pool.allocPoint) / totalAllocPoint;
            accSandManPerShare = accSandManPerShare + ((sandManReward * 1e12) / pool.lpSupply);
        }

        return ((user.amount * accSandManPerShare) /  1e12) - user.rewardDebt;
    }

    // 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;
        }

        if (pool.lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }

        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 sandManReward = (multiplier * sandManPerBlock * pool.allocPoint) / totalAllocPoint;

        // This shouldn't happen, but just in case we stop rewards.
        if (sandMan.totalSupply() > sandManMaximumSupply)
            sandManReward = 0;
        else if ((sandMan.totalSupply() + sandManReward) > sandManMaximumSupply)
            sandManReward = sandManMaximumSupply - sandMan.totalSupply();

        if (sandManReward > 0)
            sandMan.mint(address(this), sandManReward);

        // The first time we reach SandMan max supply we solidify the end of farming.
        if (sandMan.totalSupply() >= sandManMaximumSupply && emmissionEndBlock == type(uint256).max)
            emmissionEndBlock = block.number;

        pool.accSandManPerShare = pool.accSandManPerShare + ((sandManReward * 1e12) / pool.lpSupply);
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for SANDMAN allocation.
    function deposit(uint256 _pid, uint256 _amount) external nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = ((user.amount * pool.accSandManPerShare) / 1e12) - user.rewardDebt;
            if (pending > 0) {
                safeSandManTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            uint256 balanceBefore = pool.lpToken.balanceOf(address(this));
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            _amount = pool.lpToken.balanceOf(address(this)) - balanceBefore;
            require(_amount > 0, "we dont accept deposits of 0 size");

            if (pool.depositFeeBP > 0) {
                uint256 depositFee = (_amount * pool.depositFeeBP) / 10000;
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount + _amount - depositFee;
                pool.lpSupply = pool.lpSupply + _amount - depositFee;
            } else {
                user.amount = user.amount + _amount;
                pool.lpSupply = pool.lpSupply + _amount;
            }
        }
        user.rewardDebt = (user.amount * pool.accSandManPerShare) / 1e12;

        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) external nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = ((user.amount * pool.accSandManPerShare) / 1e12) - user.rewardDebt;
        if (pending > 0) {
            safeSandManTransfer(msg.sender, pending);
        }
        if (_amount > 0) {
            user.amount = user.amount - _amount;
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
            pool.lpSupply = pool.lpSupply - _amount;
        }
        user.rewardDebt = (user.amount * pool.accSandManPerShare) / 1e12;
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) external nonReentrant {
        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(address(msg.sender), amount);

        // In the case of an accounting error, we choose to let the user emergency withdraw anyway
        if (pool.lpSupply >=  amount)
            pool.lpSupply = pool.lpSupply - amount;
        else
            pool.lpSupply = 0;

        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    // Safe sandMan transfer function, just in case if rounding error causes pool to not have enough SANDMANs.
    function safeSandManTransfer(address _to, uint256 _amount) internal {
        uint256 sandManBal = sandMan.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > sandManBal) {
            transferSuccess = sandMan.transfer(_to, sandManBal);
        } else {
            transferSuccess = sandMan.transfer(_to, _amount);
        }
        require(transferSuccess, "safeSandManTransfer: transfer failed");
    }

    function setFeeAddress(address _feeAddress) external {
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        require(_feeAddress != address(0), "!nonzero");
        feeAddress = _feeAddress;
        emit SetFeeAddress(msg.sender, _feeAddress);
    }

    function setStartBlock(uint256 _newStartBlock) external onlyOwner {
        require(poolInfo.length == 0, "no changing start block after pools have been added");
        require(block.number < startBlock, "cannot change start block if sale has already commenced");
        require(block.number < _newStartBlock, "cannot set start block in the past");
        startBlock = _newStartBlock;

        emit UpdateStartBlock(startBlock);
    }
}

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

pragma solidity ^0.8.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 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.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 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'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 10 : SandManToken.sol
/*_________   _____    _______  ________      _____      _____    _______   
 /   _____/  /  _  \   \      \ \______ \    /     \    /  _  \   \      \  
 \_____  \  /  /_\  \  /   |   \ |    |  \  /  \ /  \  /  /_\  \  /   |   \ 
 /        \/    |    \/    |    \|    `   \/    Y    \/    |    \/    |    \
/_______  /\____|__  /\____|__  /_______  /\____|__  /\____|__  /\____|__  /
One Thing I've Learned. You Can Know Anything. It's All There. You Just Have To Find It.
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

// SandManToken
contract SandManToken is ERC20, Ownable {

    constructor() 
        ERC20('SANDMAN', 'SANDMAN')
    {
        _mint(
            msg.sender,
            42000 * 10 ** decimals()
        );
    }

    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @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 on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        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");

        (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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 10 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 8 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 9 of 10 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 10 of 10 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract SandManToken","name":"_sandMan","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_sandManPerBlock","type":"uint256"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetFeeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newStartBlock","type":"uint256"}],"name":"UpdateStartBlock","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFeeBP","type":"uint256"}],"name":"addPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFeeBP","type":"uint256"}],"name":"setPool","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","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":"emmissionEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingSandMan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"accSandManPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"lpSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sandMan","outputs":[{"internalType":"contract SandManToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sandManMaximumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sandManPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sandManPreMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newStartBlock","type":"uint256"}],"name":"setStartBlock","outputs":[],"stateMutability":"nonpayable","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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","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"}]

60a060405260006006557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6008553480156200003a57600080fd5b5060405162003d6838038062003d68833981810160405281019062000060919062000228565b62000080620000746200011760201b60201c565b6200011f60201b60201c565b600180819055508373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600281905550806007819055505050505062000334565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001f481620002e6565b92915050565b6000815190506200020b8162000300565b92915050565b60008151905062000222816200031a565b92915050565b600080600080608085870312156200023f57600080fd5b60006200024f87828801620001fa565b94505060206200026287828801620001e3565b9350506040620002758782880162000211565b9250506060620002888782880162000211565b91505092959194509250565b6000620002a182620002bc565b9050919050565b6000620002b58262000294565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b620002f18162000294565b8114620002fd57600080fd5b50565b6200030b81620002a8565b81146200031757600080fd5b50565b6200032581620002dc565b81146200033157600080fd5b50565b60805160601c6139dd6200038b600039600081816108fa015281816109b301528181610a6101528181610b2101528181610bba0152818161174d015281816121bc01528181612271015261232501526139dd6000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638705fcd4116100de578063c0f0936d11610097578063d963842211610071578063d963842214610455578063e2bbb15814610471578063f2fde38b1461048d578063f35e4a6e146104a95761018e565b8063c0f0936d146103e9578063cbd258b514610407578063ce8fa0ba146104375761018e565b80638705fcd4146103005780638da5cb5b1461031c5780638dbb1e3a1461033a5780638e564d061461036a57806393f1a40b1461038857806394c4a78c146103b95761018e565b8063441a3e701161014b5780635312ea8e116101255780635312ea8e146102b4578063630b5ba1146102d0578063715018a6146102da57806384e82a33146102e45761018e565b8063441a3e701461025e57806348cd4cb11461027a57806351eb05a6146102985761018e565b8063081e3eda146101935780631526fe27146101b157806317caf6f1146101e65780632a4f9d431461020457806338a2c581146102225780634127535814610240575b600080fd5b61019b6104c5565b6040516101a891906131c7565b60405180910390f35b6101cb60048036038101906101c6919061296f565b6104d2565b6040516101dd96959493929190612f09565b60405180910390f35b6101ee61054c565b6040516101fb91906131c7565b60405180910390f35b61020c610552565b60405161021991906131c7565b60405180910390f35b61022a610558565b60405161023791906131c7565b60405180910390f35b61024861055e565b6040516102559190612e3c565b60405180910390f35b61027860048036038101906102739190612a60565b610584565b005b61028261081f565b60405161028f91906131c7565b60405180910390f35b6102b260048036038101906102ad919061296f565b610825565b005b6102ce60048036038101906102c9919061296f565b610cd9565b005b6102d8610ec2565b005b6102e2610ef5565b005b6102fe60048036038101906102f991906129fd565b610f7d565b005b61031a600480360381019061031591906128f4565b61134f565b005b6103246114ed565b6040516103319190612e3c565b60405180910390f35b610354600480360381019061034f9190612a60565b611516565b60405161036191906131c7565b60405180910390f35b61037261155f565b60405161037f91906131c7565b60405180910390f35b6103a2600480360381019061039d91906129c1565b61156d565b6040516103b09291906131e2565b60405180910390f35b6103d360048036038101906103ce91906129c1565b61159e565b6040516103e091906131c7565b60405180910390f35b6103f161171d565b6040516103fe91906131c7565b60405180910390f35b610421600480360381019061041c9190612946565b61172b565b60405161042e9190612eee565b60405180910390f35b61043f61174b565b60405161044c9190612f6a565b60405180910390f35b61046f600480360381019061046a9190612a9c565b61176f565b005b61048b60048036038101906104869190612a60565b611a10565b005b6104a760048036038101906104a291906128f4565b611f33565b005b6104c360048036038101906104be919061296f565b61202b565b005b6000600480549050905090565b600481815481106104e257600080fd5b90600052602060002090600602016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900461ffff16908060050154905086565b60065481565b60025481565b60085481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260015414156105ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c1906131a7565b60405180910390fd5b600260018190555060006004838154811061060e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201905060006005600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905082816000015410156106b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b090613127565b60405180910390fd5b6106c284610825565b6000816001015464e8d4a51000846003015484600001546106e391906132c4565b6106ed9190613293565b6106f7919061331e565b9050600081111561070d5761070c33826121b8565b5b600084111561079657838260000154610726919061331e565b826000018190555061077d33858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166124199092919063ffffffff16565b83836005015461078d919061331e565b83600501819055505b64e8d4a51000836003015483600001546107b091906132c4565b6107ba9190613293565b8260010181905550843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688660405161080991906131c7565b60405180910390a3505050600180819055505050565b60075481565b600060048281548110610861577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602019050806002015443116108825750610cd6565b600081600501541480610899575060008160010154145b156108ad5743816002018190555050610cd6565b60006108bd826002015443611516565b905060006006548360010154600254846108d791906132c4565b6108e191906132c4565b6108eb9190613293565b905069152d02c7e14af68000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561095e57600080fd5b505afa158015610972573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109969190612998565b11156109a55760009050610b16565b69152d02c7e14af6800000817f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a1757600080fd5b505afa158015610a2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4f9190612998565b610a59919061323d565b1115610b15577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ac557600080fd5b505afa158015610ad9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afd9190612998565b69152d02c7e14af6800000610b12919061331e565b90505b5b6000811115610bad577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401610b7a929190612e8e565b600060405180830381600087803b158015610b9457600080fd5b505af1158015610ba8573d6000803e3d6000fd5b505050505b69152d02c7e14af68000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c1e57600080fd5b505afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190612998565b10158015610c8557507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600854145b15610c9257436008819055505b826005015464e8d4a5100082610ca891906132c4565b610cb29190613293565b8360030154610cc1919061323d565b83600301819055504383600201819055505050505b50565b60026001541415610d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d16906131a7565b60405180910390fd5b6002600181905550600060048281548110610d63577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201905060006005600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015490506000826000018190555060008260010181905550610e3333828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166124199092919063ffffffff16565b80836005015410610e5b57808360050154610e4e919061331e565b8360050181905550610e66565b600083600501819055505b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059583604051610ead91906131c7565b60405180910390a35050506001808190555050565b6000600480549050905060005b81811015610ef157610ee081610825565b80610eea90613447565b9050610ecf565b5050565b610efd61249f565b73ffffffffffffffffffffffffffffffffffffffff16610f1b6114ed565b73ffffffffffffffffffffffffffffffffffffffff1614610f71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f68906130e7565b60405180910390fd5b610f7b60006124a7565b565b610f8561249f565b73ffffffffffffffffffffffffffffffffffffffff16610fa36114ed565b73ffffffffffffffffffffffffffffffffffffffff1614610ff9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff0906130e7565b60405180910390fd5b8260001515600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108490613147565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016110c69190612e3c565b60206040518083038186803b1580156110de57600080fd5b505afa1580156110f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111169190612998565b506101918361ffff161115611160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115790612fc7565b60405180910390fd5b811561116f5761116e610ec2565b5b6000600754431161118257600754611184565b435b905085600654611194919061323d565b6006819055506001600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060046040518060c001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001888152602001838152602001600081526020018661ffff1681526020016000815250908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff16021790555060a082015181600501555050600160048054905061130c919061331e565b7faa6642278d4bbef86d8990c37355d5d4dfe365c194106bdf7a65162268606f0786888760405161133f93929190612eb7565b60405180910390a2505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d690613167565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690613087565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f760405160405180910390a350565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060085483111561152b5760009050611559565b60085482111561154a5782600854611543919061331e565b9050611559565b8282611556919061331e565b90505b92915050565b6908e4d31682768640000081565b6005602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b600080600484815481106115db577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201905060006005600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905082600201544311801561166057506000836005015414155b801561166e57506000600654115b156116e3576000611683846002015443611516565b9050600060065485600101546002548461169d91906132c4565b6116a791906132c4565b6116b19190613293565b9050846005015464e8d4a51000826116c991906132c4565b6116d39190613293565b836116de919061323d565b925050505b816001015464e8d4a510008284600001546116fe91906132c4565b6117089190613293565b611712919061331e565b935050505092915050565b69152d02c7e14af680000081565b60096020528060005260406000206000915054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b61177761249f565b73ffffffffffffffffffffffffffffffffffffffff166117956114ed565b73ffffffffffffffffffffffffffffffffffffffff16146117eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e2906130e7565b60405180910390fd5b6101918261ffff161115611834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182b906130c7565b60405180910390fd5b801561184357611842610ec2565b5b826004858154811061187e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016001015460065461189d919061331e565b6118a7919061323d565b60068190555082600485815481106118e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201600101819055508160048581548110611938577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906006020160040160006101000a81548161ffff021916908361ffff160217905550837f39f0c3d078af018954b4fa56832a05a2b511afaa999b133ea3f1c487c21ed287600486815481106119bf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906006020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168585604051611a0293929190612eb7565b60405180910390a250505050565b60026001541415611a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4d906131a7565b60405180910390fd5b6002600181905550600060048381548110611a9a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201905060006005600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611b0784610825565b600081600001541115611b61576000816001015464e8d4a5100084600301548460000154611b3591906132c4565b611b3f9190613293565b611b49919061331e565b90506000811115611b5f57611b5e33826121b8565b5b505b6000831115611eab5760008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611bc99190612e3c565b60206040518083038186803b158015611be157600080fd5b505afa158015611bf5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c199190612998565b9050611c6c3330868660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661256b909392919063ffffffff16565b808360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611cca9190612e3c565b60206040518083038186803b158015611ce257600080fd5b505afa158015611cf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1a9190612998565b611d24919061331e565b935060008411611d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6090613047565b60405180910390fd5b60008360040160009054906101000a900461ffff1661ffff161115611e785760006127108460040160009054906101000a900461ffff1661ffff1686611daf91906132c4565b611db99190613293565b9050611e2c600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166124199092919063ffffffff16565b80858460000154611e3d919061323d565b611e47919061331e565b836000018190555080858560050154611e60919061323d565b611e6a919061331e565b846005018190555050611ea9565b838260000154611e88919061323d565b8260000181905550838360050154611ea0919061323d565b83600501819055505b505b64e8d4a5100082600301548260000154611ec591906132c4565b611ecf9190613293565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1585604051611f1e91906131c7565b60405180910390a35050600180819055505050565b611f3b61249f565b73ffffffffffffffffffffffffffffffffffffffff16611f596114ed565b73ffffffffffffffffffffffffffffffffffffffff1614611faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa6906130e7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561201f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201690612fe7565b60405180910390fd5b612028816124a7565b50565b61203361249f565b73ffffffffffffffffffffffffffffffffffffffff166120516114ed565b73ffffffffffffffffffffffffffffffffffffffff16146120a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209e906130e7565b60405180910390fd5b6000600480549050146120ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e6906130a7565b60405180910390fd5b6007544310612133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212a90613067565b60405180910390fd5b804310612175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216c90612fa7565b60405180910390fd5b806007819055507f1ff2238e284780b094bb341b41af7e6ce294dee1da3799ae49cd0e29fbe127096007546040516121ad91906131c7565b60405180910390a150565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016122139190612e3c565b60206040518083038186803b15801561222b57600080fd5b505afa15801561223f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122639190612998565b9050600081831115612323577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b81526004016122ca929190612e8e565b602060405180830381600087803b1580156122e457600080fd5b505af11580156122f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231c919061291d565b90506123d3565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b815260040161237e929190612e8e565b602060405180830381600087803b15801561239857600080fd5b505af11580156123ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d0919061291d565b90505b80612413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240a90613007565b60405180910390fd5b50505050565b61249a8363a9059cbb60e01b8484604051602401612438929190612e8e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506125f4565b505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6125ee846323b872dd60e01b85858560405160240161258c93929190612e57565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506125f4565b50505050565b6000612656826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126bb9092919063ffffffff16565b90506000815111156126b65780806020019051810190612676919061291d565b6126b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ac90613187565b60405180910390fd5b5b505050565b60606126ca84846000856126d3565b90509392505050565b606082471015612718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270f90613027565b60405180910390fd5b612721856127e7565b612760576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275790613107565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516127899190612e25565b60006040518083038185875af1925050503d80600081146127c6576040519150601f19603f3d011682016040523d82523d6000602084013e6127cb565b606091505b50915091506127db8282866127fa565b92505050949350505050565b600080823b905060008111915050919050565b6060831561280a5782905061285a565b60008351111561281d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128519190612f85565b60405180910390fd5b9392505050565b60008135905061287081613934565b92915050565b6000813590506128858161394b565b92915050565b60008151905061289a8161394b565b92915050565b6000813590506128af81613962565b92915050565b6000813590506128c481613979565b92915050565b6000813590506128d981613990565b92915050565b6000815190506128ee81613990565b92915050565b60006020828403121561290657600080fd5b600061291484828501612861565b91505092915050565b60006020828403121561292f57600080fd5b600061293d8482850161288b565b91505092915050565b60006020828403121561295857600080fd5b6000612966848285016128a0565b91505092915050565b60006020828403121561298157600080fd5b600061298f848285016128ca565b91505092915050565b6000602082840312156129aa57600080fd5b60006129b8848285016128df565b91505092915050565b600080604083850312156129d457600080fd5b60006129e2858286016128ca565b92505060206129f385828601612861565b9150509250929050565b60008060008060808587031215612a1357600080fd5b6000612a21878288016128ca565b9450506020612a32878288016128a0565b9350506040612a43878288016128b5565b9250506060612a5487828801612876565b91505092959194509250565b60008060408385031215612a7357600080fd5b6000612a81858286016128ca565b9250506020612a92858286016128ca565b9150509250929050565b60008060008060808587031215612ab257600080fd5b6000612ac0878288016128ca565b9450506020612ad1878288016128ca565b9350506040612ae2878288016128b5565b9250506060612af387828801612876565b91505092959194509250565b612b0881613352565b82525050565b612b1781613364565b82525050565b6000612b288261320b565b612b328185613221565b9350612b42818560208601613414565b80840191505092915050565b612b57816133ba565b82525050565b612b66816133de565b82525050565b6000612b7782613216565b612b81818561322c565b9350612b91818560208601613414565b612b9a816134ee565b840191505092915050565b6000612bb260228361322c565b9150612bbd826134ff565b604082019050919050565b6000612bd560258361322c565b9150612be08261354e565b604082019050919050565b6000612bf860268361322c565b9150612c038261359d565b604082019050919050565b6000612c1b60248361322c565b9150612c26826135ec565b604082019050919050565b6000612c3e60268361322c565b9150612c498261363b565b604082019050919050565b6000612c6160218361322c565b9150612c6c8261368a565b604082019050919050565b6000612c8460378361322c565b9150612c8f826136d9565b604082019050919050565b6000612ca760088361322c565b9150612cb282613728565b602082019050919050565b6000612cca60338361322c565b9150612cd582613751565b604082019050919050565b6000612ced60258361322c565b9150612cf8826137a0565b604082019050919050565b6000612d1060208361322c565b9150612d1b826137ef565b602082019050919050565b6000612d33601d8361322c565b9150612d3e82613818565b602082019050919050565b6000612d5660128361322c565b9150612d6182613841565b602082019050919050565b6000612d7960198361322c565b9150612d848261386a565b602082019050919050565b6000612d9c60188361322c565b9150612da782613893565b602082019050919050565b6000612dbf602a8361322c565b9150612dca826138bc565b604082019050919050565b6000612de2601f8361322c565b9150612ded8261390b565b602082019050919050565b612e0181613382565b82525050565b612e1081613402565b82525050565b612e1f816133b0565b82525050565b6000612e318284612b1d565b915081905092915050565b6000602082019050612e516000830184612aff565b92915050565b6000606082019050612e6c6000830186612aff565b612e796020830185612aff565b612e866040830184612e16565b949350505050565b6000604082019050612ea36000830185612aff565b612eb06020830184612e16565b9392505050565b6000606082019050612ecc6000830186612aff565b612ed96020830185612e16565b612ee66040830184612e07565b949350505050565b6000602082019050612f036000830184612b0e565b92915050565b600060c082019050612f1e6000830189612b4e565b612f2b6020830188612e16565b612f386040830187612e16565b612f456060830186612e16565b612f526080830185612df8565b612f5f60a0830184612e16565b979650505050505050565b6000602082019050612f7f6000830184612b5d565b92915050565b60006020820190508181036000830152612f9f8184612b6c565b905092915050565b60006020820190508181036000830152612fc081612ba5565b9050919050565b60006020820190508181036000830152612fe081612bc8565b9050919050565b6000602082019050818103600083015261300081612beb565b9050919050565b6000602082019050818103600083015261302081612c0e565b9050919050565b6000602082019050818103600083015261304081612c31565b9050919050565b6000602082019050818103600083015261306081612c54565b9050919050565b6000602082019050818103600083015261308081612c77565b9050919050565b600060208201905081810360008301526130a081612c9a565b9050919050565b600060208201905081810360008301526130c081612cbd565b9050919050565b600060208201905081810360008301526130e081612ce0565b9050919050565b6000602082019050818103600083015261310081612d03565b9050919050565b6000602082019050818103600083015261312081612d26565b9050919050565b6000602082019050818103600083015261314081612d49565b9050919050565b6000602082019050818103600083015261316081612d6c565b9050919050565b6000602082019050818103600083015261318081612d8f565b9050919050565b600060208201905081810360008301526131a081612db2565b9050919050565b600060208201905081810360008301526131c081612dd5565b9050919050565b60006020820190506131dc6000830184612e16565b92915050565b60006040820190506131f76000830185612e16565b6132046020830184612e16565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000613248826133b0565b9150613253836133b0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561328857613287613490565b5b828201905092915050565b600061329e826133b0565b91506132a9836133b0565b9250826132b9576132b86134bf565b5b828204905092915050565b60006132cf826133b0565b91506132da836133b0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561331357613312613490565b5b828202905092915050565b6000613329826133b0565b9150613334836133b0565b92508282101561334757613346613490565b5b828203905092915050565b600061335d82613390565b9050919050565b60008115159050919050565b600061337b82613352565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006133c5826133cc565b9050919050565b60006133d782613390565b9050919050565b60006133e9826133f0565b9050919050565b60006133fb82613390565b9050919050565b600061340d82613382565b9050919050565b60005b83811015613432578082015181840152602081019050613417565b83811115613441576000848401525b50505050565b6000613452826133b0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561348557613484613490565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f63616e6e6f742073657420737461727420626c6f636b20696e2074686520706160008201527f7374000000000000000000000000000000000000000000000000000000000000602082015250565b7f6164643a20696e76616c6964206465706f73697420666565206261736973207060008201527f6f696e7473000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f7361666553616e644d616e5472616e736665723a207472616e7366657220666160008201527f696c656400000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f776520646f6e7420616363657074206465706f73697473206f6620302073697a60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f63616e6e6f74206368616e676520737461727420626c6f636b2069662073616c60008201527f652068617320616c726561647920636f6d6d656e636564000000000000000000602082015250565b7f216e6f6e7a65726f000000000000000000000000000000000000000000000000600082015250565b7f6e6f206368616e67696e6720737461727420626c6f636b20616674657220706f60008201527f6f6c732068617665206265656e20616464656400000000000000000000000000602082015250565b7f7365743a20696e76616c6964206465706f73697420666565206261736973207060008201527f6f696e7473000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f77697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b7f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000600082015250565b7f736574466565416464726573733a20464f5242494444454e0000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61393d81613352565b811461394857600080fd5b50565b61395481613364565b811461395f57600080fd5b50565b61396b81613370565b811461397657600080fd5b50565b61398281613382565b811461398d57600080fd5b50565b613999816133b0565b81146139a457600080fd5b5056fea26469706673582212200d4a9a2d7ca93f1adb961adaec6ef490b5b8f370c5379dd3acef22a6e3e19b7e64736f6c63430008030033000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a75000000000000000000000000fbd37bfd354611b809054cba049aaa7cc5fd364b000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000001160b4c

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

000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a75000000000000000000000000fbd37bfd354611b809054cba049aaa7cc5fd364b000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000001160b4c

-----Decoded View---------------
Arg [0] : _sandMan (address): 0xf9b4defdde04fe18f5ee6456607f8a2ec9ff6a75
Arg [1] : _feeAddress (address): 0xfbd37bfd354611b809054cba049aaa7cc5fd364b
Arg [2] : _sandManPerBlock (uint256): 100000000000000000
Arg [3] : _startBlock (uint256): 18221900

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000f9b4defdde04fe18f5ee6456607f8a2ec9ff6a75
Arg [1] : 000000000000000000000000fbd37bfd354611b809054cba049aaa7cc5fd364b
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 0000000000000000000000000000000000000000000000000000000001160b4c


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.