Contract 0x5baeBd214FdAe546ce39750B8363e799E2ABa21E 3

 

Contract Overview

Moonery: MNRY Token
Balance:
1.160467861720965759 BNB

BNB Value:
$557.79 (@ $480.66/BNB)

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4c2d17d9c8ef3a0934fb12ddd637048de44ac8eee8c9ee7cf15598326174af38Approve120081702021-10-23 1:26:265 hrs 55 mins ago0x2ba9dc74f0cb1a184b35615c8cb6de5e45969644 IN  Moonery: MNRY Token0 BNB0.00012718
0xff2ec7ebf4f182fa187b223d6a082f1e7c38098953c665da06273e85b6bda6b3Approve120081682021-10-23 1:26:195 hrs 55 mins ago0x2ba9dc74f0cb1a184b35615c8cb6de5e45969644 IN  Moonery: MNRY Token0 BNB0.00022318
0x5c0b5399264f42b39115dab7753e6b0613527d32c8898fa34fddcead93906e64Approve120012772021-10-22 19:37:2711 hrs 44 mins ago0x625ca660bb0d711ca7921c117ff5a94513561954 IN  Moonery: MNRY Token0 BNB0.00007313
0x430f0301bce6a2a7b31eb7eabff3b29634e260ef4c918d05a4779a1368746b6aApprove119994952021-10-22 18:07:4413 hrs 14 mins ago0x625ca660bb0d711ca7921c117ff5a94513561954 IN  Moonery: MNRY Token0 BNB0.000267816
0x17057dad026e61dfa2bdf045be105962a6478f4a1f8af07ebafe171d7adf9d0aClaim BNB Reward119982512021-10-22 17:05:2514 hrs 16 mins ago0x81095360eb29f1abd2e14efb4afdbe0f92b8c17b IN  Moonery: MNRY Token0 BNB0.00037067
0x27f91036fca44afcbc7de2c3e02e841599fcce65fd753dd54db0d00588ef37e9Claim BNB Reward119956252021-10-22 14:52:4116 hrs 29 mins ago0x9ba816a04db4b6d6adc09345fffecfb874a3566e IN  Moonery: MNRY Token0 BNB0.00037067
0x2dfeba6c1cefd18f8793b293b18395871e03e5097d0153b44701824d70b40cb6Claim BNB Reward119940892021-10-22 13:35:4717 hrs 46 mins ago0x37d90fb82fe84987de03249665199f801d2fac9d IN  Moonery: MNRY Token0 BNB0.00037067
0x41de6154253eefbd1681e7b37aa8436e262460f07318a58e0a105d64117511ecClaim BNB Reward119925862021-10-22 12:20:2319 hrs 1 min ago0xefdadfa5e694846484140abe5226a619595a96e9 IN  Moonery: MNRY Token0 BNB0.00037067
0x50ed363983356641f93700fba2effd4cb7dda44b31784f1b482ab6c9d0c399b6Approve119898972021-10-22 10:04:1021 hrs 18 mins ago0xdf3231bacebe107eb65daef05b68a42ea7284d56 IN  Moonery: MNRY Token0 BNB0.00014674
0xaf9144ea691c1ff8aa39932b9cb608c3264078b1671f08fb794a565478f0b820Claim BNB Reward119864272021-10-22 7:06:481 day 15 mins ago0x30b4bfc78335840fc44211fd190d24cad5e25cb3 IN  Moonery: MNRY Token0 BNB0.00037067
0xb4e2b3c813b7b5a46fc7e0e5bf5cc4dae368ea3403941c94dd968ab24c21f872Approve119764392021-10-21 22:24:121 day 8 hrs ago0xf45653472233dd74ec0c25ac63f62a9c5b660a9b IN  Moonery: MNRY Token0 BNB0.00014674
0x3a4acebae72cdfdf6282c4c202359ff112736ef9d4ccd31b7b7e28056ba7ba0cClaim BNB Reward119741972021-10-21 20:32:041 day 10 hrs ago0x7ba578a7d0524421f9469e22731fdeb9cc77de4b IN  Moonery: MNRY Token0 BNB0.00037067
0x1eb63bc6969765c7841f112a7d37384f172167776b7e121fdf3ef7419327a03aApprove119687352021-10-21 15:57:291 day 15 hrs ago0xad2c55f5f7a4cf594063c1eb85623d96f2df2e03 IN  Moonery: MNRY Token0 BNB0.00022318
0x5da896ea1eb54df5a4838f73f465bedf7d8a8f2efa64e7bf4b557dd282e42ba8Claim BNB Reward119643402021-10-21 12:04:411 day 19 hrs ago0xde99806d415dd7611fb41acc5e29cd6cc843056d IN  Moonery: MNRY Token0 BNB0.00037067
0x143316405fa3951c9874025f4282cfbd9ca60ce671d923d5ac7f99203e86ed91Transfer119639882021-10-21 11:46:541 day 19 hrs ago0x1df66bfd81bab899857176a3a11b62d229b8360d IN  Moonery: MNRY Token0 BNB0.000642295
0xdf5d28a3e7a40a4012a39c3ddea6323070265cf24ec38519548ef8aaeeda106dClaim BNB Reward119471432021-10-20 21:31:072 days 9 hrs ago0xd255eb7fa24f2cc43ae4dedf6cc9e387dffaa827 IN  Moonery: MNRY Token0 BNB0.00037067
0x22083c679145ddd6265778f96d5b8060f138abbaab2eff0dd688663c1f9bd0f4Claim BNB Reward119471252021-10-20 21:30:132 days 9 hrs ago0x283a9d146c2a8cffbf91f603dccf3a060dd44501 IN  Moonery: MNRY Token0 BNB0.00037067
0x8b7ab0ece263a6941798acc3bbcd0230461d3592544c1122f16d120a4c48c77bApprove119457592021-10-20 20:21:392 days 11 hrs ago0x1d4709b41285ddcd2f6775eeb2ce048c936ff91a IN  Moonery: MNRY Token0 BNB0.00022318
0x02183f10ab12255711f2b0ab01970a259fdb83c1db1629c48606dd99e50025f2Claim BNB Reward119439162021-10-20 18:46:502 days 12 hrs ago0x0c97e88e41595c1104ef95a032323a37ccbbe590 IN  Moonery: MNRY Token0 BNB0.00037067
0xb16ef313985af8ee3bddbbbc5194f4cd7d7cba1d0a7beb2d22e1dca4337a2ab4Claim BNB Reward119420342021-10-20 17:11:402 days 14 hrs ago0x316bebf69644759fd4e0ff553b07f6d96282b417 IN  Moonery: MNRY Token0 BNB0.00037067
0xbef510bfc1e7e57baa6267332fc6ddf0240b4b9444582ba7f6f87a0c0d910fd8Claim BNB Reward119413442021-10-20 16:37:022 days 14 hrs ago0x9064aea3229fbd83aa4791735deed65548e3c0eb IN  Moonery: MNRY Token0 BNB0.00037067
0x6263c1a11cea7cb9d3f22b84554e2b9e0794ef460060018d1417c64da5d864d3Claim BNB Reward119413332021-10-20 16:36:282 days 14 hrs ago0x8fbfea2c99a9939b701f98d92353ead90219ab8f IN  Moonery: MNRY Token0 BNB0.00037067
0x2d5e5a9912174e9a7632f10991254aea8db23ecf46326160a21408f1d9b34e55Claim BNB Reward119394732021-10-20 15:03:092 days 16 hrs ago0xcf4ac39f5231d11f099f026b39eab4122acb8c19 IN  Moonery: MNRY Token0 BNB0.00037067
0x058bd36eb0357630341424b752fb10d64fd8e29f2d1648dcdf19daf79d40af69Approve119387542021-10-20 14:27:102 days 16 hrs ago0x2852dea5a3ba41be1f75c9592ef51d3c91fdc001 IN  Moonery: MNRY Token0 BNB0.00007313
0x39bcdb869ce54af05b3f14c4914107b8aaf9e03c0ceaa298e1aa951c875d0385Approve119385822021-10-20 14:18:342 days 17 hrs ago0xb456c51fba3c0bdd584398aeab1054bbe85b02e0 IN  Moonery: MNRY Token0 BNB0.00007313
[ Download CSV Export 

OVERVIEW

Moonery is a community-driven, no-loss prize game and no-loss pool launchpad built on Binance Smart Chain #BSC.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xdba1b3e9799767a2632323ee886deeeb3c78fd7bdc4ad13d2de807f5dbd36b39120082622021-10-23 1:31:085 hrs 51 mins ago Moonery: MNRY Token PancakeSwap: Router v20.03645011460263709 BNB
0xdba1b3e9799767a2632323ee886deeeb3c78fd7bdc4ad13d2de807f5dbd36b39120082622021-10-23 1:31:085 hrs 51 mins ago PancakeSwap: Router v2 Moonery: MNRY Token0.109350343807911272 BNB
0x17057dad026e61dfa2bdf045be105962a6478f4a1f8af07ebafe171d7adf9d0a119982512021-10-22 17:05:2514 hrs 16 mins ago Moonery: MNRY Token0x81095360eb29f1abd2e14efb4afdbe0f92b8c17b0.000017271487037679 BNB
0x27f91036fca44afcbc7de2c3e02e841599fcce65fd753dd54db0d00588ef37e9119956252021-10-22 14:52:4116 hrs 29 mins ago Moonery: MNRY Token0x9ba816a04db4b6d6adc09345fffecfb874a3566e0.011939220722398673 BNB
0x2dfeba6c1cefd18f8793b293b18395871e03e5097d0153b44701824d70b40cb6119940892021-10-22 13:35:4717 hrs 46 mins ago Moonery: MNRY Token0x37d90fb82fe84987de03249665199f801d2fac9d0.000200223303369963 BNB
0x41de6154253eefbd1681e7b37aa8436e262460f07318a58e0a105d64117511ec119925862021-10-22 12:20:2319 hrs 1 min ago Moonery: MNRY Token0xefdadfa5e694846484140abe5226a619595a96e90.003110273137021772 BNB
0xaf9144ea691c1ff8aa39932b9cb608c3264078b1671f08fb794a565478f0b820119864272021-10-22 7:06:481 day 15 mins ago Moonery: MNRY Token0x30b4bfc78335840fc44211fd190d24cad5e25cb30.006636121881966568 BNB
0x3a4acebae72cdfdf6282c4c202359ff112736ef9d4ccd31b7b7e28056ba7ba0c119741972021-10-21 20:32:041 day 10 hrs ago Moonery: MNRY Token0x7ba578a7d0524421f9469e22731fdeb9cc77de4b0.000479323902268258 BNB
0x5da896ea1eb54df5a4838f73f465bedf7d8a8f2efa64e7bf4b557dd282e42ba8119643402021-10-21 12:04:411 day 19 hrs ago Moonery: MNRY Token0xde99806d415dd7611fb41acc5e29cd6cc843056d0.000061395355297569 BNB
0xdf5d28a3e7a40a4012a39c3ddea6323070265cf24ec38519548ef8aaeeda106d119471432021-10-20 21:31:072 days 9 hrs ago Moonery: MNRY Token0xd255eb7fa24f2cc43ae4dedf6cc9e387dffaa8270.007365820704105585 BNB
0x22083c679145ddd6265778f96d5b8060f138abbaab2eff0dd688663c1f9bd0f4119471252021-10-20 21:30:132 days 9 hrs ago Moonery: MNRY Token0x283a9d146c2a8cffbf91f603dccf3a060dd445010.014786822159548747 BNB
0x02183f10ab12255711f2b0ab01970a259fdb83c1db1629c48606dd99e50025f2119439162021-10-20 18:46:502 days 12 hrs ago Moonery: MNRY Token0x0c97e88e41595c1104ef95a032323a37ccbbe5900.00025571327842771 BNB
0xe6fe9c854d715fda80b381165a06c12a8d19c2c1268affbd2a68b22a6a790f68119420542021-10-20 17:12:402 days 14 hrs ago Moonery: MNRY Token PancakeSwap: Router v20.037420934609624611 BNB
0xe6fe9c854d715fda80b381165a06c12a8d19c2c1268affbd2a68b22a6a790f68119420542021-10-20 17:12:402 days 14 hrs ago PancakeSwap: Router v2 Moonery: MNRY Token0.112262803828873835 BNB
0xb16ef313985af8ee3bddbbbc5194f4cd7d7cba1d0a7beb2d22e1dca4337a2ab4119420342021-10-20 17:11:402 days 14 hrs ago Moonery: MNRY Token0x316bebf69644759fd4e0ff553b07f6d96282b4170.000188038171662017 BNB
0xbef510bfc1e7e57baa6267332fc6ddf0240b4b9444582ba7f6f87a0c0d910fd8119413442021-10-20 16:37:022 days 14 hrs ago Moonery: MNRY Token0x9064aea3229fbd83aa4791735deed65548e3c0eb0.010033874023305875 BNB
0x6263c1a11cea7cb9d3f22b84554e2b9e0794ef460060018d1417c64da5d864d3119413332021-10-20 16:36:282 days 14 hrs ago Moonery: MNRY Token0x8fbfea2c99a9939b701f98d92353ead90219ab8f0.018508079210501735 BNB
0x2d5e5a9912174e9a7632f10991254aea8db23ecf46326160a21408f1d9b34e55119394732021-10-20 15:03:092 days 16 hrs ago Moonery: MNRY Token0xcf4ac39f5231d11f099f026b39eab4122acb8c190.00003876437552557 BNB
0x615651ff48339cf28b7dd66d071742bc456456a9ee3d636eb83ba9340d10b8bc119365012021-10-20 12:34:142 days 18 hrs ago Moonery: MNRY Token0xf049ed6f0eaa51e23c637aa17860deecf3a02e780.000851878778808165 BNB
0x4d7401183d4e3fcd74c25f749ac16ff36c65a657389509da61e0260e6cf78dc7119361192021-10-20 12:15:072 days 19 hrs ago Moonery: MNRY Token0xd7d1cd845bc485d37d4361533bf598e0436a2c040.000009002712207403 BNB
0xa0aac61cdd23e681311d6bdf604692184478eac73362a0875b1a1d1d4ddb3148119310182021-10-20 7:58:092 days 23 hrs ago Moonery: MNRY Token0x0583829a7a11ba5009b2b27f75bd6b1bd73cad000.001685647377911686 BNB
0x27e68d5ebcdfa94698d1afe26f3f6206039bca5b7b55253d65df25024947d4a2119266872021-10-20 4:19:473 days 3 hrs ago Moonery: MNRY Token0xa1df955bd58fbcf2be75a44b8409d306c6a309fa0.000007362001227412 BNB
0x42b7fd1b8b358d662a7c63284edbc780b9d935aabb2c1423c763f4052be28d78119233132021-10-20 1:31:033 days 5 hrs ago Moonery: MNRY Token0x0f7c22ca798a8d47e7528daa3b4f13513c8ea55e0.00075267482787491 BNB
0x3c7491403ca61092fb46cf917b0df8556204ee845f2c5a580514b975270228e4119090992021-10-19 13:07:043 days 18 hrs ago Moonery: MNRY Token0xc88cf7b15f0b8758ffa2ed47a97de852ef01e8890.002454178260084222 BNB
0x9c0c6c00e1bf2bf9780134ec2d174b02aed35eebab3957a3d77e9769bb0ae71f119052012021-10-19 9:50:303 days 21 hrs ago Moonery: MNRY Token0xfd5836bc9afce961fb9729ad6ea251898010afe90.012047540394835229 BNB
[ Download CSV Export 
Loading
This contract contains unverified libraries: MooneryUtils

Contract Source Code Verified (Exact Match)

Contract Name:
Moonery

Compiler Version
v0.6.8+commit.0bbfe453

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 13 : Moonery.sol
//SPDX-License-Identifier: Unlicensed

pragma solidity >=0.6.8 <0.9.0;
pragma experimental ABIEncoderV2;

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

import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";

import "./utils/MooneryUtils.sol";
import "./IWBNB.sol";
import "./access/Ownable.sol";

contract Moonery is IERC20, Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using Address for address;
    using SafeERC20 for IERC20;

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

    mapping(address => bool) private _isExcludedFromFee;
    mapping(address => bool) private _isExcluded;
    mapping(address => bool) private _isExcludedFromMaxTx;

    address[] private _excluded;

    uint256 private constant _MAX = ~uint256(0);
    uint256 private constant _tTotal = 1000000000 * 10 ** 6 * 10 ** 9;
    uint256 private _rTotal = (_MAX - (_MAX % _tTotal));
    uint256 private _tFeeTotal;

    string private constant _name = "Moonery";
    string private constant _symbol = "MNRY";
    uint8 private immutable _decimals = 9;

    IUniswapV2Router02 public immutable pancakeRouter;
    address public immutable pancakePair;

    address payable private _lottery;
    address payable private _crowdsale;
    address payable private immutable _wbnb;
    address payable private _escrow;

    bool private _inSwapAndLiquify;

     // Innovation for protocol by MoonRat Team
    uint256 public rewardCycleBlock = 7 days;
    uint256 public easyRewardCycleBlock = 1 days;
    uint256 public threshHoldTopUpRate = 2; // 2 percent
    uint256 public maxTxAmount = _tTotal; // should be 0.05% percent per transaction, will be set again at activateContract() function
    uint256 public disruptiveCoverageFee = 2 ether; // antiwhale
    mapping(address => uint256) public nextAvailableClaimDate;
    bool public swapAndLiquifyEnabled = false; // should be true
    uint256 public disruptiveTransferEnabledFrom = 0;
    uint256 public  disableEasyRewardFrom = 0;

    uint256 public taxFee = 2;
    uint256 private _previousTaxFee = taxFee;

    uint256 public liquidityFee = 8; // 4% will be added pool, 4% will be converted to BNB
    uint256 private _previousLiquidityFee = liquidityFee;
    uint256 public rewardThreshold = 2 ether;

    uint256 private _minTokenNumberToSell = _tTotal.mul(1).div(10000);

    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 bnbReceived,
        uint256 tokensIntoLiquidity
    );

    event ClaimBNBSuccessfully(
        address recipient,
        uint256 bnbReceived,
        uint256 nextAvailableClaimDate
    );

    constructor (
        address payable routerAddress,
        address payable wbnb_
    ) public {
        _rOwned[_msgSender()] = _rTotal;

        IUniswapV2Router02 _pancakeRouter = IUniswapV2Router02(routerAddress);
        // Create a pancake pair for this new token
        pancakePair = IUniswapV2Factory(_pancakeRouter.factory())
        .createPair(address(this), _pancakeRouter.WETH());

        // set the rest of the contract variables
        pancakeRouter = _pancakeRouter;
        _wbnb = wbnb_;

        //exclude owner and this contract from fee
        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;

        // exclude from max tx
        _isExcludedFromMaxTx[owner()] = true;
        _isExcludedFromMaxTx[address(this)] = true;
        _isExcludedFromMaxTx[address(0x000000000000000000000000000000000000dEaD)] = true;
        _isExcludedFromMaxTx[address(0)] = true;

        emit Transfer(address(0), _msgSender(), _tTotal);
    }

    //to receive BNB from pancakeRouter when swapping
    receive() external payable {}
    fallback() external payable {}

    // External functions
    function fallbackRedeem(IERC20 newToken_, uint256 tokenAmount_) external nonReentrant {
        require(!_isExcluded[_msgSender()], "Moonery: Excluded addresses cannot call this function");
        require(address(newToken_) != address(this), "Moonery: cannot recover to $MNRY");
        require(address(newToken_) != address(pancakePair), "Mooner: cannot recover to $CAKE LP");
        newToken_.safeTransfer(address(_lottery), tokenAmount_);
    }

    function excludeFromReward(address account) external onlyOwner {
        require(!_isExcluded[account], "Moonery: Account is not excluded");
        if (_rOwned[account] > 0) {
            _tOwned[account] = tokenFromReflection(_rOwned[account]);
        }
        _isExcluded[account] = true;
        _excluded.push(account);
    }

    function includeInReward(address account) external onlyOwner {
        require(_isExcluded[account], "Moonery: Account is not excluded");
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_excluded[i] == account) {
                _excluded[i] = _excluded[_excluded.length - 1];
                _tOwned[account] = 0;
                _isExcluded[account] = false;
                _excluded.pop();
                break;
            }
        }
    }

    function setTaxFeePercent(uint256 taxFee_) external onlyOwner() {
        taxFee = taxFee_;
    }

    function setLiquidityFeePercent(uint256 liquidityFee_) external onlyOwner {
        liquidityFee = liquidityFee_;
    }

    function setExcludeFromMaxTx(address _address, bool value) external onlyOwner {
        _isExcludedFromMaxTx[_address] = value;
    }

    function isExcludedFromFee(address account, bool value) external onlyOwner {
        _isExcludedFromFee[account] = value;
    }

    function activateContract(address payable lottery_, address payable crowdsale_, address payable escrow_) external onlyOwner {
        // lottery and crowdsale
        _lottery = lottery_;
        _crowdsale = crowdsale_;
        _escrow = escrow_;

        _isExcludedFromFee[address(_lottery)] = true;
        _isExcludedFromFee[address(_crowdsale)] = true;
        _isExcludedFromFee[address(_escrow)] = true;

        // exclude from max tx
        _isExcludedFromMaxTx[address(_lottery)] = true;
        _isExcludedFromMaxTx[address(_crowdsale)] = true;
        _isExcludedFromMaxTx[address(_escrow)] = true;

        // reward claim
        disableEasyRewardFrom = block.timestamp + 1 weeks;
        rewardCycleBlock = 7 days;
        easyRewardCycleBlock = 1 days;

        // protocol
        disruptiveCoverageFee = 2 ether;
        disruptiveTransferEnabledFrom = block.timestamp;
        setMaxTxPercent(100);
        setSwapAndLiquifyEnabled(true);

        // approve contract
        _approve(address(this), address(pancakeRouter), 2 ** 256 - 1);
    }
    
    // Public ERC20 functions
    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function decimals() public view returns (uint8) {
        return _decimals;
    }

    function totalSupply() public view override returns (uint256) {
        return _tTotal;
    }

    function balanceOf(address account) public view override returns (uint256) {
        if (_isExcluded[account]) return _tOwned[account];
        return tokenFromReflection(_rOwned[account]);
    }

    function minTokenNumberToSell()  public virtual returns (uint256) {
        return  _minTokenNumberToSell;
    }

    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount, 0);
        return true;
    }

    function allowance(address owner_, address spender) public view override returns (uint256) {
        return _allowances[owner_][spender];
    }

    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        _transfer(sender, recipient, amount, 0);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "BEP20: transfer amount exceeds allowance"));
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: decreased allowance below zero"));
        return true;
    }

    function deliver(uint256 tAmount) public {
        require(!_isExcluded[_msgSender()], "Moonery: excluded addresses cannot call this function");
        address sender = _msgSender();
        (uint256 rAmount,,,,,) = _getValues(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _rTotal = _rTotal.sub(rAmount);
        _tFeeTotal = _tFeeTotal.add(tAmount);
    }

    function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns (uint256) {
        require(tAmount <= _tTotal, "Moonery: amount higher than supply");
        if (!deductTransferFee) {
            (uint256 rAmount,,,,,) = _getValues(tAmount);
            return rAmount;
        } else {
            (,uint256 rTransferAmount,,,,) = _getValues(tAmount);
            return rTransferAmount;
        }
    }

    function tokenFromReflection(uint256 rAmount) public view returns (uint256) {
        require(rAmount <= _rTotal, "Moonery: reflectionFromToken amount higher than supply");
        uint256 currentRate = _getRate();
        return rAmount.div(currentRate);
    }

    function claim() public nonReentrant {
        require(!_isExcluded[_msgSender()], "Moonery: excluded addresses cannot call this function"); 
        _claimBNBReward(_lottery);
    }


    function claimBNBReward() nonReentrant public {
        _claimBNBReward(msg.sender);
    }

    function setMaxTxPercent(uint256 maxTxPercent) public onlyOwner {
        maxTxAmount = _tTotal.mul(maxTxPercent).div(10000);
    }

    function setMinTokenNumberToSell(uint256 minToSellPercent) public onlyOwner {
        _minTokenNumberToSell = _tTotal.mul(minToSellPercent).div(10000);
    }

    function disruptiveTransfer(address recipient, uint256 amount) public payable returns (bool) {
        _transfer(_msgSender(), recipient, amount, msg.value);
        return true;
    }

    function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
        swapAndLiquifyEnabled = _enabled;
        emit SwapAndLiquifyEnabledUpdated(_enabled);
    }

    // Public functions that are view
    function isExcludedFromFee(address account) public view returns (bool) {
        return _isExcludedFromFee[account];
    }

    function isExcludedFromReward(address account) public view returns (bool) {
        return _isExcluded[account];
    }

    function totalFees() public view returns (uint256) {
        return _tFeeTotal;
    }

    function getRewardCycleBlock() public view returns (uint256) {
        if (block.timestamp >= disableEasyRewardFrom) return rewardCycleBlock;
        return easyRewardCycleBlock;
    }

    // Private functions
    function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private {
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }
    function _reflectFee(uint256 rFee, uint256 tFee) private {
        _rTotal = _rTotal.sub(rFee);
        _tFeeTotal = _tFeeTotal.add(tFee);
    }

    function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256) {
        (uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount);
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, _getRate());
        return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity);
    }

    function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256) {
        uint256 tFee = _calculateTaxFee(tAmount);
        uint256 tLiquidity = _calculateLiquidityFee(tAmount);
        uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity);
        return (tTransferAmount, tFee, tLiquidity);
    }

    function _getRValues(uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
        uint256 rAmount = tAmount.mul(currentRate);
        uint256 rFee = tFee.mul(currentRate);
        uint256 rLiquidity = tLiquidity.mul(currentRate);
        uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity);
        return (rAmount, rTransferAmount, rFee);
    }

    function _getRate() private view returns (uint256) {
        (uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
        return rSupply.div(tSupply);
    }

    function _getCurrentSupply() private view returns (uint256, uint256) {
        uint256 rSupply = _rTotal;
        uint256 tSupply = _tTotal;
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal);
            rSupply = rSupply.sub(_rOwned[_excluded[i]]);
            tSupply = tSupply.sub(_tOwned[_excluded[i]]);
        }
        if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
        return (rSupply, tSupply);
    }

    function _takeLiquidity(uint256 tLiquidity) private {
        uint256 currentRate = _getRate();
        uint256 rLiquidity = tLiquidity.mul(currentRate);
        _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity);
        if (_isExcluded[address(this)])
            _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity);
    }

    function _calculateTaxFee(uint256 _amount) private view returns (uint256) {
        return _amount.mul(taxFee).div(
            10 ** 2
        );
    }

    function _calculateLiquidityFee(uint256 _amount) private view returns (uint256) {
        return _amount.mul(liquidityFee).div(
            10 ** 2
        );
    }

    function _removeAllFee() private {
        if (taxFee == 0 && liquidityFee == 0) return;

        _previousTaxFee = taxFee;
        _previousLiquidityFee = liquidityFee;

        taxFee = 0;
        liquidityFee = 0;
    }

    function _restoreAllFee() private {
        taxFee = _previousTaxFee;
        liquidityFee = _previousLiquidityFee;
    }

    function _approve(address owner_, address spender, uint256 amount) private {
        require(owner_ != address(0), "BEP20: approve from the zero address");
        require(spender != address(0), "BEP20: approve to the zero address");

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

    function _transfer(
        address from,
        address to,
        uint256 amount,
        uint256 value
    ) private {
        require(from != address(0), "BEP20: transfer from the zero address");
        require(to != address(0), "BEP20: transfer to the zero address");
        require(amount > 0, "BEP20: transfer zero amount");

        _ensureMaxTxAmount(from, to, amount, value);

        // swap and liquify
        _swapAndLiquify(from, to);

        //indicates if fee should be deducted from transfer
        bool takeFee = true;

        //if any account belongs to _isExcludedFromFee account then remove the fee
        if (_isExcludedFromFee[from] || _isExcludedFromFee[to]) takeFee = false;
    
        //transfer amount, it will take tax, burn, liquidity fee
        _tokenTransfer(from, to, amount, takeFee);
    }

    //this method is responsible for taking all fee, if takeFee is true
    function _tokenTransfer(address sender, address recipient, uint256 amount, bool takeFee) private {
        if (!takeFee)
            _removeAllFee();

        // top up claim cycle
        _topUpClaimCycleAfterTransfer(recipient, amount);

        if (_isExcluded[sender] && !_isExcluded[recipient]) {
            _transferFromExcluded(sender, recipient, amount);
        } else if (!_isExcluded[sender] && _isExcluded[recipient]) {
            _transferToExcluded(sender, recipient, amount);
        } else if (_isExcluded[sender] && _isExcluded[recipient]) {
            _transferBothExcluded(sender, recipient, amount);
        } else {
            _transferStandard(sender, recipient, amount);
        }

        if (!takeFee)
            _restoreAllFee();
    }

    function _transferStandard(address sender, address recipient, uint256 tAmount) private {
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function _transferToExcluded(address sender, address recipient, uint256 tAmount) private {
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private {
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function calculateBNBReward(address ofAddress) public view returns (uint256) {
        uint256 totalSupply_ = uint256(_tTotal)
        .sub(balanceOf(address(0)))
        .sub(balanceOf(0x000000000000000000000000000000000000dEaD)) // exclude burned wallet
        .sub(balanceOf(address(pancakePair)));
        // exclude liquidity wallet

        return MooneryUtils.calculateBNBReward(
            _tTotal,
            balanceOf(address(ofAddress)),
            address(this).balance,
            totalSupply_
        );
    }

    function _topUpClaimCycleAfterTransfer(address recipient, uint256 amount) private {
        uint256 currentRecipientBalance = balanceOf(recipient);
        uint256 basedRewardCycleBlock = getRewardCycleBlock();

        nextAvailableClaimDate[recipient] = nextAvailableClaimDate[recipient] + MooneryUtils.calculateTopUpClaim(
            currentRecipientBalance,
            basedRewardCycleBlock,
            threshHoldTopUpRate,
            amount
        );
    }

    function _ensureMaxTxAmount(
        address from,
        address to,
        uint256 amount,
        uint256 value
    ) private {
        if (
            _isExcludedFromMaxTx[from] == false && // default will be false
            _isExcludedFromMaxTx[to] == false // default will be false
        ) {
            if (value < disruptiveCoverageFee && block.timestamp >= disruptiveTransferEnabledFrom) {
                require(amount <= maxTxAmount, "Moonery: transfer amount exceeds the maxTxAmount.");
            }
        }
    }

    function _swapAndLiquify(address from, address to) private {
        uint256 contractTokenBalance = balanceOf(address(this));

        if (contractTokenBalance >= maxTxAmount) {
            contractTokenBalance = maxTxAmount;
        }

        bool shouldSell = contractTokenBalance >= _minTokenNumberToSell;

        if (
            !_inSwapAndLiquify &&
        shouldSell &&
        from != pancakePair &&
        swapAndLiquifyEnabled &&
        !(from == address(this) && to == address(pancakePair)) // swap 1 time
        ) {
            // only sell for minTokenNumberToSell, decouple from _maxTxAmount
            contractTokenBalance = _minTokenNumberToSell;

            // add liquidity
            // split the contract balance into 3 pieces
            uint256 pooledBNB = contractTokenBalance.div(2);
            uint256 piece = contractTokenBalance.sub(pooledBNB).div(2);
            uint256 otherPiece = contractTokenBalance.sub(piece);

            uint256 tokenAmountToBeSwapped = pooledBNB.add(piece);

            uint256 initialBalance = address(this).balance;

            // now is to lock into staking pool
            MooneryUtils.swapTokensForBnb(address(pancakeRouter), tokenAmountToBeSwapped);

            uint256 deltaBalance = address(this).balance.sub(initialBalance);

            uint256 bnbToBeAddedToLiquidity = deltaBalance.div(3);

            // add liquidity to pancake
            MooneryUtils.addLiquidity(address(pancakeRouter), address(_escrow), otherPiece, bnbToBeAddedToLiquidity);

            emit SwapAndLiquify(piece, deltaBalance, otherPiece);
        }
    }

    function _claimBNBReward(address payable sender) private {
        require(nextAvailableClaimDate[sender] <= block.timestamp, "Moonery: next available time not reached");
        require(balanceOf(sender) > 0, "Moonery: must own $MNRY to claim reward");

        
        uint256 reward = calculateBNBReward(sender);

        // reward threshold
        if (reward >= rewardThreshold) {
            MooneryUtils.swapBNBForTokens(
                address(pancakeRouter),
                address(0x000000000000000000000000000000000000dEaD),
                reward.div(5)
            );
            reward = reward.sub(reward.div(5));
        }

        // update rewardCycleBlock
        nextAvailableClaimDate[sender] = block.timestamp + getRewardCycleBlock();

        //if lottery pool sent WBNB instead of BNB
        if(address(sender) == address(_lottery)) {
            IWBNB(_wbnb).deposit{ value: reward }();
            reward = reward.mul(1 wei);
            IWBNB(_wbnb).transfer(address(_lottery), reward);
        } else {
            (bool sent,) = _msgSender().call{value : reward}("");
            require(sent, "Error: cannot withdraw reward");
            emit ClaimBNBSuccessfully(sender, reward, nextAvailableClaimDate[sender]);
        }
    }
}

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

pragma solidity >=0.6.0 <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 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        _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 4 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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 6 of 13 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    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 7 of 13 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    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 8 of 13 : MooneryUtils.sol
// File: contracts/protocols/bep/Utils.sol

pragma solidity >=0.6.8 <0.9.0;

import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";

library MooneryUtils {
    using SafeMath for uint256;

    function calculateBNBReward(
        uint256 _tTotal,
        uint256 currentBalance,
        uint256 currentBNBPool,
        uint256 totalSupply
    ) public view returns (uint256) {
        uint256 bnbPool = currentBNBPool;

        // calculate reward to send
        uint256 multiplier = 100;

        // now calculate reward
        uint256 reward = bnbPool.mul(multiplier).mul(currentBalance).div(100).div(totalSupply);

        return reward;
    }

    function calculateTopUpClaim(
        uint256 currentRecipientBalance,
        uint256 basedRewardCycleBlock,
        uint256 threshHoldTopUpRate,
        uint256 amount
    ) public returns (uint256) {
        if (currentRecipientBalance == 0) {
            return block.timestamp + basedRewardCycleBlock;
        }
        else {
            uint256 rate = amount.mul(100).div(currentRecipientBalance);

            if (uint256(rate) >= threshHoldTopUpRate) {
                uint256 incurCycleBlock = basedRewardCycleBlock.mul(uint256(rate)).div(100);

                if (incurCycleBlock >= basedRewardCycleBlock) {
                    incurCycleBlock = basedRewardCycleBlock;
                }

                return incurCycleBlock;
            }

            return 0;
        }
    }

    function swapTokensForBnb(
        address routerAddress,
        uint256 tokenAmount
    ) public {
        IUniswapV2Router02 pancakeRouter = IUniswapV2Router02(routerAddress);

        // generate the pancake pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = pancakeRouter.WETH();

        // make the swap
        pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of BNB
            path,
            address(this),
            block.timestamp
        );
    }

    function swapBNBForTokens(
        address routerAddress,
        address recipient,
        uint256 bnbAmount
    ) public {
        IUniswapV2Router02 pancakeRouter = IUniswapV2Router02(routerAddress);

        // generate the pancake pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = pancakeRouter.WETH();
        path[1] = address(this);

        // make the swap
        pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(
            0, // accept any amount of BNB
            path,
            address(recipient),
            block.timestamp + 360
        );
    }

    function addLiquidity(
        address routerAddress,
        address owner,
        uint256 tokenAmount,
        uint256 bnbAmount
    ) public returns (uint amountToken, uint amountETH, uint liquidity) {
        IUniswapV2Router02 pancakeRouter = IUniswapV2Router02(routerAddress);

        // add the liquidity
        return pancakeRouter.addLiquidityETH{value : bnbAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            owner,
            block.timestamp + 360
        );
    }
}

File 9 of 13 : IWBNB.sol
//SPDX-License-Identifier: Unlicensed

pragma solidity >=0.6.8 <0.9.0;
interface IWBNB {
  function totalSupply() external view returns (uint256);
  function approve(address guy, uint wad) external returns (bool);
  function transfer(address dst, uint wad) external returns (bool);
  function transferFrom(address src, address dst, uint wad) external returns (bool);
  function deposit() external payable;
  function withdraw(uint256 wad) external;

  event  Approval(address indexed src, address indexed guy, uint wad);
  event  Transfer(address indexed src, address indexed dst, uint wad);
  event  Deposit(address indexed dst, uint wad);
  event  Withdrawal(address indexed src, uint wad);
}

File 10 of 13 : Ownable.sol
//SPDX-License-Identifier: Unlicensed

pragma solidity >=0.6.8 <0.9.0;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/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.
 */
contract Ownable is Context {
    address private _owner;
    address private _previousOwner;
    uint256 private _lockTime;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        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 virtual 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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }

    function geUnlockTime() public view returns (uint256) {
        return _lockTime;
    }

    //Locks the contract for owner for the amount of time provided
    function lock(uint256 time) public virtual onlyOwner {
        _previousOwner = _owner;
        _owner = address(0);
        _lockTime = now + time;
        emit OwnershipTransferred(_owner, address(0));
    }

    //Unlocks the contract for owner when _lockTime is exceeds
    function unlock() public virtual {
        require(_previousOwner == msg.sender, "You don't have permission to unlock");
        require(now > _lockTime , "Contract is locked until 7 days");
        emit OwnershipTransferred(_owner, _previousOwner);
        _owner = _previousOwner;
    }
}

File 11 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <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;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 13 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    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 13 of 13 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 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 virtual returns (address payable) {
        return msg.sender;
    }

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/utils/MooneryUtils.sol": {
      "MooneryUtils": "0x47feb4050175d8945014d8b9bc559bfecf92c510"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"routerAddress","type":"address"},{"internalType":"address payable","name":"wbnb_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"bnbReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nextAvailableClaimDate","type":"uint256"}],"name":"ClaimBNBSuccessfully","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":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bnbReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiquidity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SwapAndLiquifyEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address payable","name":"lottery_","type":"address"},{"internalType":"address payable","name":"crowdsale_","type":"address"},{"internalType":"address payable","name":"escrow_","type":"address"}],"name":"activateContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ofAddress","type":"address"}],"name":"calculateBNBReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimBNBReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"}],"name":"deliver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableEasyRewardFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disruptiveCoverageFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"disruptiveTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"disruptiveTransferEnabledFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"easyRewardCycleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"newToken_","type":"address"},{"internalType":"uint256","name":"tokenAmount_","type":"uint256"}],"name":"fallbackRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"geUnlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardCycleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"isExcludedFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minTokenNumberToSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nextAvailableClaimDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancakePair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancakeRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardCycleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setExcludeFromMaxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"liquidityFee_","type":"uint256"}],"name":"setLiquidityFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTxPercent","type":"uint256"}],"name":"setMaxTxPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minToSellPercent","type":"uint256"}],"name":"setMinTokenNumberToSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapAndLiquifyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"taxFee_","type":"uint256"}],"name":"setTaxFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"threshHoldTopUpRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

