Contract 0xe0188810350b2e97d862630044aca2b37d789b90

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x903b77cd6369cadcdf2518f43ab9b8574049372c45c5be4b10a7e6762a88c496Withdraw104500452021-08-29 12:04:2527 days 16 hrs ago0xe73b502a3ed0fe8cfe88852b0f381c7813357114 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0xc4c0d2a167f4d5ad91b5ff03481bdb7f51b05e15a3034a2ec668c81262c8c210Lock LP Token102799772021-08-23 12:42:2633 days 16 hrs ago0xe73b502a3ed0fe8cfe88852b0f381c7813357114 IN  0xe0188810350b2e97d862630044aca2b37d789b900.1 BNB0.001558155
0xf6c1aef34cb4b811edf4229e50342a57718b429b1f5d086141781728b6799d4bWithdraw102772982021-08-23 10:26:3033 days 18 hrs ago0xe8979db67d2bc48d86ff2d035248bcc2cf4af017 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0xca044a64a8d063020bd65724e47df855d9fbb6b89700be0dd0b029867a7b9d82Withdraw102585552021-08-22 18:48:5934 days 9 hrs ago0xb7618a491f11ef51ef37485f68e18a26d92c4423 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0x3f8ed59a530e5e6072e5b619ae9a205a8a15794b18278372ca1db0410339fa9fLock LP Token102575512021-08-22 17:58:4034 days 10 hrs ago0xb7618a491f11ef51ef37485f68e18a26d92c4423 IN  0xe0188810350b2e97d862630044aca2b37d789b900.1 BNB0.001558095
0xf647996e6fd8add39c4c75ae964536bb8f2f74659f4fdc279aeb486ddf529d5fWithdraw102480512021-08-22 10:02:4334 days 18 hrs ago0x5cdaa9e473a44f2f5bff76b4b073de3d34a594d1 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026012
0x4c331de2972daff3874c3983179059ae4d9fc1c50ab22944a58c6457b793d890Withdraw102033302021-08-20 20:30:1536 days 8 hrs ago0x503ae3763914b35d4f7947b1e9c9950604ce6d50 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0x05269394971ed38ac8c4a5fc7ec651d4e5dbcaed2a8fc3354bb9181befebf29fLock LP Token101955782021-08-20 13:56:0836 days 14 hrs ago0xe8979db67d2bc48d86ff2d035248bcc2cf4af017 IN  0xe0188810350b2e97d862630044aca2b37d789b900.1 BNB0.001558095
0x7b3d6339909dc926bf83eff83a219b14d58572dd25c43827c60201b02f79160eWithdraw101936242021-08-20 12:17:0336 days 16 hrs ago0x0a0ff4de96adaeef66c3f70cb85c9baa9a102233 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0xe19572d170ef12bda880c5d7d2828c2bb8b1ce1ece7b4c3c05fe5914ae9ea04bLock LP Token101742902021-08-19 20:07:5337 days 8 hrs ago0x503ae3763914b35d4f7947b1e9c9950604ce6d50 IN  0xe0188810350b2e97d862630044aca2b37d789b900.1 BNB0.001558095
0x11279ee65f465787bf1e0003dcafd9854109eaa832b407c0a3fa073867aac3ecWithdraw101666202021-08-19 13:40:5837 days 15 hrs ago0x4efde2f20f8b9a90acfe959d3371fdd5171a3533 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0x5098f1976ed5a2bd902e82094c945cca7c79b899155c8c08ecfe9083499bded7Withdraw101551212021-08-19 3:56:3338 days 50 mins ago0xb232a23796d7e923667c5ba7ae74219fbb634514 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0x27112bdd8434b84c00ff0645cb975ac2bcfe0592356f723fa2945905a5723764Withdraw101491832021-08-18 22:59:2638 days 5 hrs ago0x9df6199392f7f0317931f468d617bcf61b21c53f IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0xa698caed18d640879f9ed89caf6a6bf711e6b2210806a4001be6588f279b46b9Withdraw101395972021-08-18 14:59:0138 days 13 hrs ago0xc2f7bfb61426afa866e663c00f3c21419fbfbf67 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0x49db938ecab7cd2951c8842263d8058a649c8fefb66303da4865b5739212cb02Withdraw101374132021-08-18 13:09:2438 days 15 hrs ago0x511f65fbaef4efbecb850780632a207d9f949050 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0x2d37313cbb054af2fa54a3d3d39694be18510e8be0d67d61349ea07dfc76d4b7Lock LP Token101179042021-08-17 20:53:2139 days 7 hrs ago0x9aa0bc6e3ae67ad878410cce332fd8c680f953c2 IN  0xe0188810350b2e97d862630044aca2b37d789b900.1 BNB0.00144117
0xb2809ed3a7322770f9f7fd1d5d56670bc0b260ee0c4a5deee503a9bf50b0b790Withdraw101178812021-08-17 20:52:1239 days 7 hrs ago0x9aa0bc6e3ae67ad878410cce332fd8c680f953c2 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00022265
0xb7da3a069c68d60256512a7f0338289567dc1a17817c8aa1fd79d598c2996e50Lock LP Token101101772021-08-17 14:25:5839 days 14 hrs ago0xc2f7bfb61426afa866e663c00f3c21419fbfbf67 IN  0xe0188810350b2e97d862630044aca2b37d789b900.1 BNB0.001558095
0x85d03e043e407e2fae99d84eb9d87d58d5b4c7b3b8cd6950024ba11f9abe2501Lock LP Token101101272021-08-17 14:23:2839 days 14 hrs ago0x0a0ff4de96adaeef66c3f70cb85c9baa9a102233 IN  0xe0188810350b2e97d862630044aca2b37d789b900.1 BNB0.001558095
0xbbc33cf02ecfa367135c351a24e6b2883a3b785b13233122eea40669ac9fddeeWithdraw100812782021-08-16 14:17:3840 days 14 hrs ago0xca707d036b20901f8cb400e7d58bfb6dc188e45d IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0x6cdb6961d82b2469e881364c8f2e3fa15d8c7c0dc3523b812f7de73f15ff0e43Lock LP Token100807052021-08-16 13:48:5940 days 14 hrs ago0xb232a23796d7e923667c5ba7ae74219fbb634514 IN  0xe0188810350b2e97d862630044aca2b37d789b900.1 BNB0.001558095
0xad1b4c3de74af5bd8ef25b6dc05f03f8cd74515f2abe272068d408f89a1327cfLock LP Token100642112021-08-15 23:59:1441 days 4 hrs ago0x9df6199392f7f0317931f468d617bcf61b21c53f IN  0xe0188810350b2e97d862630044aca2b37d789b900.1 BNB0.00154594
0x7e019d548db429312f6d774ad23a1ea8416ff2339a7e2d296c90c33d85434292Withdraw100604882021-08-15 20:53:0541 days 7 hrs ago0xc79e7d79600b575bc36264cc6b75e21ca5dedc97 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
0xdc2a48e25936912e9e5c4e912b8f45da4f1a82f5cacc13c62a1487697027b025Lock LP Token100594302021-08-15 20:00:1141 days 8 hrs ago0xc79e7d79600b575bc36264cc6b75e21ca5dedc97 IN  0xe0188810350b2e97d862630044aca2b37d789b900.1 BNB0.001558035
0x65ecbd915b5f730433b018064ce4cdf3cc4785015bead1fdb693ae3cd76935beWithdraw100593352021-08-15 19:55:2641 days 8 hrs ago0x81e4a1b99ad386b6e6987560322dfe9ab3006b04 IN  0xe0188810350b2e97d862630044aca2b37d789b900 BNB0.00026015
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xc4c0d2a167f4d5ad91b5ff03481bdb7f51b05e15a3034a2ec668c81262c8c210102799772021-08-23 12:42:2633 days 16 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x3f8ed59a530e5e6072e5b619ae9a205a8a15794b18278372ca1db0410339fa9f102575512021-08-22 17:58:4034 days 10 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x05269394971ed38ac8c4a5fc7ec651d4e5dbcaed2a8fc3354bb9181befebf29f101955782021-08-20 13:56:0836 days 14 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0xe19572d170ef12bda880c5d7d2828c2bb8b1ce1ece7b4c3c05fe5914ae9ea04b101742902021-08-19 20:07:5337 days 8 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x2d37313cbb054af2fa54a3d3d39694be18510e8be0d67d61349ea07dfc76d4b7101179042021-08-17 20:53:2139 days 7 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0xb7da3a069c68d60256512a7f0338289567dc1a17817c8aa1fd79d598c2996e50101101772021-08-17 14:25:5839 days 14 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x85d03e043e407e2fae99d84eb9d87d58d5b4c7b3b8cd6950024ba11f9abe2501101101272021-08-17 14:23:2839 days 14 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x6cdb6961d82b2469e881364c8f2e3fa15d8c7c0dc3523b812f7de73f15ff0e43100807052021-08-16 13:48:5940 days 14 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0xad1b4c3de74af5bd8ef25b6dc05f03f8cd74515f2abe272068d408f89a1327cf100642112021-08-15 23:59:1441 days 4 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9df6199392f7f0317931f468d617bcf61b21c53f0.1 BNB
0xdc2a48e25936912e9e5c4e912b8f45da4f1a82f5cacc13c62a1487697027b025100594302021-08-15 20:00:1141 days 8 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x0315628bbd046c1888957d2209a7e4a8f3f121b9f4ffa86b2fe85745c0c7843a100546172021-08-15 15:59:2741 days 12 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x768ac4c2a777476796c9130d3b1d857aa6c81ca86b2994074a71831738737829100341332021-08-14 22:54:3642 days 5 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x0d115da03cb65cf0c114a9577ba4964540032213f958343456a03b1f9a898bc7100322412021-08-14 21:20:0042 days 7 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x178dfc6e3d5b7d5ab9d84f40d108efd03aedcf313b59f2c9c2680914a4e38e46100293972021-08-14 18:57:4842 days 9 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x903fa2078f61145d86f02ea8195a12a49ddfde510d775ce9e3f350b800b734da100280152021-08-14 17:48:4242 days 10 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x01cb140d35c94ea03019c56f80e740bf47a81ceb37f7e7f3fde6693047822f37100249342021-08-14 15:11:4342 days 13 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x723c04a0107af940ab5f08ee29e7186b674079a80c22169e8cee718293118510100236802021-08-14 14:07:3742 days 14 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0xffcf43a7747ae305c1f58623cc9a8dfe2642704cfd3d9f28917136532a7dfbdb100067902021-08-13 23:57:1543 days 4 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x5ba42005e4c74a1ae0191eba1cb08c3d7d3e9651e13ed3de90a320611abf20cd99682802021-08-12 15:15:1244 days 13 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x6bff193f5f6511474f6bb82686db358db43e3f4d0eabc595b9998baa14bc995299671302021-08-12 14:15:5444 days 14 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x2287423f52d971d731da96616a15123d44c388f4738bf518f55b7d628591dfd099659322021-08-12 13:14:1344 days 15 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x6558a86c2cfad203d018a923d8e6722d7f68d22643cd24000607907d9eeac25199618712021-08-12 9:47:4644 days 18 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x762c352e814592a1cdb8a2342276079b519d9815993b95787acb4526f17dd70e99437122021-08-11 17:48:2545 days 10 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x9810d797e1a4f254ce60543163f5bc8d9cf9e159e3f355f4f4e4cd3d327c68c799341562021-08-11 9:34:2845 days 19 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
0x93e1963052e80fbb7ee5a2ad329478cc5178a196856b740172be8518181bef1899337652021-08-11 9:14:3345 days 19 hrs ago 0xe0188810350b2e97d862630044aca2b37d789b900x9aa0bc6e3ae67ad878410cce332fd8c680f953c20.1 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PancakeV2Locker

