Contract 0xd3976E92a48821DD1122Ae5e8265b14595aF34d2 2

 
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x70c00693f0eafda8b7d5577e124d9566e22fa84a989246db9f309683c5b2f44bWithdraw203895252021-10-19 18:58:088 hrs 29 mins ago0xa759e88a721fc1dee16009f22662796d18cfd2b1 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00340812
0xbe47d03dda4a27d1faddb7b112aea7a070104ba7a26cd75173df0791c6cdcc84Withdraw203778522021-10-19 11:09:3616 hrs 17 mins ago0xf8afa751e397ea4a1e80986cbfa8a1b6457499e0 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00291207
0xa139326ca682e3037cd867924603b6ac8d621a764112f69e812c215356433332Withdraw203668862021-10-19 3:35:1723 hrs 51 mins ago0x9f617663e9bb99874593665d9b8c7e064823d1a0 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00342615
0x90e2a7e75c82ea9697fef409ac55ba8f79e23b9b44cb6008c44262df2278582dWithdraw203631642021-10-19 0:55:441 day 2 hrs ago0xdf955d75d7eb261178cacaa16925d25376d36c2a IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.0024234
0x8290098d000d4ed11a5ed6b62e7668fe2d8a8337463701dcd0d7c8e461cd3240Withdraw203495012021-10-18 14:47:051 day 12 hrs ago0x2c826e8dae51d5d44096d5280451e1fda8742f28 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00186168
0x7d984933feac8c80c8b0a7893afc2723ecac6c5ae3c7c0a5d5c8a87a430ee28fDeposit203494962021-10-18 14:46:551 day 12 hrs ago0x2c826e8dae51d5d44096d5280451e1fda8742f28 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00251673
0x4df0c0cae3fefc2a32408a65055b8439265fbf2bf9bed5340e089d03bf1beb60Withdraw202445052021-10-15 13:32:024 days 13 hrs ago0xe75ee2bee2236f0d7727f163fb0717ee5bb7d097 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.002853891
0xf4e15ae70d3120f04ad85c54f549ad7984f3aa972c82ad48464bff7b092261adWithdraw202445052021-10-15 13:32:024 days 13 hrs ago0xe75ee2bee2236f0d7727f163fb0717ee5bb7d097 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.003190861
0x4af7dc8482d6d67a236ad5384a799702308426f5e573fe2a59cee98fc71ad941Withdraw202444842021-10-15 13:30:384 days 13 hrs ago0xe75ee2bee2236f0d7727f163fb0717ee5bb7d097 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.002478667
0x2d1c1d7465ae0b9fa8d1945e21257af52798bb2b625bf230c11a6b954321058eDeposit202391592021-10-15 9:48:374 days 17 hrs ago0x9731803bd5ff958a396f9ac748410e7ea5794e28 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.001276623793
0x4e8a3761962f5d7b28a4e67ca7914543785b65c9bcf018859c1051ca3a265b9eWithdraw202391592021-10-15 9:48:374 days 17 hrs ago0x9731803bd5ff958a396f9ac748410e7ea5794e28 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.0025932438
0xdb5c1fb4cd8ea7945e398324beefee6457870aedbe0ca926d87d2f7e6b571bcdWithdraw202263772021-10-14 23:59:025 days 3 hrs ago0xe0fe7916b99e2f1d0fba54431c76b9668dea0af3 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00243834
0x7ae9dfdbe3f9d6f9da58bb0374983eb419cce37e62425d5d4b4cfe108bd06538Deposit202261502021-10-14 23:51:125 days 3 hrs ago0xe0fe7916b99e2f1d0fba54431c76b9668dea0af3 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00251673
0x55acc0382771277fb913bb02572b4968c0428ac1bf64b2c0b1b43d7cea563f9aWithdraw202095492021-10-14 12:31:545 days 14 hrs ago0xf33bf57ff954e67b9d9da3d728f833477d33de61 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.003767181
0x7d7a63c7b159ab18f13ea6009748a8ffb1a9155d920ade6056d04990fddca6c0Withdraw201871562021-10-13 21:33:436 days 5 hrs ago0xb9676bb289e2e74162023c0b49db3049450cb52f IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00252543
0xb7e5cba4d49527124b01f62c428e283afd208288e5f7f337cfeada0ac74f79ccWithdraw201830042021-10-13 18:52:286 days 8 hrs ago0x6869217157ea43645e7905a29b43d1deb44807fb IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.000031912
0xb60c619d135991777790f25ce969aafbbf7614ebf27054d4f23364f500f68622Withdraw201818012021-10-13 18:08:146 days 9 hrs ago0x6869217157ea43645e7905a29b43d1deb44807fb IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00008078
0xf42f4214e02732f4fbfbed0408e8efdac945a45b9defd03c093d75d061147b51Deposit201817452021-10-13 18:04:546 days 9 hrs ago0x6869217157ea43645e7905a29b43d1deb44807fb IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.000504955
0x4eafecd6a18a9e46d3f495b8e1dbb470e8a39f928de27cbcd02a82a3a938339aWithdraw201756512021-10-13 14:06:256 days 13 hrs ago0x1ebfcc7f8258213b7f8fc893205a82107ad900ff IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00186132
0xaca34ba8a65efd66e4c96f95a60935802f319f1de18e79ce768f6b69dc4a7623Deposit201744342021-10-13 13:14:596 days 14 hrs ago0x1ebfcc7f8258213b7f8fc893205a82107ad900ff IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.00302973
0xb67dc04026f27e989e7cbffa316ebdfbfad6cf76c67c52e6b306a033ca90df14Withdraw201726952021-10-13 12:03:236 days 15 hrs ago0xf8c5ddedbb29a272598b698ddff7a94d113d0fa8 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.000343845
0xb3d11c922fe85bcc6f937bd6dad2af09578fe2daf07820f863919ea451c70817Withdraw201696632021-10-13 9:56:086 days 17 hrs ago0xf8c5ddedbb29a272598b698ddff7a94d113d0fa8 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.0005340115
0x23c7ea30273b9fb850c742ab5194c62943818c3ff3c502d1aaba105e08210340Withdraw201664032021-10-13 7:42:466 days 19 hrs ago0x16842c91bacda06829e868e27337d224e8cf318c IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.001031355
0x92b847fb389d6ff04acaf99138019e1485203f083b1acd069d2bef927d0e85bbWithdraw201638312021-10-13 6:03:286 days 21 hrs ago0xd91cf2521767971607d3be89b6e5797ecdc38101 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.003539611
0xaf6099296e9c9cb5f5474949541180988a656c244704e6eb9ce1bc8627165256Deposit201515022021-10-12 22:00:407 days 5 hrs ago0xa759e88a721fc1dee16009f22662796d18cfd2b1 IN  0xd3976e92a48821dd1122ae5e8265b14595af34d20 MATIC0.003775095
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChefV2

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : MasterChefV2.sol
/*
   o__ __o        o__ __o__/_   o           __o__   o__ __o        __o__   o         o    o          o  
 <|     v\      <|    v       <|>            |    <|     v\         |    <|>       <|>  <|\        /|> 
 / \     <\     < >           / \           / \   / \     <\       / \   / \       / \  / \\o    o// \ 
 \o/       \o    |            \o/           \o/   \o/     o/       \o/   \o/       \o/  \o/ v\  /v \o/ 
  |         |>   o__/_         |             |     |__  _<|         |     |         |    |   <\/>   |  
 / \       //    |            / \           < >    |       \       < >   < >       < >  / \        / \ 
 \o/      /     <o>           \o/            |    <o>       \o      |     \         /   \o/        \o/ 
  |      o       |             |             o     |         v\     o      o       o     |          |  
 / \  __/>      / \  _\o__/_  / \ _\o__/_  __|>_  / \         <\  __|>_    <\__ __/>    / \        / \ 
                                                                                                       
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

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

import "./DeliriumToken.sol";

// MasterChef is the master of Delirium. He can make Delirium 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 DELIRIUM 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 DELIRIUMs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accDeliriumPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accDeliriumPerShare` (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. DELIRIUMs to distribute per block.
        uint256 lastRewardBlock;  // Last block number that DELIRIUMs distribution occurs.
        uint256 accDeliriumPerShare;   // Accumulated DELIRIUMs per share, times 1e12. See below.
        uint16 depositFeeBP;      // Deposit fee in basis points
        uint256 lpSupply;
    }

    uint256 public deliriumMaximumSupply = 500 * (10 ** 3) * (10 ** 18); // 500,000 delirium

    // The DELIRIUM TOKEN!
    DeliriumToken public immutable delirium;
    // DELIRIUM tokens created per block.
    uint256 public deliriumPerBlock;
    // 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 DELIRIUM mining starts.
    uint256 public startBlock;
    // The block number when DELIRIUM 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 SetEmissionRate(address indexed caller, uint256 previousAmount, uint256 newAmount);
    event SetFeeAddress(address indexed user, address indexed newAddress);
    event SetStartBlock(uint256 newStartBlock);
    event SetDeliriumMaximumSupply(uint256 newMaxSupply);

    constructor(
        DeliriumToken _delirium,
        address _feeAddress,
        uint256 _deliriumPerBlock,
        uint256 _startBlock
    ) {
        require(_feeAddress != address(0), "!nonzero");

        delirium = _delirium;
        feeAddress = _feeAddress;
        deliriumPerBlock = _deliriumPerBlock;
        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,
        accDeliriumPerShare : 0,
        depositFeeBP : _depositFeeBP,
        lpSupply: 0
        }));

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

    // Update the given pool's DELIRIUM 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 DELIRIUMs on frontend.
    function pendingDelirium(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accDeliriumPerShare = pool.accDeliriumPerShare;
        if (block.number > pool.lastRewardBlock && pool.lpSupply != 0 && totalAllocPoint > 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 deliriumReward = (multiplier * deliriumPerBlock * pool.allocPoint) / totalAllocPoint;
            accDeliriumPerShare = accDeliriumPerShare + ((deliriumReward * 1e12) / pool.lpSupply);
        }

        return ((user.amount * accDeliriumPerShare) /  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 deliriumReward = (multiplier * deliriumPerBlock * pool.allocPoint) / totalAllocPoint;

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

        if (deliriumReward > 0)
            delirium.mint(address(this), deliriumReward);

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

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

    // Deposit LP tokens to MasterChef for DELIRIUM 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.accDeliriumPerShare) / 1e12) - user.rewardDebt;
            if (pending > 0) {
                safeDeliriumTransfer(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.accDeliriumPerShare) / 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.accDeliriumPerShare) / 1e12) - user.rewardDebt;
        if (pending > 0) {
            safeDeliriumTransfer(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.accDeliriumPerShare) / 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 delirium transfer function, just in case if rounding error causes pool to not have enough DELIRIUMs.
    function safeDeliriumTransfer(address _to, uint256 _amount) internal {
        uint256 deliriumBal = delirium.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > deliriumBal) {
            transferSuccess = delirium.transfer(_to, deliriumBal);
        } else {
            transferSuccess = delirium.transfer(_to, _amount);
        }
        require(transferSuccess, "safeDeliriumTransfer: transfer failed");
    }

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

    function setStartBlock(uint256 _newStartBlock) external onlyOwner {
        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 SetStartBlock(startBlock);
    }

    function setEmissionRate(uint256 _deliriumPerBlock) public onlyOwner {
        require(_deliriumPerBlock > 0);

        massUpdatePools();
        deliriumPerBlock = _deliriumPerBlock;
        
        emit SetEmissionRate(msg.sender, deliriumPerBlock, _deliriumPerBlock);
    }
}

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 : DeliriumToken.sol
/*
   o__ __o        o__ __o__/_   o           __o__   o__ __o        __o__   o         o    o          o  
 <|     v\      <|    v       <|>            |    <|     v\         |    <|>       <|>  <|\        /|> 
 / \     <\     < >           / \           / \   / \     <\       / \   / \       / \  / \\o    o// \ 
 \o/       \o    |            \o/           \o/   \o/     o/       \o/   \o/       \o/  \o/ v\  /v \o/ 
  |         |>   o__/_         |             |     |__  _<|         |     |         |    |   <\/>   |  
 / \       //    |            / \           < >    |       \       < >   < >       < >  / \        / \ 
 \o/      /     <o>           \o/            |    <o>       \o      |     \         /   \o/        \o/ 
  |      o       |             |             o     |         v\     o      o       o     |          |  
 / \  __/>      / \  _\o__/_  / \ _\o__/_  __|>_  / \         <\  __|>_    <\__ __/>    / \        / \ 
                                                                                                       
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

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

// DeliriumToken
contract DeliriumToken is ERC20, Ownable {

    constructor() 
        ERC20('DELIRIUM', 'DELIRIUM')
    {}

    /// @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 DeliriumToken","name":"_delirium","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_deliriumPerBlock","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":false,"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"SetDeliriumMaximumSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"SetEmissionRate","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":"SetStartBlock","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":[],"name":"delirium","outputs":[{"internalType":"contract DeliriumToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deliriumMaximumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deliriumPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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":"pendingDelirium","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":"accDeliriumPerShare","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":[{"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":"uint256","name":"_deliriumPerBlock","type":"uint256"}],"name":"setEmissionRate","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"}]

60a06040526969e10de76676d080000060025560006007557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6009553480156200004857600080fd5b5060405162003dc738038062003dc783398181016040528101906200006e9190620002a9565b6200008e620000826200019860201b60201c565b620001a060201b60201c565b60018081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141562000108576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000ff906200033c565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505082600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600381905550806008819055505050505062000438565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000815190506200027581620003ea565b92915050565b6000815190506200028c8162000404565b92915050565b600081519050620002a3816200041e565b92915050565b60008060008060808587031215620002c057600080fd5b6000620002d0878288016200027b565b9450506020620002e38782880162000264565b9350506040620002f68782880162000292565b9250506060620003098782880162000292565b91505092959194509250565b6000620003246008836200035e565b91506200033182620003c1565b602082019050919050565b60006020820190508181036000830152620003578162000315565b9050919050565b600082825260208201905092915050565b60006200037c8262000397565b9050919050565b600062000390826200036f565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f216e6f6e7a65726f000000000000000000000000000000000000000000000000600082015250565b620003f5816200036f565b81146200040157600080fd5b50565b6200040f8162000383565b81146200041b57600080fd5b50565b6200042981620003b7565b81146200043557600080fd5b50565b60805160601c6139386200048f6000396000818161055201528181610a8d01528181610b3e01528181610bec01528181610ca401528181610d3501528181612215015281816122ca015261237e01526139386000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c8063715018a6116100de578063a1bdb15e11610097578063e2bbb15811610071578063e2bbb15814610451578063e95ce2011461046d578063f2fde38b1461048b578063f35e4a6e146104a75761018e565b8063a1bdb15e146103e9578063cbd258b514610405578063d9638422146104355761018e565b8063715018a61461032857806384e82a33146103325780638705fcd41461034e5780638da5cb5b1461036a5780638dbb1e3a1461038857806393f1a40b146103b85761018e565b8063412753581161014b57806351eb05a61161012557806351eb05a6146102c85780635312ea8e146102e4578063630b5ba114610300578063664227b61461030a5761018e565b80634127535814610270578063441a3e701461028e57806348cd4cb1146102aa5761018e565b8063081e3eda146101935780631526fe27146101b157806317caf6f1146101e65780632f55c3ae14610204578063313ffed21461022257806338a2c58114610252575b600080fd5b61019b6104c3565b6040516101a8919061319a565b60405180910390f35b6101cb60048036038101906101c691906129c8565b6104d0565b6040516101dd96959493929190612f37565b60405180910390f35b6101ee61054a565b6040516101fb919061319a565b60405180910390f35b61020c610550565b6040516102199190612f1c565b60405180910390f35b61023c60048036038101906102379190612a1a565b610574565b604051610249919061319a565b60405180910390f35b61025a6106f3565b604051610267919061319a565b60405180910390f35b6102786106f9565b6040516102859190612e4f565b60405180910390f35b6102a860048036038101906102a39190612ab9565b61071f565b005b6102b26109ba565b6040516102bf919061319a565b60405180910390f35b6102e260048036038101906102dd91906129c8565b6109c0565b005b6102fe60048036038101906102f991906129c8565b610e54565b005b61030861103d565b005b610312611070565b60405161031f919061319a565b60405180910390f35b610330611076565b005b61034c60048036038101906103479190612a56565b6110fe565b005b6103686004803603810190610363919061294d565b6114d0565b005b61037261165a565b60405161037f9190612e4f565b60405180910390f35b6103a2600480360381019061039d9190612ab9565b611683565b6040516103af919061319a565b60405180910390f35b6103d260048036038101906103cd9190612a1a565b6116cc565b6040516103e09291906131b5565b60405180910390f35b61040360048036038101906103fe91906129c8565b6116fd565b005b61041f600480360381019061041a919061299f565b6117ea565b60405161042c9190612f01565b60405180910390f35b61044f600480360381019061044a9190612af5565b61180a565b005b61046b60048036038101906104669190612ab9565b611aab565b005b610475611fce565b604051610482919061319a565b60405180910390f35b6104a560048036038101906104a0919061294d565b611fd4565b005b6104c160048036038101906104bc91906129c8565b6120cc565b005b6000600580549050905090565b600581815481106104e057600080fd5b90600052602060002090600602016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900461ffff16908060050154905086565b60075481565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080600584815481106105b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201905060006006600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905082600201544311801561063657506000836005015414155b801561064457506000600754115b156106b9576000610659846002015443611683565b905060006007548560010154600354846106739190613297565b61067d9190613297565b6106879190613266565b9050846005015464e8d4a510008261069f9190613297565b6106a99190613266565b836106b49190613210565b925050505b816001015464e8d4a510008284600001546106d49190613297565b6106de9190613266565b6106e891906132f1565b935050505092915050565b60095481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026001541415610765576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075c9061317a565b60405180910390fd5b60026001819055506000600583815481106107a9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508281600001541015610854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b9061311a565b60405180910390fd5b61085d846109c0565b6000816001015464e8d4a510008460030154846000015461087e9190613297565b6108889190613266565b61089291906132f1565b905060008111156108a8576108a73382612211565b5b6000841115610931578382600001546108c191906132f1565b826000018190555061091833858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166124729092919063ffffffff16565b83836005015461092891906132f1565b83600501819055505b64e8d4a510008360030154836000015461094b9190613297565b6109559190613266565b8260010181905550843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568866040516109a4919061319a565b60405180910390a3505050600180819055505050565b60085481565b6000600582815481106109fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201905080600201544311610a1d5750610e51565b600081600501541480610a34575060008160010154145b15610a485743816002018190555050610e51565b6000610a58826002015443611683565b90506000600754836001015460035484610a729190613297565b610a7c9190613297565b610a869190613266565b90506002547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610af157600080fd5b505afa158015610b05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2991906129f1565b1115610b385760009050610c99565b600254817f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ba257600080fd5b505afa158015610bb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bda91906129f1565b610be49190613210565b1115610c98577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c5057600080fd5b505afa158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8891906129f1565b600254610c9591906132f1565b90505b5b6000811115610d30577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401610cfd929190612ea1565b600060405180830381600087803b158015610d1757600080fd5b505af1158015610d2b573d6000803e3d6000fd5b505050505b6002547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d9957600080fd5b505afa158015610dad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd191906129f1565b10158015610e0057507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600954145b15610e0d57436009819055505b826005015464e8d4a5100082610e239190613297565b610e2d9190613266565b8360030154610e3c9190613210565b83600301819055504383600201819055505050505b50565b60026001541415610e9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e919061317a565b60405180910390fd5b6002600181905550600060058281548110610ede577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201905060006006600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015490506000826000018190555060008260010181905550610fae33828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166124729092919063ffffffff16565b80836005015410610fd657808360050154610fc991906132f1565b8360050181905550610fe1565b600083600501819055505b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059583604051611028919061319a565b60405180910390a35050506001808190555050565b6000600580549050905060005b8181101561106c5761105b816109c0565b806110659061341a565b905061104a565b5050565b60025481565b61107e6124f8565b73ffffffffffffffffffffffffffffffffffffffff1661109c61165a565b73ffffffffffffffffffffffffffffffffffffffff16146110f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e9906130ba565b60405180910390fd5b6110fc6000612500565b565b6111066124f8565b73ffffffffffffffffffffffffffffffffffffffff1661112461165a565b73ffffffffffffffffffffffffffffffffffffffff161461117a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611171906130ba565b60405180910390fd5b8260001515600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461120e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112059061313a565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112479190612e4f565b60206040518083038186803b15801561125f57600080fd5b505afa158015611273573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129791906129f1565b506101918361ffff1611156112e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d890612fda565b60405180910390fd5b81156112f0576112ef61103d565b5b6000600854431161130357600854611305565b435b9050856007546113159190613210565b6007819055506001600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060056040518060c001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001888152602001838152602001600081526020018661ffff1681526020016000815250908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff16021790555060a082015181600501555050600160058054905061148d91906132f1565b7faa6642278d4bbef86d8990c37355d5d4dfe365c194106bdf7a65162268606f078688876040516114c093929190612eca565b60405180910390a2505050505050565b6114d86124f8565b73ffffffffffffffffffffffffffffffffffffffff166114f661165a565b73ffffffffffffffffffffffffffffffffffffffff161461154c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611543906130ba565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b39061307a565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f760405160405180910390a350565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060095483111561169857600090506116c6565b6009548211156116b757826009546116b091906132f1565b90506116c6565b82826116c391906132f1565b90505b92915050565b6006602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b6117056124f8565b73ffffffffffffffffffffffffffffffffffffffff1661172361165a565b73ffffffffffffffffffffffffffffffffffffffff1614611779576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611770906130ba565b60405180910390fd5b6000811161178657600080fd5b61178e61103d565b806003819055503373ffffffffffffffffffffffffffffffffffffffff167f1d6d701a35096c20378cd75889e191ea7805a050284fffba3bc572d9d354644f600354836040516117df9291906131b5565b60405180910390a250565b600a6020528060005260406000206000915054906101000a900460ff1681565b6118126124f8565b73ffffffffffffffffffffffffffffffffffffffff1661183061165a565b73ffffffffffffffffffffffffffffffffffffffff1614611886576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187d906130ba565b60405180910390fd5b6101918261ffff1611156118cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c69061309a565b60405180910390fd5b80156118de576118dd61103d565b5b8260058581548110611919577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016001015460075461193891906132f1565b6119429190613210565b6007819055508260058581548110611983577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016001018190555081600585815481106119d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906006020160040160006101000a81548161ffff021916908361ffff160217905550837f39f0c3d078af018954b4fa56832a05a2b511afaa999b133ea3f1c487c21ed28760058681548110611a5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906006020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168585604051611a9d93929190612eca565b60405180910390a250505050565b60026001541415611af1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae89061317a565b60405180910390fd5b6002600181905550600060058381548110611b35577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611ba2846109c0565b600081600001541115611bfc576000816001015464e8d4a5100084600301548460000154611bd09190613297565b611bda9190613266565b611be491906132f1565b90506000811115611bfa57611bf93382612211565b5b505b6000831115611f465760008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611c649190612e4f565b60206040518083038186803b158015611c7c57600080fd5b505afa158015611c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb491906129f1565b9050611d073330868660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125c4909392919063ffffffff16565b808360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611d659190612e4f565b60206040518083038186803b158015611d7d57600080fd5b505afa158015611d91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db591906129f1565b611dbf91906132f1565b935060008411611e04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dfb9061303a565b60405180910390fd5b60008360040160009054906101000a900461ffff1661ffff161115611f135760006127108460040160009054906101000a900461ffff1661ffff1686611e4a9190613297565b611e549190613266565b9050611ec7600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166124729092919063ffffffff16565b80858460000154611ed89190613210565b611ee291906132f1565b836000018190555080858560050154611efb9190613210565b611f0591906132f1565b846005018190555050611f44565b838260000154611f239190613210565b8260000181905550838360050154611f3b9190613210565b83600501819055505b505b64e8d4a5100082600301548260000154611f609190613297565b611f6a9190613266565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1585604051611fb9919061319a565b60405180910390a35050600180819055505050565b60035481565b611fdc6124f8565b73ffffffffffffffffffffffffffffffffffffffff16611ffa61165a565b73ffffffffffffffffffffffffffffffffffffffff1614612050576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612047906130ba565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b790612ffa565b60405180910390fd5b6120c981612500565b50565b6120d46124f8565b73ffffffffffffffffffffffffffffffffffffffff166120f261165a565b73ffffffffffffffffffffffffffffffffffffffff1614612148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213f906130ba565b60405180910390fd5b600854431061218c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121839061305a565b60405180910390fd5b8043106121ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c590612fba565b60405180910390fd5b806008819055507f63b90b79f11a0f132bcb2c4a4ddd44abda45c1308a83b2919318df7f5f8b7be4600854604051612206919061319a565b60405180910390a150565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161226c9190612e4f565b60206040518083038186803b15801561228457600080fd5b505afa158015612298573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122bc91906129f1565b905060008183111561237c577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b8152600401612323929190612ea1565b602060405180830381600087803b15801561233d57600080fd5b505af1158015612351573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123759190612976565b905061242c565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b81526004016123d7929190612ea1565b602060405180830381600087803b1580156123f157600080fd5b505af1158015612405573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124299190612976565b90505b8061246c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612463906130da565b60405180910390fd5b50505050565b6124f38363a9059cbb60e01b8484604051602401612491929190612ea1565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061264d565b505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612647846323b872dd60e01b8585856040516024016125e593929190612e6a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061264d565b50505050565b60006126af826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166127149092919063ffffffff16565b905060008151111561270f57808060200190518101906126cf9190612976565b61270e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127059061315a565b60405180910390fd5b5b505050565b6060612723848460008561272c565b90509392505050565b606082471015612771576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127689061301a565b60405180910390fd5b61277a85612840565b6127b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b0906130fa565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516127e29190612e38565b60006040518083038185875af1925050503d806000811461281f576040519150601f19603f3d011682016040523d82523d6000602084013e612824565b606091505b5091509150612834828286612853565b92505050949350505050565b600080823b905060008111915050919050565b60608315612863578290506128b3565b6000835111156128765782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128aa9190612f98565b60405180910390fd5b9392505050565b6000813590506128c98161388f565b92915050565b6000813590506128de816138a6565b92915050565b6000815190506128f3816138a6565b92915050565b600081359050612908816138bd565b92915050565b60008135905061291d816138d4565b92915050565b600081359050612932816138eb565b92915050565b600081519050612947816138eb565b92915050565b60006020828403121561295f57600080fd5b600061296d848285016128ba565b91505092915050565b60006020828403121561298857600080fd5b6000612996848285016128e4565b91505092915050565b6000602082840312156129b157600080fd5b60006129bf848285016128f9565b91505092915050565b6000602082840312156129da57600080fd5b60006129e884828501612923565b91505092915050565b600060208284031215612a0357600080fd5b6000612a1184828501612938565b91505092915050565b60008060408385031215612a2d57600080fd5b6000612a3b85828601612923565b9250506020612a4c858286016128ba565b9150509250929050565b60008060008060808587031215612a6c57600080fd5b6000612a7a87828801612923565b9450506020612a8b878288016128f9565b9350506040612a9c8782880161290e565b9250506060612aad878288016128cf565b91505092959194509250565b60008060408385031215612acc57600080fd5b6000612ada85828601612923565b9250506020612aeb85828601612923565b9150509250929050565b60008060008060808587031215612b0b57600080fd5b6000612b1987828801612923565b9450506020612b2a87828801612923565b9350506040612b3b8782880161290e565b9250506060612b4c878288016128cf565b91505092959194509250565b612b6181613325565b82525050565b612b7081613337565b82525050565b6000612b81826131de565b612b8b81856131f4565b9350612b9b8185602086016133e7565b80840191505092915050565b612bb08161338d565b82525050565b612bbf816133b1565b82525050565b6000612bd0826131e9565b612bda81856131ff565b9350612bea8185602086016133e7565b612bf3816134c1565b840191505092915050565b6000612c0b6022836131ff565b9150612c16826134d2565b604082019050919050565b6000612c2e6025836131ff565b9150612c3982613521565b604082019050919050565b6000612c516026836131ff565b9150612c5c82613570565b604082019050919050565b6000612c746026836131ff565b9150612c7f826135bf565b604082019050919050565b6000612c976021836131ff565b9150612ca28261360e565b604082019050919050565b6000612cba6037836131ff565b9150612cc58261365d565b604082019050919050565b6000612cdd6008836131ff565b9150612ce8826136ac565b602082019050919050565b6000612d006025836131ff565b9150612d0b826136d5565b604082019050919050565b6000612d236020836131ff565b9150612d2e82613724565b602082019050919050565b6000612d466025836131ff565b9150612d518261374d565b604082019050919050565b6000612d69601d836131ff565b9150612d748261379c565b602082019050919050565b6000612d8c6012836131ff565b9150612d97826137c5565b602082019050919050565b6000612daf6019836131ff565b9150612dba826137ee565b602082019050919050565b6000612dd2602a836131ff565b9150612ddd82613817565b604082019050919050565b6000612df5601f836131ff565b9150612e0082613866565b602082019050919050565b612e1481613355565b82525050565b612e23816133d5565b82525050565b612e3281613383565b82525050565b6000612e448284612b76565b915081905092915050565b6000602082019050612e646000830184612b58565b92915050565b6000606082019050612e7f6000830186612b58565b612e8c6020830185612b58565b612e996040830184612e29565b949350505050565b6000604082019050612eb66000830185612b58565b612ec36020830184612e29565b9392505050565b6000606082019050612edf6000830186612b58565b612eec6020830185612e29565b612ef96040830184612e1a565b949350505050565b6000602082019050612f166000830184612b67565b92915050565b6000602082019050612f316000830184612ba7565b92915050565b600060c082019050612f4c6000830189612bb6565b612f596020830188612e29565b612f666040830187612e29565b612f736060830186612e29565b612f806080830185612e0b565b612f8d60a0830184612e29565b979650505050505050565b60006020820190508181036000830152612fb28184612bc5565b905092915050565b60006020820190508181036000830152612fd381612bfe565b9050919050565b60006020820190508181036000830152612ff381612c21565b9050919050565b6000602082019050818103600083015261301381612c44565b9050919050565b6000602082019050818103600083015261303381612c67565b9050919050565b6000602082019050818103600083015261305381612c8a565b9050919050565b6000602082019050818103600083015261307381612cad565b9050919050565b6000602082019050818103600083015261309381612cd0565b9050919050565b600060208201905081810360008301526130b381612cf3565b9050919050565b600060208201905081810360008301526130d381612d16565b9050919050565b600060208201905081810360008301526130f381612d39565b9050919050565b6000602082019050818103600083015261311381612d5c565b9050919050565b6000602082019050818103600083015261313381612d7f565b9050919050565b6000602082019050818103600083015261315381612da2565b9050919050565b6000602082019050818103600083015261317381612dc5565b9050919050565b6000602082019050818103600083015261319381612de8565b9050919050565b60006020820190506131af6000830184612e29565b92915050565b60006040820190506131ca6000830185612e29565b6131d76020830184612e29565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600061321b82613383565b915061322683613383565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561325b5761325a613463565b5b828201905092915050565b600061327182613383565b915061327c83613383565b92508261328c5761328b613492565b5b828204905092915050565b60006132a282613383565b91506132ad83613383565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156132e6576132e5613463565b5b828202905092915050565b60006132fc82613383565b915061330783613383565b92508282101561331a57613319613463565b5b828203905092915050565b600061333082613363565b9050919050565b60008115159050919050565b600061334e82613325565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006133988261339f565b9050919050565b60006133aa82613363565b9050919050565b60006133bc826133c3565b9050919050565b60006133ce82613363565b9050919050565b60006133e082613355565b9050919050565b60005b838110156134055780820151818401526020810190506133ea565b83811115613414576000848401525b50505050565b600061342582613383565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561345857613457613463565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f63616e6e6f742073657420737461727420626c6f636b20696e2074686520706160008201527f7374000000000000000000000000000000000000000000000000000000000000602082015250565b7f6164643a20696e76616c6964206465706f73697420666565206261736973207060008201527f6f696e7473000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f776520646f6e7420616363657074206465706f73697473206f6620302073697a60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f63616e6e6f74206368616e676520737461727420626c6f636b2069662073616c60008201527f652068617320616c726561647920636f6d6d656e636564000000000000000000602082015250565b7f216e6f6e7a65726f000000000000000000000000000000000000000000000000600082015250565b7f7365743a20696e76616c6964206465706f73697420666565206261736973207060008201527f6f696e7473000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f7361666544656c697269756d5472616e736665723a207472616e73666572206660008201527f61696c6564000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f77697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b7f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61389881613325565b81146138a357600080fd5b50565b6138af81613337565b81146138ba57600080fd5b50565b6138c681613343565b81146138d157600080fd5b50565b6138dd81613355565b81146138e857600080fd5b50565b6138f481613383565b81146138ff57600080fd5b5056fea26469706673582212207f4a2c793b7069fac759cb60d38a0cc656a13c22d34e0317f7f12af8618635f164736f6c63430008040033000000000000000000000000238779affe6ffd475cb7e84582fca7789f310dc800000000000000000000000085f1f5898ce03b01cd845bab80bef3118d5be4c3000000000000000000000000000000000000000000000000094079cd1a42aaaa0000000000000000000000000000000000000000000000000000000001269884

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

000000000000000000000000238779affe6ffd475cb7e84582fca7789f310dc800000000000000000000000085f1f5898ce03b01cd845bab80bef3118d5be4c3000000000000000000000000000000000000000000000000094079cd1a42aaaa0000000000000000000000000000000000000000000000000000000001269884

-----Decoded View---------------
Arg [0] : _delirium (address): 0x238779affe6ffd475cb7e84582fca7789f310dc8
Arg [1] : _feeAddress (address): 0x85f1f5898ce03b01cd845bab80bef3118d5be4c3
Arg [2] : _deliriumPerBlock (uint256): 666666666666666666
Arg [3] : _startBlock (uint256): 19306628

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000238779affe6ffd475cb7e84582fca7789f310dc8
Arg [1] : 00000000000000000000000085f1f5898ce03b01cd845bab80bef3118d5be4c3
Arg [2] : 000000000000000000000000000000000000000000000000094079cd1a42aaaa
Arg [3] : 0000000000000000000000000000000000000000000000000000000001269884


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.