61010060405269d3c21bcecceda10000006000190619600b55600960f81b60805262093a80601055620151806011556002601281905569d3c21bcecceda10000006013819055671bc16d674ec8000060148190556016805460ff19169055600060178190556018556019839055601a929092556008601b819055601c55601d91909155620000b89061271090620000a49060016200049f602090811b62001abf17901c565b620004f160201b62001af91790919060201c565b601e55348015620000c857600080fd5b50604051620042ba380380620042ba833981016040819052620000eb9162000559565b6000620001006001600160e01b036200052716565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600355600b5460046000620001696001600160e01b036200052716565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000829050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015620001cc57600080fd5b505afa158015620001e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020791906200053a565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200025057600080fd5b505afa15801562000265573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200028b91906200053a565b6040518363ffffffff1660e01b8152600401620002aa92919062000597565b602060405180830381600087803b158015620002c557600080fd5b505af1158015620002da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200030091906200053a565b6001600160601b0319606091821b811660c05282821b811660a0529083901b1660e0526001600760006200033c6001600160e01b036200052b16565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff199586161790553081526007909252812080549092166001908117909255600990620003956001600160e01b036200052b16565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff19958616179055308152600990925281208054831660019081179091557f960b1051749987b45b5679007fff577a1c2f763ec21c15a6c5eb19307500378580548416821790559080527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b80549092161790556200043f6001600160e01b036200052716565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef69d3c21bcecceda10000006040516200048e919062000629565b60405180910390a35050506200064b565b600082620004b057506000620004eb565b82820282848281620004be57fe5b0414620004e85760405162461bcd60e51b8152600401620004df90620005e8565b60405180910390fd5b90505b92915050565b6000808211620005155760405162461bcd60e51b8152600401620004df90620005b1565b8183816200051f57fe5b049392505050565b3390565b6000546001600160a01b031690565b6000602082840312156200054c578081fd5b8151620004e88162000632565b600080604083850312156200056c578081fd5b8251620005798162000632565b60208401519092506200058c8162000632565b809150509250929050565b6001600160a01b0392831681529116602082015260400190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b90815260200190565b6001600160a01b03811681146200064857600080fd5b50565b60805160f81c60a05160601c60c05160601c60e05160601c613c00620006ba60003980611f235280611fdf5250806109f95280611700528061197d52806122a952806123085250806110cc52806117245280611e4652806123e952806124bb525080610bd75250613c006000f3fe6080604052600436106103595760003560e01c8063715018a6116101bb578063a457c2d7116100f7578063c49b9a8011610095578063dd62ed3e1161006f578063dd62ed3e146108cc578063f18287ed146108ec578063f2fde38b1461090c578063fda48a731461092c57610360565b8063c49b9a801461086c578063d543dbeb1461088c578063dd467064146108ac57610360565b8063b47fd563116100d1578063b47fd5631461080d578063b6c523241461082d578063b8c9d25c14610842578063c21ebd071461085757610360565b8063a457c2d7146107b8578063a69df4b5146107d8578063a9059cbb146107ed57610360565b80638ee88c531161016457806398118cb41161013e57806398118cb4146107595780639bb4dc601461076e5780639ca1639714610783578063a071dcf4146107a357610360565b80638ee88c531461070f57806395ba68d71461072f57806395d89b411461074457610360565b806388f820201161019557806388f82020146106b85780638c0b5e22146106d85780638da5cb5b146106ed57610360565b8063715018a6146106795780637217f4bc1461068e5780637a091849146106a357610360565b80633d87ea75116102955780635342acb4116102335780635ea4d29c1161020d5780635ea4d29c1461061a5780636a40701c1461062f5780636d33a4681461064457806370a082311461065957610360565b80635342acb4146105c55780635b89029c146105e55780635e4196ab1461060557610360565b80634bcc26161161026f5780634bcc2616146105505780634ca30b6c146105705780634e71d92d1461059057806352390c02146105a557610360565b80633d87ea75146105085780634549b0391461051b5780634a74bb021461053b57610360565b806323b872dd116103025780633685d419116102dc5780633685d4191461049357806337ad7cf5146104b357806339509351146104c85780633bd5d173146104e857610360565b806323b872dd146104315780632d83811914610451578063313ce5671461047157610360565b806313114a9d1161033357806313114a9d146103da57806318160ddd146103fc5780632060995e1461041157610360565b8063061c82d01461036257806306fdde0314610382578063095ea7b3146103ad57610360565b3661036057005b005b34801561036e57600080fd5b5061036061037d3660046130e9565b610941565b34801561038e57600080fd5b50610397610984565b6040516103a4919061322c565b60405180910390f35b3480156103b957600080fd5b506103cd6103c8366004613086565b6109bc565b6040516103a49190613221565b3480156103e657600080fd5b506103ef6109da565b6040516103a49190613ae3565b34801561040857600080fd5b506103ef6109e0565b34801561041d57600080fd5b506103ef61042c366004612f7b565b6109ee565b34801561043d57600080fd5b506103cd61044c366004613019565b610b05565b34801561045d57600080fd5b506103ef61046c3660046130e9565b610b95565b34801561047d57600080fd5b50610486610bd5565b6040516103a49190613b1d565b34801561049f57600080fd5b506103606104ae366004612f7b565b610bf9565b3480156104bf57600080fd5b506103ef610d7c565b3480156104d457600080fd5b506103cd6104e3366004613086565b610d82565b3480156104f457600080fd5b506103606105033660046130e9565b610dd6565b6103cd610516366004613086565b610ea9565b34801561052757600080fd5b506103ef610536366004613119565b610ebe565b34801561054757600080fd5b506103cd610f23565b34801561055c57600080fd5b5061036061056b3660046130e9565b610f2c565b34801561057c57600080fd5b5061036061058b366004612f97565b610f93565b34801561059c57600080fd5b506103606110f8565b3480156105b157600080fd5b506103606105c0366004612f7b565b611182565b3480156105d157600080fd5b506103cd6105e0366004612f7b565b6112bd565b3480156105f157600080fd5b50610360610600366004613059565b6112db565b34801561061157600080fd5b506103ef61133b565b34801561062657600080fd5b506103ef611341565b34801561063b57600080fd5b50610360611347565b34801561065057600080fd5b506103ef611378565b34801561066557600080fd5b506103ef610674366004612f7b565b61137e565b34801561068557600080fd5b506103606113e0565b34801561069a57600080fd5b506103ef61146c565b3480156106af57600080fd5b506103ef611472565b3480156106c457600080fd5b506103cd6106d3366004612f7b565b611478565b3480156106e457600080fd5b506103ef611496565b3480156106f957600080fd5b5061070261149c565b6040516103a49190613186565b34801561071b57600080fd5b5061036061072a3660046130e9565b6114ab565b34801561073b57600080fd5b506103ef6114e5565b34801561075057600080fd5b506103976114eb565b34801561076557600080fd5b506103ef611522565b34801561077a57600080fd5b506103ef611528565b34801561078f57600080fd5b5061036061079e366004613059565b611543565b3480156107af57600080fd5b506103ef6115a3565b3480156107c457600080fd5b506103cd6107d3366004613086565b6115a9565b3480156107e457600080fd5b50610360611617565b3480156107f957600080fd5b506103cd610808366004613086565b6116d0565b34801561081957600080fd5b506103ef610828366004612f7b565b6116e6565b34801561083957600080fd5b506103ef6116f8565b34801561084e57600080fd5b506107026116fe565b34801561086357600080fd5b50610702611722565b34801561087857600080fd5b506103606108873660046130b1565b611746565b34801561089857600080fd5b506103606108a73660046130e9565b6117c4565b3480156108b857600080fd5b506103606108c73660046130e9565b61181f565b3480156108d857600080fd5b506103ef6108e7366004612fe1565b6118b9565b3480156108f857600080fd5b50610360610907366004613086565b6118e4565b34801561091857600080fd5b50610360610927366004612f7b565b6119f6565b34801561093857600080fd5b506103ef611ab9565b610949611b2b565b6000546001600160a01b0390811691161461097f5760405162461bcd60e51b8152600401610976906135ec565b60405180910390fd5b601955565b60408051808201909152600781527f4d6f6f6e6572790000000000000000000000000000000000000000000000000060208201525b90565b60006109d06109c9611b2b565b8484611b2f565b5060015b92915050565b600c5490565b69d3c21bcecceda100000090565b600080610a5b610a1d7f000000000000000000000000000000000000000000000000000000000000000061137e565b610a4f610a2b61dead61137e565b610a4f610a38600061137e565b69d3c21bcecceda10000009063ffffffff611be316565b9063ffffffff611be316565b90507347feb4050175d8945014d8b9bc559bfecf92c5106333065a3a69d3c21bcecceda1000000610a8b8661137e565b47856040518563ffffffff1660e01b8152600401610aac9493929190613b02565b60206040518083038186803b158015610ac457600080fd5b505af4158015610ad8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afc9190613101565b9150505b919050565b6000610b148484846000611c0b565b610b8a84610b20611b2b565b610b8585604051806060016040528060288152602001613b7e602891396001600160a01b038a16600090815260066020526040812090610b5e611b2b565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611ceb16565b611b2f565b5060015b9392505050565b6000600b54821115610bb95760405162461bcd60e51b8152600401610976906133ad565b6000610bc3611d17565b9050610afc838263ffffffff611af916565b7f000000000000000000000000000000000000000000000000000000000000000090565b610c01611b2b565b6000546001600160a01b03908116911614610c2e5760405162461bcd60e51b8152600401610976906135ec565b6001600160a01b03811660009081526008602052604090205460ff16610c665760405162461bcd60e51b8152600401610976906136db565b60005b600a54811015610d7857816001600160a01b0316600a8281548110610c8a57fe5b6000918252602090912001546001600160a01b03161415610d7057600a80546000198101908110610cb757fe5b600091825260209091200154600a80546001600160a01b039092169183908110610cdd57fe5b6000918252602080832091909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039485161790559184168152600582526040808220829055600890925220805460ff19169055600a805480610d3c57fe5b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff19169055019055610d78565b600101610c69565b5050565b60115481565b60006109d0610d8f611b2b565b84610b858560066000610da0611b2b565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611d4016565b60086000610de2611b2b565b6001600160a01b0316815260208101919091526040016000205460ff1615610e1c5760405162461bcd60e51b81526004016109769061349e565b6000610e26611b2b565b90506000610e3383611d65565b505050506001600160a01b038416600090815260046020526040902054919250610e5f91905082611be3565b6001600160a01b038316600090815260046020526040902055600b54610e8b908263ffffffff611be316565b600b55600c54610ea1908463ffffffff611d4016565b600c55505050565b60006109d0610eb6611b2b565b848434611c0b565b600069d3c21bcecceda1000000831115610eea5760405162461bcd60e51b815260040161097690613621565b81610f09576000610efa84611d65565b509395506109d4945050505050565b6000610f1484611d65565b509295506109d4945050505050565b60165460ff1681565b610f34611b2b565b6000546001600160a01b03908116911614610f615760405162461bcd60e51b8152600401610976906135ec565b610f8d612710610f8169d3c21bcecceda10000008463ffffffff611abf16565b9063ffffffff611af916565b601e5550565b610f9b611b2b565b6000546001600160a01b03908116911614610fc85760405162461bcd60e51b8152600401610976906135ec565b600d805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b0386811691909117808455600e80548416878416178155600f80549094168684161784559082166000908152600760209081526040808320805460ff1990811660019081179092558554871685528285208054821683179055875487168552828520805482168317905597548616845260099092528083208054881683179055925484168252828220805487168217905593549092168252902080549092161790554262093a8081810160185560105562015180601155671bc16d674ec800006014556017556110bc60646117c4565b6110c66001611746565b6110f3307f0000000000000000000000000000000000000000000000000000000000000000600019611b2f565b505050565b6002600354141561111b5760405162461bcd60e51b8152600401610976906138a4565b60026003556008600061112c611b2b565b6001600160a01b0316815260208101919091526040016000205460ff16156111665760405162461bcd60e51b81526004016109769061349e565b600d5461117b906001600160a01b0316611db4565b6001600355565b61118a611b2b565b6000546001600160a01b039081169116146111b75760405162461bcd60e51b8152600401610976906135ec565b6001600160a01b03811660009081526008602052604090205460ff16156111f05760405162461bcd60e51b8152600401610976906136db565b6001600160a01b0381166000908152600460205260409020541561124a576001600160a01b03811660009081526004602052604090205461123090610b95565b6001600160a01b0382166000908152600560205260409020555b6001600160a01b03166000818152600860205260408120805460ff19166001908117909155600a805491820181559091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a801805473ffffffffffffffffffffffffffffffffffffffff19169091179055565b6001600160a01b031660009081526007602052604090205460ff1690565b6112e3611b2b565b6000546001600160a01b039081169116146113105760405162461bcd60e51b8152600401610976906135ec565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b60175481565b601d5481565b6002600354141561136a5760405162461bcd60e51b8152600401610976906138a4565b600260035561117b33611db4565b60145481565b6001600160a01b03811660009081526008602052604081205460ff16156113be57506001600160a01b038116600090815260056020526040902054610b00565b6001600160a01b0382166000908152600460205260409020546109d490610b95565b6113e8611b2b565b6000546001600160a01b039081169116146114155760405162461bcd60e51b8152600401610976906135ec565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60105481565b601e5490565b6001600160a01b031660009081526008602052604090205460ff1690565b60135481565b6000546001600160a01b031690565b6114b3611b2b565b6000546001600160a01b039081169116146114e05760405162461bcd60e51b8152600401610976906135ec565b601b55565b60185481565b60408051808201909152600481527f4d4e525900000000000000000000000000000000000000000000000000000000602082015290565b601b5481565b6000601854421061153c57506010546109b9565b5060115490565b61154b611b2b565b6000546001600160a01b039081169116146115785760405162461bcd60e51b8152600401610976906135ec565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b60195481565b60006109d06115b6611b2b565b84610b8585604051806060016040528060258152602001613ba660259139600660006115e0611b2b565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611ceb16565b6001546001600160a01b031633146116415760405162461bcd60e51b81526004016109769061396f565b60025442116116625760405162461bcd60e51b81526004016109769061377e565b600154600080546040516001600160a01b0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36001546000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03909216919091179055565b60006109d06116dd611b2b565b84846000611c0b565b60156020526000908152604090205481565b60025490565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b61174e611b2b565b6000546001600160a01b0390811691161461177b5760405162461bcd60e51b8152600401610976906135ec565b6016805460ff19168215151790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906117b9908390613221565b60405180910390a150565b6117cc611b2b565b6000546001600160a01b039081169116146117f95760405162461bcd60e51b8152600401610976906135ec565b611819612710610f8169d3c21bcecceda10000008463ffffffff611abf16565b60135550565b611827611b2b565b6000546001600160a01b039081169116146118545760405162461bcd60e51b8152600401610976906135ec565b600080546001805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b0384161790915516815542820160025560405181907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b600260035414156119075760405162461bcd60e51b8152600401610976906138a4565b600260035560086000611918611b2b565b6001600160a01b0316815260208101919091526040016000205460ff16156119525760405162461bcd60e51b8152600401610976906137b5565b6001600160a01b03821630141561197b5760405162461bcd60e51b815260040161097690613812565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614156119cd5760405162461bcd60e51b8152600401610976906139cc565b600d546119ed906001600160a01b0384811691168363ffffffff61214b16565b50506001600355565b6119fe611b2b565b6000546001600160a01b03908116911614611a2b5760405162461bcd60e51b8152600401610976906135ec565b6001600160a01b038116611a515760405162461bcd60e51b815260040161097690613319565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60125481565b600082611ace575060006109d4565b82820282848281611adb57fe5b0414610b8e5760405162461bcd60e51b81526004016109769061358f565b6000808211611b1a5760405162461bcd60e51b815260040161097690613558565b818381611b2357fe5b049392505050565b3390565b6001600160a01b038316611b555760405162461bcd60e51b8152600401610976906132bc565b6001600160a01b038216611b7b5760405162461bcd60e51b8152600401610976906138db565b6001600160a01b0380841660008181526006602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611bd6908590613ae3565b60405180910390a3505050565b600082821115611c055760405162461bcd60e51b815260040161097690613467565b50900390565b6001600160a01b038416611c315760405162461bcd60e51b81526004016109769061325f565b6001600160a01b038316611c575760405162461bcd60e51b81526004016109769061367e565b60008211611c775760405162461bcd60e51b815260040161097690613710565b611c83848484846121ce565b611c8d8484612255565b6001600160a01b03841660009081526007602052604090205460019060ff1680611ccf57506001600160a01b03841660009081526007602052604090205460ff165b15611cd8575060005b611ce48585858461258c565b5050505050565b60008184841115611d0f5760405162461bcd60e51b8152600401610976919061322c565b505050900390565b6000806000611d246126b2565b9092509050611d39828263ffffffff611af916565b9250505090565b600082820183811015610b8e5760405162461bcd60e51b815260040161097690613376565b6000806000806000806000806000611d7c8a612847565b9250925092506000806000611d9a8d8686611d95611d17565b612889565b919f909e50909c50959a5093985091965092945050505050565b6001600160a01b038116600090815260156020526040902054421015611dec5760405162461bcd60e51b815260040161097690613a29565b6000611df78261137e565b11611e145760405162461bcd60e51b815260040161097690613a86565b6000611e1f826109ee565b9050601d548110611eee577347feb4050175d8945014d8b9bc559bfecf92c51063ee8d40837f000000000000000000000000000000000000000000000000000000000000000061dead611e7985600563ffffffff611af916565b6040518463ffffffff1660e01b8152600401611e97939291906131bb565b60006040518083038186803b158015611eaf57600080fd5b505af4158015611ec3573d6000803e3d6000fd5b50505050611eeb611ede600583611af990919063ffffffff16565b829063ffffffff611be316565b90505b611ef6611528565b6001600160a01b0380841660008181526015602052604090204293909301909255600d5416141561206f577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015611f7c57600080fd5b505af1158015611f90573d6000803e3d6000fd5b5050505050611fa9600182611abf90919063ffffffff16565b600d546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081529192506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169263a9059cbb926120179216908590600401613208565b602060405180830381600087803b15801561203157600080fd5b505af1158015612045573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206991906130cd565b50610d78565b6000612079611b2b565b6001600160a01b03168260405161208f906109b9565b60006040518083038185875af1925050503d80600081146120cc576040519150601f19603f3d011682016040523d82523d6000602084013e6120d1565b606091505b50509050806120f25760405162461bcd60e51b815260040161097690613938565b6001600160a01b038316600090815260156020526040908190205490517f76a3a606d310d32750e15a3d246d186b789084096189d51661559b0f97f3bec99161213e918691869161319a565b60405180910390a1505050565b6110f38363a9059cbb60e01b848460405160240161216a929190613208565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526128f1565b6001600160a01b03841660009081526009602052604090205460ff1615801561221057506001600160a01b03831660009081526009602052604090205460ff16155b1561224f576014548110801561222857506017544210155b1561224f5760135482111561224f5760405162461bcd60e51b81526004016109769061340a565b50505050565b60006122603061137e565b9050601354811061227057506013545b601e54600f54908210159074010000000000000000000000000000000000000000900460ff161580156122a05750805b80156122de57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031614155b80156122ec575060165460ff165b801561233e57506001600160a01b0384163014801561233c57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316145b155b1561224f57601e549150600061235b83600263ffffffff611af916565b905060006123746002610f81868563ffffffff611be316565b90506000612388858363ffffffff611be316565b9050600061239c848463ffffffff611d4016565b6040517fd8385ca000000000000000000000000000000000000000000000000000000000815290915047907347feb4050175d8945014d8b9bc559bfecf92c5109063d8385ca090612413907f0000000000000000000000000000000000000000000000000000000000000000908690600401613208565b60006040518083038186803b15801561242b57600080fd5b505af415801561243f573d6000803e3d6000fd5b5050505060006124588247611be390919063ffffffff16565b9050600061246d82600363ffffffff611af916565b600f546040517fcf6c62ea0000000000000000000000000000000000000000000000000000000081529192507347feb4050175d8945014d8b9bc559bfecf92c5109163cf6c62ea916124f1917f0000000000000000000000000000000000000000000000000000000000000000916001600160a01b0316908a9087906004016131df565b60606040518083038186803b15801561250957600080fd5b505af415801561251d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612541919061313d565b5050507f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb56186838760405161257793929190613aec565b60405180910390a15050505050505050505050565b8061259957612599612980565b6125a383836129b2565b6001600160a01b03841660009081526008602052604090205460ff1680156125e457506001600160a01b03831660009081526008602052604090205460ff16155b156125f9576125f4848484612a9a565b6126a5565b6001600160a01b03841660009081526008602052604090205460ff1615801561263a57506001600160a01b03831660009081526008602052604090205460ff165b1561264a576125f4848484612bd0565b6001600160a01b03841660009081526008602052604090205460ff16801561268a57506001600160a01b03831660009081526008602052604090205460ff165b1561269a576125f4848484612c8b565b6126a5848484612d0a565b8061224f5761224f612d54565b600b54600090819069d3c21bcecceda1000000825b600a548110156127ff578260046000600a84815481106126e357fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061274857508160056000600a848154811061272157fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561276757600b5469d3c21bcecceda100000094509450505050612843565b6127ad60046000600a848154811061277b57fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054849063ffffffff611be316565b92506127f560056000600a84815481106127c357fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054839063ffffffff611be316565b91506001016126c7565b50600b5461281d9069d3c21bcecceda100000063ffffffff611af916565b82101561283d57600b5469d3c21bcecceda1000000935093505050612843565b90925090505b9091565b60008060008061285685612d62565b9050600061286386612d7e565b9050600061287b82610a4f898663ffffffff611be316565b979296509094509092505050565b600080808061289e888663ffffffff611abf16565b905060006128b2888763ffffffff611abf16565b905060006128c6888863ffffffff611abf16565b905060006128de82610a4f868663ffffffff611be316565b939b939a50919850919650505050505050565b6060612946826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d9a9092919063ffffffff16565b8051909150156110f3578080602001905181019061296491906130cd565b6110f35760405162461bcd60e51b815260040161097690613847565b6019541580156129905750601b54155b1561299a576129b0565b60198054601a55601b8054601c55600091829055555b565b60006129bd8361137e565b905060006129c9611528565b6012546040517f8958b5a90000000000000000000000000000000000000000000000000000000081529192507347feb4050175d8945014d8b9bc559bfecf92c51091638958b5a991612a2391869186918990600401613b02565b60206040518083038186803b158015612a3b57600080fd5b505af4158015612a4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a739190613101565b6001600160a01b039094166000908152601560205260409020805494909401909355505050565b600080600080600080612aac87611d65565b6001600160a01b038f16600090815260056020526040902054959b50939950919750955093509150612ae4908863ffffffff611be316565b6001600160a01b038a16600090815260056020908152604080832093909355600490522054612b19908763ffffffff611be316565b6001600160a01b03808b1660009081526004602052604080822093909355908a1681522054612b4e908663ffffffff611d4016565b6001600160a01b038916600090815260046020526040902055612b7081612db1565b612b7a8483612e4b565b876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef85604051612bbd9190613ae3565b60405180910390a3505050505050505050565b600080600080600080612be287611d65565b6001600160a01b038f16600090815260046020526040902054959b50939950919750955093509150612c1a908763ffffffff611be316565b6001600160a01b03808b16600090815260046020908152604080832094909455918b16815260059091522054612c56908463ffffffff611d4016565b6001600160a01b038916600090815260056020908152604080832093909355600490522054612b4e908663ffffffff611d4016565b600080600080600080612c9d87611d65565b6001600160a01b038f16600090815260056020526040902054959b50939950919750955093509150612cd5908863ffffffff611be316565b6001600160a01b038a16600090815260056020908152604080832093909355600490522054612c1a908763ffffffff611be316565b600080600080600080612d1c87611d65565b6001600160a01b038f16600090815260046020526040902054959b50939950919750955093509150612b19908763ffffffff611be316565b601a54601955601c54601b55565b60006109d46064610f8160195485611abf90919063ffffffff16565b60006109d46064610f81601b5485611abf90919063ffffffff16565b6060612da98484600085612e7b565b949350505050565b6000612dbb611d17565b90506000612dcf838363ffffffff611abf16565b30600090815260046020526040902054909150612df2908263ffffffff611d4016565b3060009081526004602090815260408083209390935560089052205460ff16156110f35730600090815260056020526040902054612e36908463ffffffff611d4016565b30600090815260056020526040902055505050565b600b54612e5e908363ffffffff611be316565b600b55600c54612e74908263ffffffff611d4016565b600c555050565b606082471015612e9d5760405162461bcd60e51b8152600401610976906134fb565b612ea685612f3c565b612ec25760405162461bcd60e51b815260040161097690613747565b60006060866001600160a01b03168587604051612edf919061316a565b60006040518083038185875af1925050503d8060008114612f1c576040519150601f19603f3d011682016040523d82523d6000602084013e612f21565b606091505b5091509150612f31828286612f42565b979650505050505050565b3b151590565b60608315612f51575081610b8e565b825115612f615782518084602001fd5b8160405162461bcd60e51b8152600401610976919061322c565b600060208284031215612f8c578081fd5b8135610b8e81613b57565b600080600060608486031215612fab578182fd5b8335612fb681613b57565b92506020840135612fc681613b57565b91506040840135612fd681613b57565b809150509250925092565b60008060408385031215612ff3578182fd5b8235612ffe81613b57565b9150602083013561300e81613b57565b809150509250929050565b60008060006060848603121561302d578283fd5b833561303881613b57565b9250602084013561304881613b57565b929592945050506040919091013590565b6000806040838503121561306b578182fd5b823561307681613b57565b9150602083013561300e81613b6f565b60008060408385031215613098578182fd5b82356130a381613b57565b946020939093013593505050565b6000602082840312156130c2578081fd5b8135610b8e81613b6f565b6000602082840312156130de578081fd5b8151610b8e81613b6f565b6000602082840312156130fa578081fd5b5035919050565b600060208284031215613112578081fd5b5051919050565b6000806040838503121561312b578182fd5b82359150602083013561300e81613b6f565b600080600060608486031215613151578283fd5b8351925060208401519150604084015190509250925092565b6000825161317c818460208701613b2b565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039390931683526020830191909152604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b600060208252825180602084015261324b816040850160208701613b2b565b601f01601f19169190910160400192915050565b60208082526025908201527f42455032303a207472616e736665722066726f6d20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f42455032303a20617070726f76652066726f6d20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526036908201527f4d6f6f6e6572793a207265666c656374696f6e46726f6d546f6b656e20616d6f60408201527f756e7420686967686572207468616e20737570706c7900000000000000000000606082015260800190565b60208082526031908201527f4d6f6f6e6572793a207472616e7366657220616d6f756e74206578636565647360408201527f20746865206d61785478416d6f756e742e000000000000000000000000000000606082015260800190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526035908201527f4d6f6f6e6572793a206578636c75646564206164647265737365732063616e6e60408201527f6f742063616c6c20746869732066756e6374696f6e0000000000000000000000606082015260800190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526022908201527f4d6f6f6e6572793a20616d6f756e7420686967686572207468616e207375707060408201527f6c79000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526023908201527f42455032303a207472616e7366657220746f20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4d6f6f6e6572793a204163636f756e74206973206e6f74206578636c75646564604082015260600190565b6020808252601b908201527f42455032303a207472616e73666572207a65726f20616d6f756e740000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601f908201527f436f6e7472616374206973206c6f636b656420756e74696c2037206461797300604082015260600190565b60208082526035908201527f4d6f6f6e6572793a204578636c75646564206164647265737365732063616e6e60408201527f6f742063616c6c20746869732066756e6374696f6e0000000000000000000000606082015260800190565b6020808252818101527f4d6f6f6e6572793a2063616e6e6f74207265636f76657220746f20244d4e5259604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526022908201527f42455032303a20617070726f766520746f20746865207a65726f20616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f4572726f723a2063616e6e6f7420776974686472617720726577617264000000604082015260600190565b60208082526023908201527f596f7520646f6e27742068617665207065726d697373696f6e20746f20756e6c60408201527f6f636b0000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f4d6f6f6e65723a2063616e6e6f74207265636f76657220746f202443414b452060408201527f4c50000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f4d6f6f6e6572793a206e65787420617661696c61626c652074696d65206e6f7460408201527f2072656163686564000000000000000000000000000000000000000000000000606082015260800190565b60208082526027908201527f4d6f6f6e6572793a206d757374206f776e20244d4e525920746f20636c61696d60408201527f2072657761726400000000000000000000000000000000000000000000000000606082015260800190565b90815260200190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b60ff91909116815260200190565b60005b83811015613b46578181015183820152602001613b2e565b8381111561224f5750506000910152565b6001600160a01b0381168114613b6c57600080fd5b50565b8015158114613b6c57600080fdfe42455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636542455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212208d856c69284c435ff27383a15ad0ad28b1a428b937c6130fd543feb6c7b0e77064736f6c6343000608003300000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024e000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c

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

00000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024e000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c

-----Decoded View---------------
Arg [0] : routerAddress (address): 0x10ed43c718714eb63d5aa57b78b54704e256024e
Arg [1] : wbnb_ (address): 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024e
Arg [1] : 000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c


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.