Compiler Version
v0.7.3+commit.9bfce1f6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 12: PancakeV2Locker.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

import "./TransferHelper.sol";
import "./EnumerableSet.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./IPancakeswapV2Router02.sol";
import "./IPancakeswapV2Pair.sol";
import "./IERC20.sol";
import "./IPancakeswapV2Factory.sol";

// Lock for Pancake Swap V2.
contract PancakeV2Locker is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using EnumerableSet for EnumerableSet.AddressSet;

    IPancakeswapV2Factory public pancakeswapFactory;

    struct UserInfo {
        // List of locked tokens by the user.
        EnumerableSet.AddressSet lockedTokens;
        // ERC20/BEP20 token address to lockId.
        mapping(address => uint256[]) locksForToken;
    }

    struct TokenLock {
        // Locked since, timestamp in seconds.
        uint256 lockDate;
        // Amount of tokens locked.
        uint256 amount;
        // Initial amount of tokens locked.
        uint256 initialAmount;
        // Date from which tokens can be withdrawn.
        uint256 unlockDate;
        // ID of the lock for a pancake pair.
        uint256 lockID;
        // Owner of the lock.
        address owner;
    }

    mapping(address => UserInfo) private users;
    EnumerableSet.AddressSet private lockedTokens;
    // PCS V2 Pair to all its existing locks.
    mapping(address => TokenLock[]) public tokenLocks;

    uint256 private _bnbFee;
    EnumerableSet.AddressSet private feeWhitelist;
    address payable devaddr;

    event onDeposit(address lpToken, address user, uint256 amount, uint256 lockDate, uint256 unlockDate);
    event onWithdraw(address lpToken, uint256 amount);

    constructor() {
        devaddr = payable(msg.sender);
        IPancakeswapV2Router02 _pcsV2Router = IPancakeswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E);
        pancakeswapFactory = IPancakeswapV2Factory(_pcsV2Router.factory());
        _bnbFee = 100000000000000000; // 0.1 BNB
    }
  
    function setLockerOwner(address payable _devaddr) public onlyOwner {
        devaddr = _devaddr;
    }

    function setFee(uint256 bnbFee) public onlyOwner {
        _bnbFee = bnbFee;
    }

    /**
     * @dev Witelisted accounts do not pay fees on locking.
     */
    function whitelistFeeAccount(address _user, bool _add) public onlyOwner {
        if (_add) {
            feeWhitelist.add(_user);
        } else {
            feeWhitelist.remove(_user);
        }
    }

    /**
     * @dev Creates a new lock.
     * @param _lpToken the pcs v2 token address.
     * @param _amount amount of LP tokens to lock.
     * @param _unlockDate the unix timestamp in seconds until unlock.
     * @param _withdrawer the user who can withdraw liquidity once the lock expires.
     */
    function lockLPToken(address _lpToken, uint256 _amount, uint256 _unlockDate, address payable _withdrawer) external payable nonReentrant {
        require(_unlockDate < 10000000000, "Timestamp invalid. Remember to use seconds rather than ms.");
        require(_amount > 0, "The amount to lock must be bigger than 0.");

        // Make sure the pair exists before proceeding.
        IPancakeswapV2Pair lpair = IPancakeswapV2Pair(address(_lpToken));
        address factoryPairAddress = pancakeswapFactory.getPair(lpair.token0(), lpair.token1());
        require(factoryPairAddress == address(_lpToken), "This is not a Pancakeswap V2 pair.");

        TransferHelper.safeTransferFrom(_lpToken, address(msg.sender), address(this), _amount);

        // flatrate fees
        if (!feeWhitelist.contains(msg.sender)) {
            require(msg.value == _bnbFee, "Invalid fee quantity sent.");
            devaddr.transfer(_bnbFee);
        } else if (msg.value > 0) {
            // Refund BNB to whitelisted members that sent any BNB anyway.
            payable(msg.sender).transfer(msg.value);
        }

        // Create the initial token lock.
        TokenLock memory tokenLock;
        tokenLock.lockDate = block.timestamp;
        tokenLock.amount = _amount;
        tokenLock.initialAmount = _amount;
        tokenLock.unlockDate = _unlockDate;
        tokenLock.lockID = tokenLocks[_lpToken].length;
        tokenLock.owner = _withdrawer;

        // Record the lock for the Pancake Swap V2 pair.
        tokenLocks[_lpToken].push(tokenLock);
        lockedTokens.add(_lpToken);

        // Record the lock for the user.
        UserInfo storage user = users[_withdrawer];
        user.lockedTokens.add(_lpToken);
        uint256[] storage user_locks = user.locksForToken[_lpToken];
        user_locks.push(tokenLock.lockID);

        emit onDeposit(_lpToken, msg.sender, tokenLock.amount, tokenLock.lockDate, tokenLock.unlockDate);
    }

    /**
     * @dev Withdraws a lock.
     */
    function withdraw(address _lpToken, uint256 _index, uint256 _lockID) external nonReentrant {
        uint256 lockID = users[msg.sender].locksForToken[_lpToken][_index];
        TokenLock storage userLock = tokenLocks[_lpToken][lockID];
        require(lockID == _lockID && userLock.owner == msg.sender, "Wrong lock!");
        require(userLock.unlockDate < block.timestamp, "This lock is still in place.");
        uint256 _amount = userLock.amount;
        userLock.amount = 0;

        // Clean up storage.
        uint256[] storage userLocks = users[msg.sender].locksForToken[_lpToken];
        userLocks[_index] = userLocks[userLocks.length-1];
        userLocks.pop();
        if (userLocks.length == 0) {
            users[msg.sender].lockedTokens.remove(_lpToken);
        }
        
        TransferHelper.safeTransfer(_lpToken, msg.sender, _amount);
        emit onWithdraw(_lpToken, _amount);
    }
  
    function getNumLocksForToken(address _lpToken) external view returns (uint256) {
        return tokenLocks[_lpToken].length;
    }
  
    function getNumLockedTokens() external view returns (uint256) {
        return lockedTokens.length();
    }
    
    function getLockedTokenAtIndex(uint256 _index) external view returns (address) {
        return lockedTokens.at(_index);
    }

    function getUserNumLockedTokens(address _user) external view returns (uint256) {
        UserInfo storage user = users[_user];
        return user.lockedTokens.length();
    }

    function getUserLockedTokenAtIndex(address _user, uint256 _index) external view returns (address) {
        UserInfo storage user = users[_user];
        return user.lockedTokens.at(_index);
    }
    
    function getUserNumLocksForToken(address _user, address _lpToken) external view returns (uint256) {
        UserInfo storage user = users[_user];
        return user.locksForToken[_lpToken].length;
    }
    
    function getUserLockForTokenAtIndex(address _user, address _lpToken, uint256 _index) external view 
    returns (uint256, uint256, uint256, uint256, uint256, address) {
        uint256 lockID = users[_user].locksForToken[_lpToken][_index];
        TokenLock storage tokenLock = tokenLocks[_lpToken][lockID];
        return (tokenLock.lockDate, tokenLock.amount, tokenLock.initialAmount, tokenLock.unlockDate, tokenLock.lockID, tokenLock.owner);
    }

    function getWhitelistedUsersLength() external view returns (uint256) {
        return feeWhitelist.length();
    }

    function getWhitelistedUserAtIndex(uint256 _index) external view returns (address) {
        return feeWhitelist.at(_index);
    }

    function getUserWhitelistStatus(address _user) external view returns (bool) {
        return feeWhitelist.contains(_user);
    }
}

