Contract 0xAc0fa95058616D7539b6Eecb6418A68e7c18A746 4

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe972ecf7898a54f6c548083657a60cede9a3708eedcf1b4ac71bdfeb557c9fd1Withdraw484452552022-10-05 3:54:531 day 3 hrs ago0x886c62c2ce8a36cb6944f5a596449fede94bb129 IN  Based Finance: BShare Reward Pool0 FTM0.0002019
0x4b567bad02e48cb9984722827ceca401a27df4bc6f4750cea486c9a7f5f291ebWithdraw484437752022-10-05 3:27:071 day 3 hrs ago0x0c3c6e08f890b03b1d2c5f072c6c895aaedfb0df IN  Based Finance: BShare Reward Pool0 FTM0.000306114195
0x251960671e54463e2a7f5f3027d4075e96e129a33b13523dcac515f91050c5e4Withdraw484387792022-10-05 1:43:311 day 5 hrs ago0x8f8b37d01fe99e50e50478a241a5953c2f7a5f91 IN  Based Finance: BShare Reward Pool0 FTM0.0002019
0x05dc2f497128d0e7ebff6bb217e90d9fb40f1c5b7c9f918faa64afd8d21dd5b1Withdraw483022242022-10-03 7:21:202 days 23 hrs ago0x70e271ca5c691877d03947375a63331f7a19c2a5 IN  Based Finance: BShare Reward Pool0 FTM0.000261094086
0x96d94511bbc8ac935b63ed9c6d5b7aa4b0c34e3815300470e51c480d9c84d14eWithdraw483017572022-10-03 7:12:432 days 23 hrs ago0x0992cfc4529d6a5819a392e51816cc29d33a1891 IN  Based Finance: BShare Reward Pool0 FTM0.010452884941
0x6db54c986f3ab3a52f33ad14982de10e5c3dc43a8f7ad9ee468e44ca93dc25d0Withdraw482544382022-10-02 16:09:423 days 14 hrs ago0xc13fd05bf9aea66d5f00b7ae36d4ed2605ad0803 IN  Based Finance: BShare Reward Pool0 FTM0.004145548106
0x4ad72479a414f50eb59843653b2cbf70e99f809fe61dda490b2d7c9fc449ab48Withdraw481436132022-10-01 5:41:345 days 1 hr ago0x960d80997d5089b81afbf6c0d6e14c4ea0949a0f IN  Based Finance: BShare Reward Pool0 FTM0.00021703
0x699b74e7c64e877a223bfb6291ef43115830bdcda31aa5cb860a4ad3125f1f60Withdraw481435802022-10-01 5:41:005 days 1 hr ago0x960d80997d5089b81afbf6c0d6e14c4ea0949a0f IN  Based Finance: BShare Reward Pool0 FTM0.00021703
0x45e486dbf6b298cc80db98caafa27025bed173dfbc12fad3f65614e3b7664494Withdraw481069122022-09-30 18:07:485 days 12 hrs ago0x7d68e62148a89ce8a67bb23f38f84848fb26b015 IN  Based Finance: BShare Reward Pool0 FTM0.000202499485
0x6f6276d617898f6509cd7b77fe298c0cd4fd75a3b7b789d9e086018b9936ca73Withdraw480143512022-09-29 12:56:546 days 17 hrs ago0x16f4776c83466074c8d02504075e75e14fbc7efd IN  Based Finance: BShare Reward Pool0 FTM0.00025999
0x74878a9685f5419e3fc9eeddfbd8470fd4b045a7271e0aa1ae81196f46f09543Withdraw480074942022-09-29 10:34:066 days 20 hrs ago0x0603334730a19f2e86180553d7e061fb27bcf8de IN  Based Finance: BShare Reward Pool0 FTM0.000260868821
0xd390b2743d4c93a1c7c4168bd866eaf2fa0dc2ca32d73193302d6de40cda5462Withdraw480050102022-09-29 9:50:066 days 21 hrs ago0xc58561999ee0e1e5b16b2235a52a227dabc25305 IN  Based Finance: BShare Reward Pool0 FTM0.000235328512
0x003bc015b5c22a5d825fc814f989cb1ab1a17d41060f81dd63a8e1f5c1f6723fWithdraw480011292022-09-29 8:30:096 days 22 hrs ago0x0603334730a19f2e86180553d7e061fb27bcf8de IN  Based Finance: BShare Reward Pool0 FTM0.0000834425
0x4bd1f913e3bce3f2f4645c0617c5d47aab00744aa382c0afa0ac3fd0b902430bWithdraw480011072022-09-29 8:29:446 days 22 hrs ago0x0603334730a19f2e86180553d7e061fb27bcf8de IN  Based Finance: BShare Reward Pool0 FTM0.000217
0x74472ccc93f17cc5f9e4ae06c7f06fa6a060109d6a84c2f707655d0c0fd17dc5Withdraw479861252022-09-29 3:49:547 days 3 hrs ago0xe762bdab43a415c0177d4138a3331f119afce880 IN  Based Finance: BShare Reward Pool0 FTM0.000303385
0x2616a72013e8de19741cdfcadd28b599de2f024ef54e919c30c7de160299e7baWithdraw479065872022-09-28 2:05:128 days 4 hrs ago0x3e1ff895fd5a1d9c284060e8866d9a647f55ac55 IN  Based Finance: BShare Reward Pool0 FTM0.004873554716
0x4d813805ff293485be50c96fea3b3020d227f2b24ff40456eb1ff5954f226363Withdraw478930222022-09-27 21:59:008 days 8 hrs ago0x00aef0ee2953def7eca09eba378d36ca23b34160 IN  Based Finance: BShare Reward Pool0 FTM0.0001621575
0xf02dc82a9495d3862cfd4b2312a10f501f3cec286e068e910534e9b95552b395Withdraw478697452022-09-27 14:16:288 days 16 hrs ago0xc69ef3ae9d063d538fffe7ecb3af3641246a492b IN  Based Finance: BShare Reward Pool0 FTM0.000144662237
0x0fb8a83b0a92d6287c955d19950c89d45e7062c467c33d53fdda95bc48fae57dWithdraw478571442022-09-27 10:05:318 days 20 hrs ago0xd94ae278e5907aa734bb895a3729aef074103891 IN  Based Finance: BShare Reward Pool0 FTM0.000647298184
0xe868bf3ee5ea5b70ae307ea9310f8aff99d29f413bab8798e63d8b725a2d1ff8Withdraw478498482022-09-27 7:51:488 days 23 hrs ago0xd94ae278e5907aa734bb895a3729aef074103891 IN  Based Finance: BShare Reward Pool0 FTM0.000140075
0x6264c150ae033e331466352d68a90ed7ea03487b2d3cd6c256c78bdb71b55f6cWithdraw478069102022-09-26 18:09:119 days 12 hrs ago0x238b09948671da680738abd14801282c554307b8 IN  Based Finance: BShare Reward Pool0 FTM0.000186915851
0x94583dafd5a465540e88ba4ca5ab633a0a75bd77aea58ce0a50ea2cdf8be60beWithdraw478068812022-09-26 18:08:249 days 12 hrs ago0x238b09948671da680738abd14801282c554307b8 IN  Based Finance: BShare Reward Pool0 FTM0.000232769335
0xbf048af709c7297d1a928a3addededcf698d23f0c9a45b17bf9c36fa20ae4a5dWithdraw477857692022-09-26 11:08:479 days 19 hrs ago0x47be39c48ff065ccc68403225dd3e89618468cc1 IN  Based Finance: BShare Reward Pool0 FTM0.000214072
0xa59e65d4451d33d9b2d03e1e4bc0b958d0d38756547f2d9f69ddc2557ab57748Withdraw477769612022-09-26 8:15:509 days 22 hrs ago0x19d8d13cca4b400a17a627bdf6020563f6726f84 IN  Based Finance: BShare Reward Pool0 FTM0.00062623309
0x0d23f4e8654a4a93b117dae28ff0767e7562b3ea9777784569cfcf802e9d90feWithdraw477768162022-09-26 8:12:559 days 22 hrs ago0x19d8d13cca4b400a17a627bdf6020563f6726f84 IN  Based Finance: BShare Reward Pool0 FTM0.0001620975
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xf6aa1dfc838c0736a8370e61d90337686db42dd1bd73c8d9f2f1eb77c61ffcb0303046902022-02-07 21:54:29240 days 9 hrs ago Based Finance: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
BShareRewardPool

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 50 runs

