Contract 0x2556fDd7c00f17C211ec56D16055FaF5E8656590 2

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd0a3c2617550b571cd44057f692f9ed6531b26768df2dc9043ea0c207c811621Deposit120979512021-10-26 4:57:006 mins ago0x6db92e4c5a4a417772747ee1c277392e1cd28f4a IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054736
0x6ba849441f9ee7408952482c097281659510320308d63d1d3d76e2ef25edb76dDeposit120962692021-10-26 3:32:541 hr 30 mins ago0x17b05a32801d2f0e6d1e581f5cfd917c97e18976 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00062231
0x87d28b25f26f9fb35c249865be27c2fe4872e2cb71398cbf8ecd083a419900aeDeposit120953622021-10-26 2:47:332 hrs 15 mins ago0xec4b2e824f69cb2ff1b0d3f98b5ade2e5b77a603 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00067333
0x8ac8857484d14a767e16a0412167a86824d515ba04200062c9f806e365e8fb1bDeposit120953532021-10-26 2:47:062 hrs 16 mins ago0xec4b2e824f69cb2ff1b0d3f98b5ade2e5b77a603 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054736
0x9f1fc3002f583538c42494e8f440a0c115a59505a5fb8ee886946d36888f3e0dDeposit120953522021-10-26 2:47:032 hrs 16 mins ago0xec4b2e824f69cb2ff1b0d3f98b5ade2e5b77a603 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054747
0x7c8979785a0f0fb3a34c0bdc0ea8a4367b680bbacc133621a63c2c0eec6d421fDeposit120951612021-10-26 2:37:302 hrs 26 mins ago0xce8f7550b722e02539fe216b2d6891b254626613 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00081412
0xaf8e7c89807c16d1211eafedc309398236c06d39cb6cf8bd5a6b677d8ce029e5Deposit120951542021-10-26 2:37:092 hrs 26 mins ago0xce8f7550b722e02539fe216b2d6891b254626613 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054736
0x216fe496460839c11043e93ab7999f259b076229044b4fb0358993b2a2afbd67Deposit120951492021-10-26 2:36:542 hrs 26 mins ago0xce8f7550b722e02539fe216b2d6891b254626613 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054747
0x77b19b7db488997cffd995eb80d3894040c7d794062befdc69332592eb86ab6fDeposit120939032021-10-26 1:34:363 hrs 28 mins ago0xb314bea376bb4d2dc838b436ea35123ad85740de IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00081412
0x0e0b77fc0d348dccbe9e44136b1c9d685b51e094a10520079fdf880bb4c94ca7Deposit120938912021-10-26 1:34:003 hrs 29 mins ago0xb314bea376bb4d2dc838b436ea35123ad85740de IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054747
0xd78e5ee941aa6a30183170495a1534e9e51ed4569c1bea7bf8a6c88fab201912Deposit120938892021-10-26 1:33:543 hrs 29 mins ago0xb314bea376bb4d2dc838b436ea35123ad85740de IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054736
0xdbb637c4954498bc677c547f69ac2d8c9ba4ef2a75fddf42f9aa83eb68e069d0Deposit120933162021-10-26 1:05:133 hrs 58 mins ago0x38f30fe8e6636a5d81af501e83d92464ea0e3476 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00081406
0xe56ca38f969fb72fbd7152868e11a18fa451ca0d88c68fd713842f1f6ee9464eDeposit120932922021-10-26 1:04:013 hrs 59 mins ago0x38f30fe8e6636a5d81af501e83d92464ea0e3476 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054734
0x95bde9d44c81d301586ce0da50af199290d3ef1c27bde3d00ba91617abcdd085Deposit120932492021-10-26 1:01:524 hrs 1 min ago0x38f30fe8e6636a5d81af501e83d92464ea0e3476 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054731
0x7751933fa67e7ef693ce176bab09512b5295976a6172e763ac428cb212b37e8eDeposit120908302021-10-25 23:00:356 hrs 2 mins ago0x86b515558e85468df5aa8363aca02ff65d0b8b54 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00081406
0xa72e05b0470549bfce821829d2413e6143f0ac33a9c3125fe018fc17722e9934Deposit120902662021-10-25 22:32:236 hrs 31 mins ago0xeefb26cb4fe025e741ae67acfd9133454378994d IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00081412
0x7c698240a6499219fdbf826a70836abc8c35f00225bf358f4f1cb20098c1972eDeposit120902562021-10-25 22:31:536 hrs 31 mins ago0xeefb26cb4fe025e741ae67acfd9133454378994d IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.000814
0x7a2f8cc1b43b25d455c98d620fa012e17eee3b550caab96f343ae44cf7bcac80Withdraw120900832021-10-25 22:23:146 hrs 40 mins ago0xc383f819bcbf568dbdf4d7a6bb3de3152d0e7558 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00075148
0x18b82454ff016b94ad6a563c323850b334418610cf8f2341caa6115c7686a5b0Deposit120900732021-10-25 22:22:446 hrs 40 mins ago0xc383f819bcbf568dbdf4d7a6bb3de3152d0e7558 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054736
0x13f3a6f39a40e1507e1f960050ad272d90ba84fc0efdd7778702de8d0c4b9b06Withdraw120900612021-10-25 22:22:086 hrs 41 mins ago0xc383f819bcbf568dbdf4d7a6bb3de3152d0e7558 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00073948
0x00e6294798ec3210024cafe767740f0286ab264400633d9653e42cc094f9b338Deposit120900522021-10-25 22:21:416 hrs 41 mins ago0xc383f819bcbf568dbdf4d7a6bb3de3152d0e7558 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054736
0xbb2892f54c2b117dd6c51d3fe40164380896a2e198c17d91bbe16b0eb479ec2dDeposit120896032021-10-25 21:58:297 hrs 5 mins ago0x8f9f480fd03d2a25eacfbf462654e8a259b05d89 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.001016255
0x69a23f1eb52d4574898431f6903b4e31391cbd6f3a7329c0cad0932c5bc474ebDeposit120895962021-10-25 21:58:087 hrs 5 mins ago0x8f9f480fd03d2a25eacfbf462654e8a259b05d89 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054731
0xe44bce0f74d1537495aaf952149fa2d5e33aa4bb6bfbd3f9171bc641d35532bcDeposit120889452021-10-25 21:25:357 hrs 37 mins ago0x83e77c2eac1eb6fce71eaf82a3759b22fda29a58 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00054747
0x28856f554d4c556c5e1a686b564c06170b9b0ef39e8dd4d573f6fc21b3c44471Deposit120887512021-10-25 21:15:537 hrs 47 mins ago0xff7cbc92c129a2e7831a30f5ef186289de587d93 IN  0x2556fdd7c00f17c211ec56d16055faf5e86565900 BNB0.00081412
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Masterchef

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 9 : Masterchef.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';