File 2 of 12: Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.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 GSN 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 returns (address payable) {
    return payable(msg.sender);
  }

  function _msgData() internal view returns (bytes memory) {
    this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
    return msg.data;
  }
}

File 3 of 12: EnumerableSet.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 4 of 12: IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.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);


    /**
     * TODO: Add comment
     */
    function burn(uint256 burnQuantity) 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 5 of 12: IPancakeswapV2Factory.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

interface IPancakeswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 6 of 12: IPancakeswapV2Pair.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

interface IPancakeswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 7 of 12: IPancakeswapV2Router01.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

interface IPancakeswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 8 of 12: IPancakeswapV2Router02.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

import "./IPancakeswapV2Router01.sol";

interface IPancakeswapV2Router02 is IPancakeswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 9 of 12: Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

import "./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 () {
    address msgSender = _msgSender();
    _owner = msgSender;
    emit OwnershipTransferred(address(0), msgSender);
  }

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() public view 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 onlyOwner {
    emit OwnershipTransferred(_owner, address(0));
    _owner = 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 onlyOwner {
    _transferOwnership(newOwner);
  }

  /**
   * @dev Transfers ownership of the contract to a new account (`newOwner`).
   */
  function _transferOwnership(address newOwner) internal {
    require(newOwner != address(0), "Ownable: new owner is the zero address");
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}

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

// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuard.sol
// Subject to the MIT license.

pragma solidity >=0.7.0 <0.9.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 11 of 12: SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

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

    return c;
  }

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

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

    return c;
  }

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

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

    return c;
  }

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

  /**
   * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
   * division by zero. The result is rounded towards zero.
   *
   * Counterpart to Solidity's `/` operator. Note: this function uses a
   * `revert` opcode (which leaves remaining gas untouched) while Solidity
   * uses an invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
    // Solidity only automatically asserts when dividing by 0
    require(b > 0, errorMessage);
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

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

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

File 12 of 12: TransferHelper.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.7.0 <0.9.0;

library TransferHelper {
    function safeApprove(address token, address to, uint value) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
    }

    function safeTransfer(address token, address to, uint value) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
    }

    function safeTransferFrom(address token, address from, address to, uint value) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }
    
    // Sends BNB or an erc20/bep20 token
    function safeTransferBaseToken(address token, address payable to, uint value, bool isERC20) internal {
        if (!isERC20) {
            to.transfer(value);
        } else {
            (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
            require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlockDate","type":"uint256"}],"name":"onDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"onWithdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getLockedTokenAtIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumLockedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lpToken","type":"address"}],"name":"getNumLocksForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getUserLockForTokenAtIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getUserLockedTokenAtIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserNumLockedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"_lpToken","type":"address"}],"name":"getUserNumLocksForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserWhitelistStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getWhitelistedUserAtIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedUsersLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_unlockDate","type":"uint256"},{"internalType":"address payable","name":"_withdrawer","type":"address"}],"name":"lockLPToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancakeswapFactory","outputs":[{"internalType":"contract IPancakeswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bnbFee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_devaddr","type":"address"}],"name":"setLockerOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenLocks","outputs":[{"internalType":"uint256","name":"lockDate","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"initialAmount","type":"uint256"},{"internalType":"uint256","name":"unlockDate","type":"uint256"},{"internalType":"uint256","name":"lockID","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_add","type":"bool"}],"name":"whitelistFeeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"uint256","name":"_lockID","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600061001b610126565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600a80546001600160a01b031916331790556040805163c45a015560e01b815290517310ed43c718714eb63d5aa57b78b54704e256024e91829163c45a015591600480820192602092909190829003018186803b1580156100c957600080fd5b505afa1580156100dd573d6000803e3d6000fd5b505050506040513d60208110156100f357600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555067016345785d8a000060075561012a565b3390565b611834806101396000396000f3fe60806040526004361061011f5760003560e01c8063903df806116100a0578063b9863a4411610064578063b9863a44146103c2578063ccebfa3f14610409578063d4ff493f1461047e578063df41bc5f146104c1578063f2fde38b146104fb5761011f565b8063903df806146102a157806391ff1eb1146102da578063a396981514610315578063a69d9c4f14610348578063b5c5f672146103835761011f565b806369fe0e2d116100e757806369fe0e2d1461020e578063715018a614610238578063783451e81461024d5780638c301df8146102625780638da5cb5b1461028c5761011f565b806314dd79a3146101245780631f2a1d2f1461016a5780632e62b13e146101af57806349cb6feb146101c45780634bb18e3f146101f9575b600080fd5b34801561013057600080fd5b5061014e6004803603602081101561014757600080fd5b503561052e565b604080516001600160a01b039092168252519081900360200190f35b34801561017657600080fd5b5061019d6004803603602081101561018d57600080fd5b50356001600160a01b0316610541565b60408051918252519081900360200190f35b3480156101bb57600080fd5b5061014e61055c565b3480156101d057600080fd5b506101f7600480360360208110156101e757600080fd5b50356001600160a01b031661056b565b005b34801561020557600080fd5b5061019d6105e5565b34801561021a57600080fd5b506101f76004803603602081101561023157600080fd5b50356105f6565b34801561024457600080fd5b506101f7610653565b34801561025957600080fd5b5061019d6106f5565b34801561026e57600080fd5b5061014e6004803603602081101561028557600080fd5b5035610701565b34801561029857600080fd5b5061014e61070e565b3480156102ad57600080fd5b5061014e600480360360408110156102c457600080fd5b506001600160a01b03813516906020013561071d565b3480156102e657600080fd5b506101f7600480360360408110156102fd57600080fd5b506001600160a01b0381351690602001351515610747565b34801561032157600080fd5b5061019d6004803603602081101561033857600080fd5b50356001600160a01b03166107c7565b34801561035457600080fd5b5061019d6004803603604081101561036b57600080fd5b506001600160a01b03813581169160200135166107ef565b34801561038f57600080fd5b506101f7600480360360608110156103a657600080fd5b506001600160a01b03813516906020810135906040013561081e565b3480156103ce57600080fd5b506103f5600480360360208110156103e557600080fd5b50356001600160a01b0316610ab6565b604080519115158252519081900360200190f35b34801561041557600080fd5b506104426004803603604081101561042c57600080fd5b506001600160a01b038135169060200135610ac3565b60408051968752602087019590955285850193909352606085019190915260808401526001600160a01b031660a0830152519081900360c00190f35b34801561048a57600080fd5b50610442600480360360608110156104a157600080fd5b506001600160a01b03813581169160208101359091169060400135610b1d565b6101f7600480360360808110156104d757600080fd5b506001600160a01b0381358116916020810135916040820135916060013516610c0f565b34801561050757600080fd5b506101f76004803603602081101561051e57600080fd5b50356001600160a01b03166110f9565b600061053b60048361115d565b92915050565b6001600160a01b031660009081526006602052604090205490565b6002546001600160a01b031681565b610573611169565b6000546001600160a01b039081169116146105c3576040805162461bcd60e51b815260206004820181905260248201526000805160206117bb833981519152604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006105f1600861116d565b905090565b6105fe611169565b6000546001600160a01b0390811691161461064e576040805162461bcd60e51b815260206004820181905260248201526000805160206117bb833981519152604482015290519081900360640190fd5b600755565b61065b611169565b6000546001600160a01b039081169116146106ab576040805162461bcd60e51b815260206004820181905260248201526000805160206117bb833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006105f1600461116d565b600061053b60088361115d565b6000546001600160a01b031690565b6001600160a01b038216600090815260036020526040812061073f818461115d565b949350505050565b61074f611169565b6000546001600160a01b0390811691161461079f576040805162461bcd60e51b815260206004820181905260248201526000805160206117bb833981519152604482015290519081900360640190fd5b80156107b6576107b0600883611178565b506107c3565b6107c160088361118d565b505b5050565b6001600160a01b03811660009081526003602052604081206107e88161116d565b9392505050565b6001600160a01b0391821660009081526003602090815260408083209390941682526002909201909152205490565b60026001541415610876576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260018190553360009081526003602090815260408083206001600160a01b038816845290930190529081208054849081106108af57fe5b90600052602060002001549050600060066000866001600160a01b03166001600160a01b0316815260200190815260200160002082815481106108ee57fe5b906000526020600020906006020190508282148015610919575060058101546001600160a01b031633145b610958576040805162461bcd60e51b815260206004820152600b60248201526a57726f6e67206c6f636b2160a81b604482015290519081900360640190fd5b428160030154106109b0576040805162461bcd60e51b815260206004820152601c60248201527f54686973206c6f636b206973207374696c6c20696e20706c6163652e00000000604482015290519081900360640190fd5b6001810180546000918290553382526003602090815260408084206001600160a01b038a1685526002019091529091208054819060001981019081106109f257fe5b9060005260206000200154818781548110610a0957fe5b906000526020600020018190555080805480610a2157fe5b6000828152602081208201600019908101919091550190558054610a5a57336000908152600360205260409020610a58908861118d565b505b610a658733846111a2565b604080516001600160a01b03891681526020810184905281517fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc929181900390910190a15050600180555050505050565b600061053b60088361130c565b60066020528160005260406000208181548110610adc57fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501549396509194509290916001600160a01b031686565b6000806000806000806000600360008b6001600160a01b03166001600160a01b0316815260200190815260200160002060020160008a6001600160a01b03166001600160a01b031681526020019081526020016000208881548110610b7e57fe5b906000526020600020015490506000600660008b6001600160a01b03166001600160a01b031681526020019081526020016000208281548110610bbd57fe5b6000918252602090912060069091020180546001820154600283015460038401546004850154600590950154939c50919a50985096509094506001600160a01b03169250505093975093979195509350565b60026001541415610c67576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556402540be4008210610caf5760405162461bcd60e51b815260040180806020018281038252603a815260200180611781603a913960400191505060405180910390fd5b60008311610cee5760405162461bcd60e51b81526004018080602001828103825260298152602001806117586029913960400191505060405180910390fd5b60025460408051630dfe168160e01b8152905186926000926001600160a01b039182169263e6a4390592861691630dfe1681916004808301926020929190829003018186803b158015610d4057600080fd5b505afa158015610d54573d6000803e3d6000fd5b505050506040513d6020811015610d6a57600080fd5b50516040805163d21220a760e01b815290516001600160a01b0387169163d21220a7916004808301926020929190829003018186803b158015610dac57600080fd5b505afa158015610dc0573d6000803e3d6000fd5b505050506040513d6020811015610dd657600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926020929190829003018186803b158015610e2657600080fd5b505afa158015610e3a573d6000803e3d6000fd5b505050506040513d6020811015610e5057600080fd5b505190506001600160a01b0380821690871614610e9e5760405162461bcd60e51b81526004018080602001828103825260228152602001806117366022913960400191505060405180910390fd5b610eaa86333088611321565b610eb560083361130c565b610f51576007543414610f0f576040805162461bcd60e51b815260206004820152601a60248201527f496e76616c696420666565207175616e746974792073656e742e000000000000604482015290519081900360640190fd5b600a546007546040516001600160a01b039092169181156108fc0291906000818181858888f19350505050158015610f4b573d6000803e3d6000fd5b50610f85565b3415610f855760405133903480156108fc02916000818181858888f19350505050158015610f83573d6000803e3d6000fd5b505b610f8d6116ae565b42815260208082018781526040808401898152606085018981526001600160a01b038c811660009081526006808852948120805460808a018181528d851660a08c01908152888b5260018084018555938552999093208a51919097029096019586559551958501959095559151600284015551600383015591516004808301919091559251600590910180546001600160a01b031916919092161790556110349088611178565b506001600160a01b03841660009081526003602052604090206110578189611178565b506001600160a01b03881660008181526002830160209081526040808320608080880151825460018101845583875295859020909501949094558683015187516060808a0151855198895233968901969096528785019290925290860152928401919091525190917f830357565da6ecfc26d8d9f69df488ed6f70361af9a07e570544aeb5c5e765e5919081900360a00190a150506001805550505050505050565b611101611169565b6000546001600160a01b03908116911614611151576040805162461bcd60e51b815260206004820181905260248201526000805160206117bb833981519152604482015290519081900360640190fd5b61115a8161147e565b50565b60006107e8838361151e565b3390565b600061053b82611582565b60006107e8836001600160a01b038416611586565b60006107e8836001600160a01b0384166115d0565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b6020831061121f5780518252601f199092019160209182019101611200565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611281576040519150601f19603f3d011682016040523d82523d6000602084013e611286565b606091505b50915091508180156112b45750805115806112b457508080602001905160208110156112b157600080fd5b50515b611305576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b60006107e8836001600160a01b038416611696565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106113a65780518252601f199092019160209182019101611387565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611408576040519150601f19603f3d011682016040523d82523d6000602084013e61140d565b606091505b509150915081801561143b57508051158061143b575080806020019051602081101561143857600080fd5b50515b6114765760405162461bcd60e51b81526004018080602001828103825260248152602001806117db6024913960400191505060405180910390fd5b505050505050565b6001600160a01b0381166114c35760405162461bcd60e51b81526004018080602001828103825260268152602001806117106026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b815460009082106115605760405162461bcd60e51b81526004018080602001828103825260228152602001806116ee6022913960400191505060405180910390fd5b82600001828154811061156f57fe5b9060005260206000200154905092915050565b5490565b60006115928383611696565b6115c85750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561053b565b50600061053b565b6000818152600183016020526040812054801561168c578354600019808301919081019060009087908390811061160357fe5b906000526020600020015490508087600001848154811061162057fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061165057fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061053b565b600091505061053b565b60009081526001919091016020526040902054151590565b6040518060c00160405280600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b03168152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737354686973206973206e6f7420612050616e63616b657377617020563220706169722e54686520616d6f756e7420746f206c6f636b206d75737420626520626967676572207468616e20302e54696d657374616d7020696e76616c69642e2052656d656d62657220746f20757365207365636f6e647320726174686572207468616e206d732e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544a2646970667358221220d732416ca41183d466d137357f840076a64b325f08059fad9684adab26b5dfb364736f6c63430007030033

Deployed ByteCode Sourcemap

372:7169:8:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5967:126;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5967:126:8;;:::i;:::-;;;;-1:-1:-1;;;;;5967:126:8;;;;;;;;;;;;;;5712:130;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5712:130:8;-1:-1:-1;;;;;5712:130:8;;:::i;:::-;;;;;;;;;;;;;;;;518:47;;;;;;;;;;;;;:::i;2016:102::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2016:102:8;-1:-1:-1;;;;;2016:102:8;;:::i;:::-;;7155:114;;;;;;;;;;;;;:::i;2124:82::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2124:82:8;;:::i;1618:127:7:-;;;;;;;;;;;;;:::i;5850:107:8:-;;;;;;;;;;;;;:::i;7275:130::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7275:130:8;;:::i;1035:71:7:-;;;;;;;;;;;;;:::i;6280:196:8:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6280:196:8;;;;;;;;:::i;2288:203::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2288:203:8;;;;;;;;;;:::i;6099:175::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6099:175:8;-1:-1:-1;;;;;6099:175:8;;:::i;6486:203::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6486:203:8;;;;;;;;;;:::i;4796:908::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4796:908:8;;;;;;;;;;;;;:::i;7411:128::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7411:128:8;-1:-1:-1;;;;;7411:128:8;;:::i;:::-;;;;;;;;;;;;;;;;;;1381:49;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1381:49:8;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1381:49:8;;;;;;;;;;;;;;6699:450;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6699:450:8;;;;;;;;;;;;;;;;;:::i;2800:1944::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2800:1944:8;;;;;;;;;;;;;;;;;;;;:::i;1884:101:7:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1884:101:7;-1:-1:-1;;;;;1884:101:7;;:::i;5967:126:8:-;6037:7;6063:23;:12;6079:6;6063:15;:23::i;:::-;6056:30;5967:126;-1:-1:-1;;5967:126:8:o;5712:130::-;-1:-1:-1;;;;;5808:20:8;5782:7;5808:20;;;:10;:20;;;;;:27;;5712:130::o;518:47::-;;;-1:-1:-1;;;;;518:47:8;;:::o;2016:102::-;1231:12:7;:10;:12::i;:::-;1221:6;;-1:-1:-1;;;;;1221:6:7;;;:22;;;1213:67;;;;;-1:-1:-1;;;1213:67:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1213:67:7;;;;;;;;;;;;;;;2093:7:8::1;:18:::0;;-1:-1:-1;;;;;;2093:18:8::1;-1:-1:-1::0;;;;;2093:18:8;;;::::1;::::0;;;::::1;::::0;;2016:102::o;7155:114::-;7215:7;7241:21;:12;:19;:21::i;:::-;7234:28;;7155:114;:::o;2124:82::-;1231:12:7;:10;:12::i;:::-;1221:6;;-1:-1:-1;;;;;1221:6:7;;;:22;;;1213:67;;;;;-1:-1:-1;;;1213:67:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1213:67:7;;;;;;;;;;;;;;;2183:7:8::1;:16:::0;2124:82::o;1618:127:7:-;1231:12;:10;:12::i;:::-;1221:6;;-1:-1:-1;;;;;1221:6:7;;;:22;;;1213:67;;;;;-1:-1:-1;;;1213:67:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1213:67:7;;;;;;;;;;;;;;;1712:1:::1;1696:6:::0;;1675:40:::1;::::0;-1:-1:-1;;;;;1696:6:7;;::::1;::::0;1675:40:::1;::::0;1712:1;;1675:40:::1;1738:1;1721:19:::0;;-1:-1:-1;;;;;;1721:19:7::1;::::0;;1618:127::o;5850:107:8:-;5903:7;5929:21;:12;:19;:21::i;7275:130::-;7349:7;7375:23;:12;7391:6;7375:15;:23::i;1035:71:7:-;1073:7;1095:6;-1:-1:-1;;;;;1095:6:7;1035:71;:::o;6280:196:8:-;-1:-1:-1;;;;;6412:12:8;;6369:7;6412:12;;;:5;:12;;;;;6441:28;6412:12;6462:6;6441:20;:28::i;:::-;6434:35;6280:196;-1:-1:-1;;;;6280:196:8:o;2288:203::-;1231:12:7;:10;:12::i;:::-;1221:6;;-1:-1:-1;;;;;1221:6:7;;;:22;;;1213:67;;;;;-1:-1:-1;;;1213:67:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1213:67:7;;;;;;;;;;;;;;;2374:4:8::1;2370:115;;;2394:23;:12;2411:5:::0;2394:16:::1;:23::i;:::-;;2370:115;;;2448:26;:12;2468:5:::0;2448:19:::1;:26::i;:::-;;2370:115;2288:203:::0;;:::o;6099:175::-;-1:-1:-1;;;;;6212:12:8;;6169:7;6212:12;;;:5;:12;;;;;6241:26;6212:12;6241:24;:26::i;:::-;6234:33;6099:175;-1:-1:-1;;;6099:175:8:o;6486:203::-;-1:-1:-1;;;;;6618:12:8;;;6575:7;6618:12;;;:5;:12;;;;;;;;6647:28;;;;;;:18;;;;:28;;;;:35;;6486:203::o;4796:908::-;1831:1:9;2411:7;;:19;;2403:63;;;;;-1:-1:-1;;;2403:63:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1831:1;2541:7;:18;;;4920:10:8::1;4897:14;4914:17:::0;;;:5:::1;:17;::::0;;;;;;;-1:-1:-1;;;;;4914:41:8;::::1;::::0;;:31;;::::1;:41:::0;;;;;:49;;4956:6;;4914:49;::::1;;;;;;;;;;;;;4897:66;;4973:26;5002:10;:20;5013:8;-1:-1:-1::0;;;;;5002:20:8::1;-1:-1:-1::0;;;;;5002:20:8::1;;;;;;;;;;;;5023:6;5002:28;;;;;;;;;;;;;;;;;;4973:57;;5058:7;5048:6;:17;:49;;;;-1:-1:-1::0;5069:14:8::1;::::0;::::1;::::0;-1:-1:-1;;;;;5069:14:8::1;5087:10;5069:28;5048:49;5040:73;;;::::0;;-1:-1:-1;;;5040:73:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;5040:73:8;;;;;;;;;;;;;::::1;;5153:15;5131:8;:19;;;:37;5123:78;;;::::0;;-1:-1:-1;;;5123:78:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;5229:15;::::0;::::1;::::0;;5211::::1;5254:19:::0;;;;5349:10:::1;5343:17:::0;;:5:::1;:17;::::0;;;;;;;-1:-1:-1;;;;;5343:41:8;::::1;::::0;;:31:::1;;:41:::0;;;;;;5424:16;;5343:41;;-1:-1:-1;;5424:18:8;;;5414:29;::::1;;;;;;;;;;;;;5394:9;5404:6;5394:17;;;;;;;;;;;;;;;:49;;;;5453:9;:15;;;;;;;;::::0;;;::::1;::::0;;;;-1:-1:-1;;5453:15:8;;;;;;;;;;5482:16;;5478:99:::1;;5525:10;5519:17;::::0;;;:5:::1;:17;::::0;;;;:47:::1;::::0;5557:8;5519:37:::1;:47::i;:::-;;5478:99;5595:58;5623:8;5633:10;5645:7;5595:27;:58::i;:::-;5668:29;::::0;;-1:-1:-1;;;;;5668:29:8;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;-1:-1:-1::0;;1788:1:9;2714:22;;-1:-1:-1;;;;;4796:908:8:o;7411:128::-;7481:4;7504:28;:12;7526:5;7504:21;:28::i;1381:49::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1381:49:8;;-1:-1:-1;1381:49:8;;;-1:-1:-1;;;;;1381:49:8;;:::o;6699:450::-;6812:7;6821;6830;6839;6848;6857;6876:14;6893:5;:12;6899:5;-1:-1:-1;;;;;6893:12:8;-1:-1:-1;;;;;6893:12:8;;;;;;;;;;;;:26;;:36;6920:8;-1:-1:-1;;;;;6893:36:8;-1:-1:-1;;;;;6893:36:8;;;;;;;;;;;;6930:6;6893:44;;;;;;;;;;;;;;;;6876:61;;6947:27;6977:10;:20;6988:8;-1:-1:-1;;;;;6977:20:8;-1:-1:-1;;;;;6977:20:8;;;;;;;;;;;;6998:6;6977:28;;;;;;;;;;;;;;;;;;;;;7023:18;;7043:16;;;;7061:23;;;;7086:20;;;;7108:16;;;;7126:15;;;;;7023:18;;-1:-1:-1;7043:16:8;;-1:-1:-1;7061:23:8;-1:-1:-1;7086:20:8;-1:-1:-1;7108:16:8;;-1:-1:-1;;;;;;7126:15:8;;-1:-1:-1;;;6699:450:8;;;;;;;;;;:::o;2800:1944::-;1831:1:9;2411:7;;:19;;2403:63;;;;;-1:-1:-1;;;2403:63:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1831:1;2541:7;:18;2968:11:8::1;2954:25:::0;::::1;2946:96;;;;-1:-1:-1::0;;;2946:96:8::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3070:1;3060:7;:11;3052:65;;;;-1:-1:-1::0;;;3052:65:8::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3287:18;::::0;3314:14:::1;::::0;;-1:-1:-1;;;3314:14:8;;;;3238:8;;3184:24:::1;::::0;-1:-1:-1;;;;;3287:18:8;;::::1;::::0;:26:::1;::::0;3314:12;::::1;::::0;::::1;::::0;:14:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;:12;:14;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;3314:14:8;3330::::1;::::0;;-1:-1:-1;;;3330:14:8;;;;-1:-1:-1;;;;;3330:12:8;::::1;::::0;::::1;::::0;:14:::1;::::0;;::::1;::::0;3314::::1;::::0;3330;;;;;;;:12;:14;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;3330:14:8;3287:58:::1;::::0;;-1:-1:-1;;;;;;3287:58:8::1;::::0;;;;;;-1:-1:-1;;;;;3287:58:8;;::::1;;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;3330:14:::1;::::0;3287:58;;;;;;;;;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;3287:58:8;;-1:-1:-1;;;;;;3363:39:8;;::::1;::::0;;::::1;;3355:86;;;;-1:-1:-1::0;;;3355:86:8::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3452;3484:8;3502:10;3523:4;3530:7;3452:31;:86::i;:::-;3579:33;:12;3601:10;3579:21;:33::i;:::-;3574:327;;3649:7;;3636:9;:20;3628:59;;;::::0;;-1:-1:-1;;;3628:59:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;3701:7;::::0;3718::::1;::::0;3701:25:::1;::::0;-1:-1:-1;;;;;3701:7:8;;::::1;::::0;:25;::::1;;;::::0;3718:7;3701::::1;:25:::0;:7;:25;3718:7;3701;:25;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;3574:327;;;3747:9;:13:::0;3743:158:::1;;3851:39;::::0;3859:10:::1;::::0;3880:9:::1;3851:39:::0;::::1;;;::::0;::::1;::::0;;;3880:9;3859:10;3851:39;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;3743:158;3953:26;;:::i;:::-;4010:15;3989:36:::0;;4035:16:::1;::::0;;::::1;:26:::0;;;4071:23:::1;::::0;;::::1;:33:::0;;;4114:20:::1;::::0;::::1;:34:::0;;;-1:-1:-1;;;;;4177:20:8;;::::1;-1:-1:-1::0;4177:20:8;;;:10:::1;:20:::0;;;;;;:27;;4158:16:::1;::::0;::::1;:46:::0;;;4214:29;;::::1;:15;::::0;::::1;:29:::0;;;4311:20;;;:36:::1;::::0;;::::1;::::0;;;;;;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;;::::1;::::0;;;;;;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;;;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;4311:36:8::1;::::0;;;::::1;;::::0;;4357:26:::1;::::0;4177:20;4357:16:::1;:26::i;:::-;-1:-1:-1::0;;;;;;4459:18:8;::::1;4435:21;4459:18:::0;;;:5:::1;:18;::::0;;;;4487:31:::1;4459:18:::0;4509:8;4487:21:::1;:31::i;:::-;-1:-1:-1::0;;;;;;4559:28:8;::::1;4528;4559::::0;;;:18:::1;::::0;::::1;:28;::::0;;;;;;;4613:16:::1;::::0;;::::1;::::0;4597:33;;::::1;::::0;::::1;::::0;;;;;;;;;;;::::1;::::0;;;;4678:16;;::::1;::::0;4696:18;;4716:20:::1;::::0;;::::1;::::0;4646:91;;;;;4666:10:::1;4646:91:::0;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;4559:28;;4646:91:::1;::::0;;;;;;;;::::1;-1:-1:-1::0;;1788:1:9;2714:22;;-1:-1:-1;;;;;;;2800:1944:8:o;1884:101:7:-;1231:12;:10;:12::i;:::-;1221:6;;-1:-1:-1;;;;;1221:6:7;;;:22;;;1213:67;;;;;-1:-1:-1;;;1213:67:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1213:67:7;;;;;;;;;;;;;;;1952:28:::1;1971:8;1952:18;:28::i;:::-;1884:101:::0;:::o;6092:147:1:-;6166:7;6208:22;6212:3;6224:5;6208:3;:22::i;596:99:0:-;679:10;596:99;:::o;5645:115:1:-;5708:7;5734:19;5742:3;5734:7;:19::i;4871:141::-;4941:4;4964:41;4969:3;-1:-1:-1;;;;;4989:14:1;;4964:4;:41::i;5180:147::-;5253:4;5276:44;5284:3;-1:-1:-1;;;;;5304:14:1;;5276:7;:44::i;396:291:11:-;523:45;;;-1:-1:-1;;;;;523:45:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;523:45:11;-1:-1:-1;;;523:45:11;;;512:57;;;;477:12;;491:17;;512:10;;;;523:45;512:57;;;523:45;512:57;;523:45;512:57;;;;;;;;;;-1:-1:-1;;512:57:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;476:93;;;;587:7;:57;;;;-1:-1:-1;599:11:11;;:16;;:44;;;630:4;619:24;;;;;;;;;;;;;;;-1:-1:-1;619:24:11;599:44;579:101;;;;;-1:-1:-1;;;579:101:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;396:291;;;;;:::o;5408:156:1:-;5488:4;5511:46;5521:3;-1:-1:-1;;;;;5541:14:1;;5511:9;:46::i;693:320:11:-;838:51;;;-1:-1:-1;;;;;838:51:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;838:51:11;-1:-1:-1;;;838:51:11;;;827:63;;;;792:12;;806:17;;827:10;;;;838:51;827:63;;;838:51;827:63;;838:51;827:63;;;;;;;;;;-1:-1:-1;;827:63:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;791:99;;;;908:7;:57;;;;-1:-1:-1;920:11:11;;:16;;:44;;;951:4;940:24;;;;;;;;;;;;;;;-1:-1:-1;940:24:11;920:44;900:106;;;;-1:-1:-1;;;900:106:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;693:320;;;;;;:::o;2078:211:7:-;-1:-1:-1;;;;;2147:22:7;;2139:73;;;;-1:-1:-1;;;2139:73:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2244:6;;;2223:38;;-1:-1:-1;;;;;2223:38:7;;;;2244:6;;;2223:38;;;2267:6;:17;;-1:-1:-1;;;;;;2267:17:7;-1:-1:-1;;;;;2267:17:7;;;;;;;;;;2078:211::o;4430:201:1:-;4524:18;;4497:7;;4524:26;-1:-1:-1;4516:73:1;;;;-1:-1:-1;;;4516:73:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4606:3;:11;;4618:5;4606:18;;;;;;;;;;;;;;;;4599:25;;4430:201;;;;:::o;3991:107::-;4073:18;;3991:107::o;1618:404::-;1681:4;1702:21;1712:3;1717:5;1702:9;:21::i;:::-;1697:319;;-1:-1:-1;1739:23:1;;;;;;;;:11;:23;;;;;;;;;;;;;1919:18;;1897:19;;;:12;;;:19;;;;;;:40;;;;1951:11;;1697:319;-1:-1:-1;2000:5:1;1993:12;;2190:1512;2256:4;2393:19;;;:12;;;:19;;;;;;2427:15;;2423:1273;;2856:18;;-1:-1:-1;;2808:14:1;;;;2856:22;;;;2784:21;;2856:3;;:22;;3138;;;;;;;;;;;;;;3118:42;;3281:9;3252:3;:11;;3264:13;3252:26;;;;;;;;;;;;;;;;;;;:38;;;;3356:23;;;3398:1;3356:12;;;:23;;;;;;3382:17;;;3356:43;;3505:17;;3356:3;;3505:17;;;;;;;;;;;;;;;;;;;;;;3597:3;:12;;:19;3610:5;3597:19;;;;;;;;;;;3590:26;;;3638:4;3631:11;;;;;;;;2423:1273;3680:5;3673:12;;;;;3783:127;3856:4;3879:19;;;:12;;;;;:19;;;;;;:24;;;3783:127::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://d732416ca41183d466d137357f840076a64b325f08059fad9684adab26b5dfb3
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.