Other Settings:
default evmVersion
File 1 of 5 : BShareRewardPool.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

// Note that this pool has no minter key of bSHARE (rewards).
// Instead, the governance will call bSHARE distributeReward method and send reward to this pool at the beginning.
contract BShareRewardPool {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // governance
    address public operator;

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

    // Info of each pool.
    struct PoolInfo {
        IERC20 token; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. bSHAREs to distribute per block.
        uint256 lastRewardTime; // Last time that bSHAREs distribution occurs.
        uint256 accBSharePerShare; // Accumulated bSHAREs per share, times 1e18. See below.
        bool isStarted; // if lastRewardTime has passed
    }

    IERC20 public bshare;

    // 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 time when bSHARE mining starts.
    uint256 public poolStartTime;

    // The time when bSHARE mining ends.
    uint256 public poolEndTime;

    address public daoFundAddress;

    uint256 public bSharePerSecond = 0.003486 ether; // 50000 bshare / (166 days * 24h * 60min * 60s)
    uint256 public runningTime = 166 days; // 166 days
    uint256 public constant TOTAL_REWARDS = 50000 ether;

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

    constructor(
        address _bshare,
        address _daoFund,
        uint256 _poolStartTime
    ) {
        require(block.timestamp < _poolStartTime, "pool cant be started in the past");
        if (_bshare != address(0)) bshare = IERC20(_bshare);
        if(_daoFund != address(0)) daoFundAddress = _daoFund;

        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + runningTime;
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "BShareRewardPool: caller is not the operator");
        _;
    }

    function checkPoolDuplicate(IERC20 _token) internal view {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            require(poolInfo[pid].token != _token, "BShareRewardPool: existing pool?");
        }
    }

    // Add new lp to the pool. Can only be called by operator.
    function add(
        uint256 _allocPoint,
        IERC20 _token,
        bool _withUpdate,
        uint256 _lastRewardTime
    ) public onlyOperator {
        checkPoolDuplicate(_token);
        if (_withUpdate) {
            massUpdatePools();
        }
        if (block.timestamp < poolStartTime) {
            // chef is sleeping
            if (_lastRewardTime == 0) {
                _lastRewardTime = poolStartTime;
            } else {
                if (_lastRewardTime < poolStartTime) {
                    _lastRewardTime = poolStartTime;
                }
            }
        } else {
            // chef is cooking
            if (_lastRewardTime == 0 || _lastRewardTime < block.timestamp) {
                _lastRewardTime = block.timestamp;
            }
        }
        bool _isStarted = (_lastRewardTime <= poolStartTime) || (_lastRewardTime <= block.timestamp);
        poolInfo.push(PoolInfo({
            token: _token,
            allocPoint: _allocPoint,
            lastRewardTime: _lastRewardTime,
            accBSharePerShare: 0,
            isStarted: _isStarted
        }));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

    // starting allocations for our pools
    // BASED-TOMB LP: 21500 $BSHARE
    // BSHARE-TOMB LP: 21000 $BSHARE
    // TEAM: 4500 $BSHARE
    // CURVE STABLES LP (OR GEIST STABLES LP): 3000 $BSHARE

    // Update the given pool's bSHARE allocation point. Can only be called by the operator.
    // @allocPoints for TEAM can NOT be altered after added - PID 2
    // @allocPoints for main LP pools can NOT be smaller than 12,000
    function set(uint256 _pid, uint256 _allocPoint) public onlyOperator {
        massUpdatePools();
        require (_pid != 2, "CAN NOT ADJUST TEAM ALLOCATIONS");

        PoolInfo storage pool = poolInfo[_pid];

        if (_pid == 0 || _pid == 1) {
            require(_allocPoint >= 12000 * 10**18, "out of range"); // >= allocations for lp pools cant be less than 12,000
            if (pool.isStarted) {
                totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(_allocPoint);
            }
        } else if (_pid > 2) {
            if (pool.isStarted) {
                totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(_allocPoint);
            }

        }
        pool.allocPoint = _allocPoint;
    }

    // Return accumulate rewards over the given _from to _to block.
    function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) {
        if (_fromTime >= _toTime) return 0;
        if (_toTime >= poolEndTime) {
            if (_fromTime >= poolEndTime) return 0;
            if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(bSharePerSecond);
            return poolEndTime.sub(_fromTime).mul(bSharePerSecond);
        } else {
            if (_toTime <= poolStartTime) return 0;
            if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(bSharePerSecond);
            return _toTime.sub(_fromTime).mul(bSharePerSecond);
        }
    }

    // View function to see pending bSHAREs on frontend.
    function pendingShare(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accBSharePerShare = pool.accBSharePerShare;
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _bshareReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accBSharePerShare = accBSharePerShare.add(_bshareReward.mul(1e18).div(tokenSupply));
        }
        return user.amount.mul(accBSharePerShare).div(1e18).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.timestamp <= pool.lastRewardTime) {
            return;
        }
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (tokenSupply == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        if (!pool.isStarted) {
            pool.isStarted = true;
            totalAllocPoint = totalAllocPoint.add(pool.allocPoint);
        }
        if (totalAllocPoint > 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _bshareReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accBSharePerShare = pool.accBSharePerShare.add(_bshareReward.mul(1e18).div(tokenSupply));
        }
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit LP tokens.
    function deposit(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 _pending = user.amount.mul(pool.accBSharePerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeBShareTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0 && _pid > 2) {
            pool.token.safeTransferFrom(_sender, address(this), _amount);
            uint256 depositDebt = _amount.mul(20).div(10000);
            user.amount = user.amount.add(_amount.sub(depositDebt));
            pool.token.safeTransfer(daoFundAddress, depositDebt);
        } else if (_amount > 0 && _pid <= 2) {
            pool.token.safeTransferFrom(_sender, address(this), _amount);
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accBSharePerShare).div(1e18);
        emit Deposit(_sender, _pid, _amount);
    }

    // Withdraw LP tokens.
    function withdraw(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 _pending = user.amount.mul(pool.accBSharePerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safeBShareTransfer(_sender, _pending);
            emit RewardPaid(_sender, _pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.token.safeTransfer(_sender, _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accBSharePerShare).div(1e18);
        emit Withdraw(_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.token.safeTransfer(msg.sender, _amount);
        emit EmergencyWithdraw(msg.sender, _pid, _amount);
    }

    // Safe bshare transfer function, just in case if rounding error causes pool to not have enough bSHAREs.
    function safeBShareTransfer(address _to, uint256 _amount) internal {
        uint256 _bshareBal = bshare.balanceOf(address(this));
        if (_bshareBal > 0) {
            if (_amount > _bshareBal) {
                bshare.safeTransfer(_to, _bshareBal);
            } else {
                bshare.safeTransfer(_to, _amount);
            }
        }
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }

    function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOperator {
        if (block.timestamp < poolEndTime + 90 days) {
            // do not allow to drain core token (tSHARE or lps) if less than 90 days after pool ends
            require(_token != bshare, "bshare");
            uint256 length = poolInfo.length;
            for (uint256 pid = 0; pid < length; ++pid) {
                PoolInfo storage pool = poolInfo[pid];
                require(_token != pool.token, "pool.token");
            }
        }
        _token.safeTransfer(to, amount);
    }
}

File 2 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 3 of 5 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 5 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

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 generally not needed starting with Solidity 0.8, since 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. 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 5 of 5 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 50
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_bshare","type":"address"},{"internalType":"address","name":"_daoFund","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","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":"TOTAL_REWARDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardTime","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bSharePerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bshare","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoFundAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTime","type":"uint256"},{"internalType":"uint256","name":"_toTime","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accBSharePerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"runningTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600455660c627f9fafe00060085562dad9006009553480156200002857600080fd5b50604051620019da380380620019da8339810160408190526200004b9162000146565b8042106200009f5760405162461bcd60e51b815260206004820181905260248201527f706f6f6c2063616e74206265207374617274656420696e207468652070617374604482015260640160405180910390fd5b6001600160a01b03831615620000cb57600180546001600160a01b0319166001600160a01b0385161790555b6001600160a01b03821615620000f757600780546001600160a01b0319166001600160a01b0384161790555b60058190556009546200010b908262000187565b6006555050600080546001600160a01b0319163317905550620001ae565b80516001600160a01b03811681146200014157600080fd5b919050565b6000806000606084860312156200015c57600080fd5b620001678462000129565b9250620001776020850162000129565b9150604084015190509250925092565b60008219821115620001a957634e487b7160e01b600052601160045260246000fd5b500190565b61181c80620001be6000396000f3fe608060405234801561001057600080fd5b50600436106101225760003560e01c8063630b5ba1116100a8578063630b5ba1146102385780636e271dd51461024057806393f1a40b14610249578063943f013d1461029057806396805e54146102995780639beb31df146102ac578063ad9bd68f146102bf578063b3ab15fb146102d2578063c3838d1f146102e5578063cf4b55cb146102ee578063e2bbb1581461030157600080fd5b806309cf6091146101275780631526fe271461014b57806317caf6f1146101925780631ab06ee51461019b578063231f0c6a146101b0578063441a3e70146101c357806351eb05a6146101d65780635312ea8e146101e957806354575af4146101fc578063570ca7351461020f5780635f96dc111461022f575b600080fd5b610138690a968163f0a57b40000081565b6040519081526020015b60405180910390f35b61015e610159366004611562565b610314565b604080516001600160a01b03909616865260208601949094529284019190915260608301521515608082015260a001610142565b61013860045481565b6101ae6101a936600461160c565b610362565b005b6101386101be36600461160c565b6104e7565b6101ae6101d136600461160c565b6105ac565b6101ae6101e4366004611562565b61076e565b6101ae6101f7366004611562565b6108d7565b6101ae61020a366004611520565b610979565b600054610222906001600160a01b031681565b604051610142919061164a565b61013860055481565b6101ae610aae565b61013860065481565b61027b610257366004611594565b60036020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610142565b61013860095481565b6101ae6102a73660046115c4565b610ad9565b600154610222906001600160a01b031681565b600754610222906001600160a01b031681565b6101ae6102e03660046114e6565b610cb7565b61013860085481565b6101386102fc366004611594565b610d03565b6101ae61030f36600461160c565b610e72565b6002818154811061032457600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b6000546001600160a01b031633146103955760405162461bcd60e51b815260040161038c90611691565b60405180910390fd5b61039d610aae565b81600214156103ee5760405162461bcd60e51b815260206004820152601f60248201527f43414e204e4f542041444a555354205445414d20414c4c4f434154494f4e5300604482015260640161038c565b600060028381548110610403576104036117aa565b9060005260206000209060050201905082600014806104225750826001145b156104a95769028a857425466f8000008210156104705760405162461bcd60e51b815260206004820152600c60248201526b6f7574206f662072616e676560a01b604482015260640161038c565b600481015460ff16156104a4576104a08261049a836001015460045461107690919063ffffffff16565b90611089565b6004555b6104e0565b60028311156104e057600481015460ff16156104e0576104dc8261049a836001015460045461107690919063ffffffff16565b6004555b6001015550565b60008183106104f8575060006105a6565b6006548210610560576006548310610512575060006105a6565b60055483116105455761053e60085461053860055460065461107690919063ffffffff16565b90611095565b90506105a6565b61053e6008546105388560065461107690919063ffffffff16565b6005548211610571575060006105a6565b60055483116105955761053e6008546105386005548561107690919063ffffffff16565b60085461053e906105388486611076565b92915050565b60003390506000600284815481106105c6576105c66117aa565b600091825260208083208784526003825260408085206001600160a01b0388168652909252922080546005909202909201925084111561063d5760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015260640161038c565b6106468561076e565b6000610683826001015461067d670de0b6b3a76400006106778760030154876000015461109590919063ffffffff16565b906110a1565b90611076565b905080156106d95761069584826110ad565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516106d091815260200190565b60405180910390a25b84156107035781546106eb9086611076565b82558254610703906001600160a01b03168587611168565b6003830154825461072191670de0b6b3a76400009161067791611095565b600183015560405185815286906001600160a01b038616907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3505050505050565b600060028281548110610783576107836117aa565b90600052602060002090600502019050806002015442116107a2575050565b80546040516370a0823160e01b81526000916001600160a01b0316906370a08231906107d290309060040161164a565b60206040518083038186803b1580156107ea57600080fd5b505afa1580156107fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610822919061157b565b90508061083457504260029091015550565b600482015460ff16610865576004808301805460ff19166001908117909155830154905461086191611089565b6004555b600454156108cc57600061087d8360020154426104e7565b9050600061089e60045461067786600101548561109590919063ffffffff16565b90506108c46108b98461067784670de0b6b3a7640000611095565b600386015490611089565b600385015550505b504260029091015550565b6000600282815481106108ec576108ec6117aa565b60009182526020808320858452600382526040808520338087529352842080548582556001820195909555600590930201805490945091929161093c916001600160a01b03919091169083611168565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a350505050565b6000546001600160a01b031633146109a35760405162461bcd60e51b815260040161038c90611691565b6006546109b3906276a7006116dd565b421015610a95576001546001600160a01b0384811691161415610a015760405162461bcd60e51b815260206004820152600660248201526562736861726560d01b604482015260640161038c565b60025460005b81811015610a9257600060028281548110610a2457610a246117aa565b6000918252602090912060059091020180549091506001600160a01b0387811691161415610a815760405162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015260640161038c565b50610a8b81611779565b9050610a07565b50505b610aa96001600160a01b0384168284611168565b505050565b60025460005b81811015610ad557610ac58161076e565b610ace81611779565b9050610ab4565b5050565b6000546001600160a01b03163314610b035760405162461bcd60e51b815260040161038c90611691565b610b0c836111cb565b8115610b1a57610b1a610aae565b600554421015610b465780610b325750600554610b5a565b600554811015610b4157506005545b610b5a565b801580610b5257504281105b15610b5a5750425b600060055482111580610b6d5750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180546001600160a01b031916919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad2909201805460ff191692151592909217909155909150610cb057600454610cac9086611089565b6004555b5050505050565b6000546001600160a01b03163314610ce15760405162461bcd60e51b815260040161038c90611691565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060028481548110610d1957610d196117aa565b60009182526020808320878452600380835260408086206001600160a01b03808b1688529452808620600590950290920190810154815492516370a0823160e01b815291965093949291909116906370a0823190610d7b90309060040161164a565b60206040518083038186803b158015610d9357600080fd5b505afa158015610da7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcb919061157b565b9050836002015442118015610ddf57508015155b15610e3c576000610df48560020154426104e7565b90506000610e1560045461067788600101548561109590919063ffffffff16565b9050610e37610e308461067784670de0b6b3a7640000611095565b8590611089565b935050505b610e67836001015461067d670de0b6b3a764000061067786886000015461109590919063ffffffff16565b979650505050505050565b6000339050600060028481548110610e8c57610e8c6117aa565b600091825260208083208784526003825260408085206001600160a01b0388168652909252922060059091029091019150610ec68561076e565b805415610f56576000610efe826001015461067d670de0b6b3a76400006106778760030154876000015461109590919063ffffffff16565b90508015610f5457610f1084826110ad565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610f4b91815260200190565b60405180910390a25b505b600084118015610f665750600285115b15610fd0578154610f82906001600160a01b031684308761126e565b6000610f95612710610677876014611095565b9050610fac610fa48683611076565b835490611089565b82556007548354610fca916001600160a01b03918216911683611168565b5061100c565b600084118015610fe1575060028511155b1561100c578154610ffd906001600160a01b031684308761126e565b80546110099085611089565b81555b6003820154815461102a91670de0b6b3a76400009161067791611095565b600182015560405184815285906001600160a01b038516907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a35050505050565b60006110828284611736565b9392505050565b600061108282846116dd565b60006110828284611717565b600061108282846116f5565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a08231906110de90309060040161164a565b60206040518083038186803b1580156110f657600080fd5b505afa15801561110a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112e919061157b565b90508015610aa9578082111561115557600154610aa9906001600160a01b03168483611168565b600154610aa9906001600160a01b031684845b6040516001600160a01b038316602482015260448101829052610aa990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526112ac565b60025460005b81811015610aa957826001600160a01b0316600282815481106111f6576111f66117aa565b60009182526020909120600590910201546001600160a01b0316141561125e5760405162461bcd60e51b815260206004820181905260248201527f425368617265526577617264506f6f6c3a206578697374696e6720706f6f6c3f604482015260640161038c565b61126781611779565b90506111d1565b6040516001600160a01b03808516602483015283166044820152606481018290526112a69085906323b872dd60e01b90608401611194565b50505050565b6000611301826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661137e9092919063ffffffff16565b805190915015610aa9578080602001905181019061131f9190611503565b610aa95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161038c565b606061138d8484600085611395565b949350505050565b6060824710156113f65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161038c565b843b6114445760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161038c565b600080866001600160a01b03168587604051611460919061162e565b60006040518083038185875af1925050503d806000811461149d576040519150601f19603f3d011682016040523d82523d6000602084013e6114a2565b606091505b5091509150610e67828286606083156114bc575081611082565b8251156114cc5782518084602001fd5b8160405162461bcd60e51b815260040161038c919061165e565b6000602082840312156114f857600080fd5b8135611082816117c0565b60006020828403121561151557600080fd5b8151611082816117d8565b60008060006060848603121561153557600080fd5b8335611540816117c0565b9250602084013591506040840135611557816117c0565b809150509250925092565b60006020828403121561157457600080fd5b5035919050565b60006020828403121561158d57600080fd5b5051919050565b600080604083850312156115a757600080fd5b8235915060208301356115b9816117c0565b809150509250929050565b600080600080608085870312156115da57600080fd5b8435935060208501356115ec816117c0565b925060408501356115fc816117d8565b9396929550929360600135925050565b6000806040838503121561161f57600080fd5b50508035926020909101359150565b6000825161164081846020870161174d565b9190910192915050565b6001600160a01b0391909116815260200190565b602081526000825180602084015261167d81604085016020870161174d565b601f01601f19169190910160400192915050565b6020808252602c908201527f425368617265526577617264506f6f6c3a2063616c6c6572206973206e6f742060408201526b3a34329037b832b930ba37b960a11b606082015260800190565b600082198211156116f0576116f0611794565b500190565b60008261171257634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561173157611731611794565b500290565b60008282101561174857611748611794565b500390565b60005b83811015611768578181015183820152602001611750565b838111156112a65750506000910152565b600060001982141561178d5761178d611794565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03811681146117d557600080fd5b50565b80151581146117d557600080fdfea2646970667358221220517d235db29ebadb364ab3389a384e1f48c7a2800eb3e8fc0ddd5daf528273d664736f6c6343000807003300000000000000000000000049c290ff692149a4e16611c694fded42c954ab7a000000000000000000000000a0e0f462d66de459711bc721ce1fdcc3d9405831000000000000000000000000000000000000000000000000000000006201cea0

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

00000000000000000000000049c290ff692149a4e16611c694fded42c954ab7a000000000000000000000000a0e0f462d66de459711bc721ce1fdcc3d9405831000000000000000000000000000000000000000000000000000000006201cea0

-----Decoded View---------------
Arg [0] : _bshare (address): 0x49c290ff692149a4e16611c694fded42c954ab7a
Arg [1] : _daoFund (address): 0xa0e0f462d66de459711bc721ce1fdcc3d9405831
Arg [2] : _poolStartTime (uint256): 1644285600

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000049c290ff692149a4e16611c694fded42c954ab7a
Arg [1] : 000000000000000000000000a0e0f462d66de459711bc721ce1fdcc3d9405831
Arg [2] : 000000000000000000000000000000000000000000000000000000006201cea0


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.