import './interfaces/IBEP20.sol';
import './interfaces/IMars.sol';
import './interfaces/INativeTokenHolderVault.sol';
import './utils/SafeBEP20.sol';

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

    // Info of each user.
    struct UserInfo {
        uint256 amount;         // How many LP tokens the user has provided.
        uint256 rewardDebt;     // Reward debt. See explanation below.
        uint256 depositedAt;
    }

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

    // The Mars TOKEN!
    IMars public mars;
    // Dev address.
    address public devaddr;
    // Mars tokens created per block.
    uint256 public marsPerBlock;
    // Bonus muliplier for early mars makers.
    uint256 public constant BONUS_MULTIPLIER = 1;
    // Deposit Fee address
    address public feeAddress;
    // Withdraw fee address
    address public treasuryAddress;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping (uint256 => mapping (address => UserInfo)) public userInfo;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when Mars mining starts.
    uint256 public startBlock;
    INativeTokenHolderVault public nativeTokenHolderVault;

    uint256 public WITHDRAWAL_FEE_DEDUCT_PERIOD = 3 days;
    uint256 public withdrawFee = 200;   // 2% for withdraw fee
    uint256 public deductedWithdrawFee = 50;    // .5% for deducted withdraw fee

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);

    constructor(
        IMars _mars,
        address _devaddr,
        address _feeAddress,
        uint256 _marsPerBlock,
        uint256 _startBlock,
        address _nativeTokenHolderVault
    ) public {
        mars = _mars;
        devaddr = _devaddr;
        feeAddress = _feeAddress;
        treasuryAddress = msg.sender;
        marsPerBlock = _marsPerBlock;
        startBlock = _startBlock;
        nativeTokenHolderVault = INativeTokenHolderVault(_nativeTokenHolderVault);
    }

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

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) public onlyOwner {
        require(_depositFeeBP <= 10000, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accMarsPerShare: 0,
            depositFeeBP: _depositFeeBP
        }));
    }

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

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        return _to.sub(_from).mul(BONUS_MULTIPLIER);
    }

    // View function to see pending Marss on frontend.
    function pendingMars(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accMarsPerShare = pool.accMarsPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 marsReward = multiplier.mul(marsPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accMarsPerShare = accMarsPerShare.add(marsReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accMarsPerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 marsReward = multiplier.mul(marsPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        mars.mint(devaddr, marsReward.div(10));
        mars.mint(address(this), marsReward);
        pool.accMarsPerShare = pool.accMarsPerShare.add(marsReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for Mars allocation.
    function deposit(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accMarsPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeMarsTransfer(msg.sender, pending);
            }
        }
        if(_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.depositedAt = block.timestamp;
            if(pool.depositFeeBP > 0){
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                nativeTokenHolderVault.updateHolders(msg.sender, address(pool.lpToken), user.amount, true);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accMarsPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accMarsPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeMarsTransfer(msg.sender, pending);
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            uint withdrawalFee = _withdrawalFee(_amount, user.depositedAt);
            if (withdrawalFee > 0) {
                pool.lpToken.safeTransfer(treasuryAddress, withdrawalFee);
            }
            _amount = _amount.sub(withdrawalFee);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
            nativeTokenHolderVault.updateHolders(msg.sender, address(pool.lpToken), user.amount, false);
        }
        user.rewardDebt = user.amount.mul(pool.accMarsPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.lpToken.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    // Safe mars transfer function, just in case if rounding error causes pool to not have enough Marss.
    function safeMarsTransfer(address _to, uint256 _amount) internal {
        uint256 marsBal = mars.balanceOf(address(this));
        if (_amount > marsBal) {
            mars.transfer(_to, marsBal);
        } else {
            mars.transfer(_to, _amount);
        }
    }

    // Update dev address by the previous dev.
    function dev(address _devaddr) public {
        require(msg.sender == devaddr, "dev: wut?");
        devaddr = _devaddr;
    }

    function setFeeAddress(address _feeAddress) public {
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        feeAddress = _feeAddress;
    }

    function setTreasuryAddress(address _treasuryAddress) public {
        require(msg.sender == treasuryAddress, 'setTreasuryAddress: FORBIDDEN');
        treasuryAddress = _treasuryAddress;
    }

    //Pancake has to add hidden dummy pools inorder to alter the emission, here we make it simple and transparent to all.
    function updateEmissionRate(uint256 _marsPerBlock) public onlyOwner {
        massUpdatePools();
        marsPerBlock = _marsPerBlock;
    }

    function setWithdrawFee(uint256 _fee) public onlyOwner {
        require(_fee < 10000, 'invalid fee');
        withdrawFee = _fee;
    }

    function setDeductedWithdrawFee(uint256 _fee) public onlyOwner {
        require(_fee < 10000, 'invalid fee');
        deductedWithdrawFee = _fee;
    }

    function setNativeTokenHolderVault(address _nativeTokenHolderVault) public onlyOwner {
        nativeTokenHolderVault = INativeTokenHolderVault(_nativeTokenHolderVault);
    }

    function _withdrawalFee(uint amount, uint depositedAt) internal view returns (uint) {
        if (depositedAt.add(WITHDRAWAL_FEE_DEDUCT_PERIOD) > block.timestamp) {
            return amount.mul(withdrawFee).div(10000);
        }
        return amount.mul(deductedWithdrawFee).div(10000);
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

File 3 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            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) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

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

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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).
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 4 of 9 : IBEP20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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 5 of 9 : IMars.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0;

interface IMars {
  function mint(address _to, uint256 _amount) external;
  function transfer(address _to, uint256 _amount) external;
  function balanceOf(address user) external returns (uint256);
}

File 6 of 9 : INativeTokenHolderVault.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

interface INativeTokenHolderVault {
  function updateHolders(address _user, address _token, uint256 _holdingAmount, bool _isDeposited) external;
}

File 7 of 9 : SafeBEP20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0;

import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@openzeppelin/contracts/utils/Address.sol';

import '../interfaces/IBEP20.sol';

library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

    function safeTransferFrom(IBEP20 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
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IBEP20 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),
            "SafeBEP20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IBEP20 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(IBEP20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeBEP20: 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(IBEP20 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, "SafeBEP20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IMars","name":"_mars","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_marsPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"address","name":"_nativeTokenHolderVault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_FEE_DEDUCT_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deductedWithdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mars","outputs":[{"internalType":"contract IMars","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marsPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nativeTokenHolderVault","outputs":[{"internalType":"contract INativeTokenHolderVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingMars","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accMarsPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setDeductedWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nativeTokenHolderVault","type":"address"}],"name":"setNativeTokenHolderVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryAddress","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marsPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"depositedAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405260006008556203f480600b5560c8600c556032600d553480156200002757600080fd5b5060405162003b5738038062003b5783398181016040528101906200004d9190620002a9565b60006200005f6200025c60201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35085600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826003819055508160098190555080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050620003df565b600033905090565b600081519050620002758162000391565b92915050565b6000815190506200028c81620003ab565b92915050565b600081519050620002a381620003c5565b92915050565b60008060008060008060c08789031215620002c357600080fd5b6000620002d389828a016200027b565b9650506020620002e689828a0162000264565b9550506040620002f989828a0162000264565b94505060606200030c89828a0162000292565b93505060806200031f89828a0162000292565b92505060a06200033289828a0162000264565b9150509295509295509295565b60006200034c8262000367565b9050919050565b600062000360826200033f565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6200039c816200033f565b8114620003a857600080fd5b50565b620003b68162000353565b8114620003c257600080fd5b50565b620003d08162000387565b8114620003dc57600080fd5b50565b61376880620003ef6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80638aa285501161011a578063bde23d6c116100ad578063d49e77cd1161007c578063d49e77cd14610581578063d96384221461059f578063e2bbb158146105bb578063e941fa78146105d7578063f2fde38b146105f557610206565b8063bde23d6c146104f7578063c1b5dfe414610515578063c5f956af14610533578063ce56fa051461055157610206565b806393f1a40b116100e957806393f1a40b1461046f578063998bc4b3146104a1578063aa6637dd146104bd578063b6ac642a146104db57610206565b80638aa28550146103e75780638d88a90e146104055780638da5cb5b146104215780638dbb1e3a1461043f57610206565b806348cd4cb11161019d5780636319e9f51161016c5780636319e9f51461036d5780636605bfda14610389578063715018a6146103a557806384e82a33146103af5780638705fcd4146103cb57610206565b806348cd4cb11461030d57806351eb05a61461032b5780635312ea8e14610347578063630b5ba11461036357610206565b806317caf6f1116101d957806317caf6f11461029757806341275358146102b5578063441a3e70146102d357806346cc557b146102ef57610206565b8063081e3eda1461020b5780630ba84cd21461022957806310ace70b146102455780631526fe2714610263575b600080fd5b610213610611565b6040516102209190613367565b60405180910390f35b610243600480360381019061023e9190612a44565b61061e565b005b61024d6106ac565b60405161025a9190613367565b60405180910390f35b61027d60048036038101906102789190612a44565b6106b2565b60405161028e95949392919061313c565b60405180910390f35b61029f610726565b6040516102ac9190613367565b60405180910390f35b6102bd61072c565b6040516102ca919061307c565b60405180910390f35b6102ed60048036038101906102e89190612b35565b610752565b005b6102f7610b09565b60405161030491906131aa565b60405180910390f35b610315610b2f565b6040516103229190613367565b60405180910390f35b61034560048036038101906103409190612a44565b610b35565b005b610361600480360381019061035c9190612a44565b610e6c565b005b61036b610fcd565b005b61038760048036038101906103829190612a44565b611000565b005b6103a3600480360381019061039e91906129f2565b6110ca565b005b6103ad61119e565b005b6103c960048036038101906103c49190612ad2565b6112d8565b005b6103e560048036038101906103e091906129f2565b6114dc565b005b6103ef6115b0565b6040516103fc9190613367565b60405180910390f35b61041f600480360381019061041a91906129f2565b6115b5565b005b610429611689565b604051610436919061307c565b60405180910390f35b61045960048036038101906104549190612b35565b6116b2565b6040516104669190613367565b60405180910390f35b61048960048036038101906104849190612a96565b6116e2565b60405161049893929190613382565b60405180910390f35b6104bb60048036038101906104b691906129f2565b611719565b005b6104c56117d9565b6040516104d2919061318f565b60405180910390f35b6104f560048036038101906104f09190612a44565b6117ff565b005b6104ff6118c9565b60405161050c9190613367565b60405180910390f35b61051d6118cf565b60405161052a9190613367565b60405180910390f35b61053b6118d5565b604051610548919061307c565b60405180910390f35b61056b60048036038101906105669190612a96565b6118fb565b6040516105789190613367565b60405180910390f35b610589611b55565b604051610596919061307c565b60405180910390f35b6105b960048036038101906105b49190612b71565b611b7b565b005b6105d560048036038101906105d09190612b35565b611d83565b005b6105df612172565b6040516105ec9190613367565b60405180910390f35b61060f600480360381019061060a91906129f2565b612178565b005b6000600680549050905090565b610626612321565b73ffffffffffffffffffffffffffffffffffffffff16610644611689565b73ffffffffffffffffffffffffffffffffffffffff161461069a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610691906132e7565b60405180910390fd5b6106a2610fcd565b8060038190555050565b60035481565b600681815481106106c257600080fd5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900461ffff16905085565b60085481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006006838154811061078e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508281600001541015610839576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083090613327565b60405180910390fd5b61084284610b35565b600061088c826001015461087e64e8d4a510006108708760030154876000015461232990919063ffffffff16565b61233f90919063ffffffff16565b61235590919063ffffffff16565b905060008111156108a2576108a1338261236b565b5b6000841115610a79576108c284836000015461235590919063ffffffff16565b826000018190555060006108da85846002015461254d565b9050600081111561095757610956600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125cd9092919063ffffffff16565b5b61096a818661235590919063ffffffff16565b94506109bb33868660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125cd9092919063ffffffff16565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca8ed568338660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866000015460006040518563ffffffff1660e01b8152600401610a4594939291906130ce565b600060405180830381600087803b158015610a5f57600080fd5b505af1158015610a73573d6000803e3d6000fd5b50505050505b610aab64e8d4a51000610a9d8560030154856000015461232990919063ffffffff16565b61233f90919063ffffffff16565b8260010181905550843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56886604051610afa9190613367565b60405180910390a35050505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60095481565b600060068281548110610b71577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905080600201544311610b925750610e69565b60008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610bf1919061307c565b60206040518083038186803b158015610c0957600080fd5b505afa158015610c1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c419190612a6d565b90506000811480610c56575060008260010154145b15610c6b574382600201819055505050610e69565b6000610c7b8360020154436116b2565b90506000610cbe600854610cb08660010154610ca26003548761232990919063ffffffff16565b61232990919063ffffffff16565b61233f90919063ffffffff16565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610d35600a8561233f90919063ffffffff16565b6040518363ffffffff1660e01b8152600401610d52929190613113565b600060405180830381600087803b158015610d6c57600080fd5b505af1158015610d80573d6000803e3d6000fd5b50505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401610de1929190613113565b600060405180830381600087803b158015610dfb57600080fd5b505af1158015610e0f573d6000803e3d6000fd5b50505050610e53610e4084610e3264e8d4a510008561232990919063ffffffff16565b61233f90919063ffffffff16565b856003015461265390919063ffffffff16565b8460030181905550438460020181905550505050505b50565b600060068281548110610ea8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006007600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015490506000826000018190555060008260010181905550610f7833828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125cd9092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059583604051610fbf9190613367565b60405180910390a350505050565b6000600680549050905060005b81811015610ffc57610feb81610b35565b80610ff590613607565b9050610fda565b5050565b611008612321565b73ffffffffffffffffffffffffffffffffffffffff16611026611689565b73ffffffffffffffffffffffffffffffffffffffff161461107c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611073906132e7565b60405180910390fd5b61271081106110c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b790613267565b60405180910390fd5b80600d8190555050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461115a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611151906132a7565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6111a6612321565b73ffffffffffffffffffffffffffffffffffffffff166111c4611689565b73ffffffffffffffffffffffffffffffffffffffff161461121a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611211906132e7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6112e0612321565b73ffffffffffffffffffffffffffffffffffffffff166112fe611689565b73ffffffffffffffffffffffffffffffffffffffff1614611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b906132e7565b60405180910390fd5b6127108261ffff16111561139d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611394906131e7565b60405180910390fd5b80156113ac576113ab610fcd565b5b600060095443116113bf576009546113c1565b435b90506113d88560085461265390919063ffffffff16565b60088190555060066040518060a001604052808673ffffffffffffffffffffffffffffffffffffffff168152602001878152602001838152602001600081526020018561ffff16815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff16021790555050505050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461156c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156390613347565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600181565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611645576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163c90613287565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006116da60016116cc858561235590919063ffffffff16565b61232990919063ffffffff16565b905092915050565b6007602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020154905083565b611721612321565b73ffffffffffffffffffffffffffffffffffffffff1661173f611689565b73ffffffffffffffffffffffffffffffffffffffff1614611795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178c906132e7565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611807612321565b73ffffffffffffffffffffffffffffffffffffffff16611825611689565b73ffffffffffffffffffffffffffffffffffffffff161461187b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611872906132e7565b60405180910390fd5b61271081106118bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b690613267565b60405180910390fd5b80600c8190555050565b600b5481565b600d5481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060068481548110611938577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006007600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611a04919061307c565b60206040518083038186803b158015611a1c57600080fd5b505afa158015611a30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a549190612a6d565b9050836002015443118015611a6a575060008114155b15611b05576000611a7f8560020154436116b2565b90506000611ac2600854611ab48860010154611aa66003548761232990919063ffffffff16565b61232990919063ffffffff16565b61233f90919063ffffffff16565b9050611b00611af184611ae364e8d4a510008561232990919063ffffffff16565b61233f90919063ffffffff16565b8561265390919063ffffffff16565b935050505b611b498360010154611b3b64e8d4a51000611b2d86886000015461232990919063ffffffff16565b61233f90919063ffffffff16565b61235590919063ffffffff16565b94505050505092915050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611b83612321565b73ffffffffffffffffffffffffffffffffffffffff16611ba1611689565b73ffffffffffffffffffffffffffffffffffffffff1614611bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bee906132e7565b60405180910390fd5b6127108261ffff161115611c40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c37906132c7565b60405180910390fd5b8015611c4f57611c4e610fcd565b5b611cc183611cb360068781548110611c90577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600502016001015460085461235590919063ffffffff16565b61265390919063ffffffff16565b6008819055508260068581548110611d02577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201600101819055508160068581548110611d52577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff16021790555050505050565b600060068381548110611dbf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060050201905060006007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611e2c84610b35565b600081600001541115611e9b576000611e838260010154611e7564e8d4a51000611e678760030154876000015461232990919063ffffffff16565b61233f90919063ffffffff16565b61235590919063ffffffff16565b90506000811115611e9957611e98338261236b565b5b505b60008311156120e357611ef53330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612669909392919063ffffffff16565b42816002018190555060008260040160009054906101000a900461ffff1661ffff1611156120c2576000611f5c612710611f4e8560040160009054906101000a900461ffff1661ffff168761232990919063ffffffff16565b61233f90919063ffffffff16565b9050611fcf600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125cd9092919063ffffffff16565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca8ed568338560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856000015460016040518563ffffffff1660e01b815260040161205994939291906130ce565b600060405180830381600087803b15801561207357600080fd5b505af1158015612087573d6000803e3d6000fd5b505050506120b4816120a686856000015461265390919063ffffffff16565b61235590919063ffffffff16565b8260000181905550506120e2565b6120d983826000015461265390919063ffffffff16565b81600001819055505b5b61211564e8d4a510006121078460030154846000015461232990919063ffffffff16565b61233f90919063ffffffff16565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040516121649190613367565b60405180910390a350505050565b600c5481565b612180612321565b73ffffffffffffffffffffffffffffffffffffffff1661219e611689565b73ffffffffffffffffffffffffffffffffffffffff16146121f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121eb906132e7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612264576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225b90613227565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600081836123379190613472565b905092915050565b6000818361234d9190613441565b905092915050565b6000818361236391906134cc565b905092915050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016123c8919061307c565b602060405180830381600087803b1580156123e257600080fd5b505af11580156123f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241a9190612a6d565b9050808211156124b857600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401612481929190613113565b600060405180830381600087803b15801561249b57600080fd5b505af11580156124af573d6000803e3d6000fd5b50505050612548565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401612515929190613113565b600060405180830381600087803b15801561252f57600080fd5b505af1158015612543573d6000803e3d6000fd5b505050505b505050565b600042612565600b548461265390919063ffffffff16565b111561259b57612594612710612586600c548661232990919063ffffffff16565b61233f90919063ffffffff16565b90506125c7565b6125c46127106125b6600d548661232990919063ffffffff16565b61233f90919063ffffffff16565b90505b92915050565b61264e8363a9059cbb60e01b84846040516024016125ec929190613113565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506126f2565b505050565b6000818361266191906133eb565b905092915050565b6126ec846323b872dd60e01b85858560405160240161268a93929190613097565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506126f2565b50505050565b6000612754826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166127b99092919063ffffffff16565b90506000815111156127b457808060200190518101906127749190612a1b565b6127b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127aa90613207565b60405180910390fd5b5b505050565b60606127c884846000856127d1565b90509392505050565b606082471015612816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280d90613247565b60405180910390fd5b61281f856128e5565b61285e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285590613307565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516128879190613065565b60006040518083038185875af1925050503d80600081146128c4576040519150601f19603f3d011682016040523d82523d6000602084013e6128c9565b606091505b50915091506128d98282866128f8565b92505050949350505050565b600080823b905060008111915050919050565b6060831561290857829050612958565b60008351111561291b5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294f91906131c5565b60405180910390fd5b9392505050565b60008135905061296e816136bf565b92915050565b600081359050612983816136d6565b92915050565b600081519050612998816136d6565b92915050565b6000813590506129ad816136ed565b92915050565b6000813590506129c281613704565b92915050565b6000813590506129d78161371b565b92915050565b6000815190506129ec8161371b565b92915050565b600060208284031215612a0457600080fd5b6000612a128482850161295f565b91505092915050565b600060208284031215612a2d57600080fd5b6000612a3b84828501612989565b91505092915050565b600060208284031215612a5657600080fd5b6000612a64848285016129c8565b91505092915050565b600060208284031215612a7f57600080fd5b6000612a8d848285016129dd565b91505092915050565b60008060408385031215612aa957600080fd5b6000612ab7858286016129c8565b9250506020612ac88582860161295f565b9150509250929050565b60008060008060808587031215612ae857600080fd5b6000612af6878288016129c8565b9450506020612b078782880161299e565b9350506040612b18878288016129b3565b9250506060612b2987828801612974565b91505092959194509250565b60008060408385031215612b4857600080fd5b6000612b56858286016129c8565b9250506020612b67858286016129c8565b9150509250929050565b60008060008060808587031215612b8757600080fd5b6000612b95878288016129c8565b9450506020612ba6878288016129c8565b9350506040612bb7878288016129b3565b9250506060612bc887828801612974565b91505092959194509250565b612bdd81613500565b82525050565b612bec81613512565b82525050565b6000612bfd826133b9565b612c0781856133cf565b9350612c178185602086016135d4565b80840191505092915050565b612c2c81613568565b82525050565b612c3b8161358c565b82525050565b612c4a816135b0565b82525050565b6000612c5b826133c4565b612c6581856133da565b9350612c758185602086016135d4565b612c7e816136ae565b840191505092915050565b6000612c966025836133da565b91507f6164643a20696e76616c6964206465706f73697420666565206261736973207060008301527f6f696e74730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612cfc602a836133da565b91507f5361666542455032303a204245503230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b6000612d626026836133da565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612dc86026836133da565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612e2e600b836133da565b91507f696e76616c6964206665650000000000000000000000000000000000000000006000830152602082019050919050565b6000612e6e6009836133da565b91507f6465763a207775743f00000000000000000000000000000000000000000000006000830152602082019050919050565b6000612eae601d836133da565b91507f7365745472656173757279416464726573733a20464f5242494444454e0000006000830152602082019050919050565b6000612eee6025836133da565b91507f7365743a20696e76616c6964206465706f73697420666565206261736973207060008301527f6f696e74730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612f546020836133da565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000612f94601d836133da565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b6000612fd46012836133da565b91507f77697468647261773a206e6f7420676f6f6400000000000000000000000000006000830152602082019050919050565b60006130146018836133da565b91507f736574466565416464726573733a20464f5242494444454e00000000000000006000830152602082019050919050565b61305081613530565b82525050565b61305f8161355e565b82525050565b60006130718284612bf2565b915081905092915050565b60006020820190506130916000830184612bd4565b92915050565b60006060820190506130ac6000830186612bd4565b6130b96020830185612bd4565b6130c66040830184613056565b949350505050565b60006080820190506130e36000830187612bd4565b6130f06020830186612bd4565b6130fd6040830185613056565b61310a6060830184612be3565b95945050505050565b60006040820190506131286000830185612bd4565b6131356020830184613056565b9392505050565b600060a0820190506131516000830188612c23565b61315e6020830187613056565b61316b6040830186613056565b6131786060830185613056565b6131856080830184613047565b9695505050505050565b60006020820190506131a46000830184612c32565b92915050565b60006020820190506131bf6000830184612c41565b92915050565b600060208201905081810360008301526131df8184612c50565b905092915050565b6000602082019050818103600083015261320081612c89565b9050919050565b6000602082019050818103600083015261322081612cef565b9050919050565b6000602082019050818103600083015261324081612d55565b9050919050565b6000602082019050818103600083015261326081612dbb565b9050919050565b6000602082019050818103600083015261328081612e21565b9050919050565b600060208201905081810360008301526132a081612e61565b9050919050565b600060208201905081810360008301526132c081612ea1565b9050919050565b600060208201905081810360008301526132e081612ee1565b9050919050565b6000602082019050818103600083015261330081612f47565b9050919050565b6000602082019050818103600083015261332081612f87565b9050919050565b6000602082019050818103600083015261334081612fc7565b9050919050565b6000602082019050818103600083015261336081613007565b9050919050565b600060208201905061337c6000830184613056565b92915050565b60006060820190506133976000830186613056565b6133a46020830185613056565b6133b16040830184613056565b949350505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006133f68261355e565b91506134018361355e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561343657613435613650565b5b828201905092915050565b600061344c8261355e565b91506134578361355e565b9250826134675761346661367f565b5b828204905092915050565b600061347d8261355e565b91506134888361355e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156134c1576134c0613650565b5b828202905092915050565b60006134d78261355e565b91506134e28361355e565b9250828210156134f5576134f4613650565b5b828203905092915050565b600061350b8261353e565b9050919050565b60008115159050919050565b600061352982613500565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006135738261357a565b9050919050565b60006135858261353e565b9050919050565b60006135978261359e565b9050919050565b60006135a98261353e565b9050919050565b60006135bb826135c2565b9050919050565b60006135cd8261353e565b9050919050565b60005b838110156135f25780820151818401526020810190506135d7565b83811115613601576000848401525b50505050565b60006136128261355e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561364557613644613650565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b6136c881613500565b81146136d357600080fd5b50565b6136df81613512565b81146136ea57600080fd5b50565b6136f68161351e565b811461370157600080fd5b50565b61370d81613530565b811461371857600080fd5b50565b6137248161355e565b811461372f57600080fd5b5056fea2646970667358221220c7547c1a6571a62758d7ba90f98d6ffc2e32be0d2213f4cdb119c9d8bf56df7164736f6c63430008000033000000000000000000000000f1a71bcce29b598d812a30baedff860a7dce0aff0000000000000000000000006a482d254bb515674bc3d4ef37d61353529ad1f40000000000000000000000006a482d254bb515674bc3d4ef37d61353529ad1f40000000000000000000000000000000000000000000000000429d069189e000000000000000000000000000000000000000000000000000000000000008291d7000000000000000000000000f3a39adb127ab523cae368d624dd07a045541385

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

000000000000000000000000f1a71bcce29b598d812a30baedff860a7dce0aff0000000000000000000000006a482d254bb515674bc3d4ef37d61353529ad1f40000000000000000000000006a482d254bb515674bc3d4ef37d61353529ad1f40000000000000000000000000000000000000000000000000429d069189e000000000000000000000000000000000000000000000000000000000000008291d7000000000000000000000000f3a39adb127ab523cae368d624dd07a045541385

-----Decoded View---------------
Arg [0] : _mars (address): 0xf1a71bcce29b598d812a30baedff860a7dce0aff
Arg [1] : _devaddr (address): 0x6a482d254bb515674bc3d4ef37d61353529ad1f4
Arg [2] : _feeAddress (address): 0x6a482d254bb515674bc3d4ef37d61353529ad1f4
Arg [3] : _marsPerBlock (uint256): 300000000000000000
Arg [4] : _startBlock (uint256): 8557015
Arg [5] : _nativeTokenHolderVault (address): 0xf3a39adb127ab523cae368d624dd07a045541385

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000f1a71bcce29b598d812a30baedff860a7dce0aff
Arg [1] : 0000000000000000000000006a482d254bb515674bc3d4ef37d61353529ad1f4
Arg [2] : 0000000000000000000000006a482d254bb515674bc3d4ef37d61353529ad1f4
Arg [3] : 0000000000000000000000000000000000000000000000000429d069189e0000
Arg [4] : 00000000000000000000000000000000000000000000000000000000008291d7
Arg [5] : 000000000000000000000000f3a39adb127ab523cae368d624dd07a045541385


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.