ETH Price: $3,479.87 (+2.33%)

Contract

0xDB5C23ae97f76dacC907f5F13bDa54131C8e9e5a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim202806382024-07-11 3:40:23167 days ago1720669223IN
0xDB5C23ae...31C8e9e5a
0 ETH0.003402564.38519129
Claim202795152024-07-10 23:55:11167 days ago1720655711IN
0xDB5C23ae...31C8e9e5a
0 ETH0.002638483.79036729
Claim202726042024-07-10 0:46:35168 days ago1720572395IN
0xDB5C23ae...31C8e9e5a
0 ETH0.002469683.01670517
Claim202725962024-07-10 0:44:59168 days ago1720572299IN
0xDB5C23ae...31C8e9e5a
0 ETH0.002183683.17915057
Claim202692262024-07-09 13:27:23168 days ago1720531643IN
0xDB5C23ae...31C8e9e5a
0 ETH0.002860964.55724546
Claim202626312024-07-08 15:17:23169 days ago1720451843IN
0xDB5C23ae...31C8e9e5a
0 ETH0.008484958.77417023
Claim202614652024-07-08 11:22:59170 days ago1720437779IN
0xDB5C23ae...31C8e9e5a
0 ETH0.00313973.36815249
Claim202610242024-07-08 9:53:47170 days ago1720432427IN
0xDB5C23ae...31C8e9e5a
0 ETH0.003108474.72025864
Claim202604062024-07-08 7:48:47170 days ago1720424927IN
0xDB5C23ae...31C8e9e5a
0 ETH0.001465092.22505857
Claim202601402024-07-08 6:55:23170 days ago1720421723IN
0xDB5C23ae...31C8e9e5a
0 ETH0.001269191.58379339
Claim202576782024-07-07 22:40:35170 days ago1720392035IN
0xDB5C23ae...31C8e9e5a
0 ETH0.00121641.24001103
Claim202575752024-07-07 22:19:47170 days ago1720390787IN
0xDB5C23ae...31C8e9e5a
0 ETH0.001232741.8801882
Claim202569222024-07-07 20:08:35170 days ago1720382915IN
0xDB5C23ae...31C8e9e5a
0 ETH0.001445391.94791926
Claim202503892024-07-06 22:15:11171 days ago1720304111IN
0xDB5C23ae...31C8e9e5a
0 ETH0.001010551.41387251
Claim202444392024-07-06 2:18:47172 days ago1720232327IN
0xDB5C23ae...31C8e9e5a
0 ETH0.001256641.83258231
Claim202418672024-07-05 17:42:11172 days ago1720201331IN
0xDB5C23ae...31C8e9e5a
0 ETH0.003798986.18794886
Claim202371652024-07-05 1:56:59173 days ago1720144619IN
0xDB5C23ae...31C8e9e5a
0 ETH0.004772435
Claim202323592024-07-04 9:49:11174 days ago1720086551IN
0xDB5C23ae...31C8e9e5a
0 ETH0.0070750210.74494142
Claim202294022024-07-03 23:55:11174 days ago1720050911IN
0xDB5C23ae...31C8e9e5a
0 ETH0.003074124.46998875
Claim202280592024-07-03 19:25:23174 days ago1720034723IN
0xDB5C23ae...31C8e9e5a
0 ETH0.0122893417.0603595
Claim202276492024-07-03 18:03:23174 days ago1720029803IN
0xDB5C23ae...31C8e9e5a
0 ETH0.0094253812.65481742
Claim202250982024-07-03 9:30:11175 days ago1719999011IN
0xDB5C23ae...31C8e9e5a
0 ETH0.003226264.89977034
Claim202244112024-07-03 7:12:11175 days ago1719990731IN
0xDB5C23ae...31C8e9e5a
0 ETH0.002276262.70206042
Claim202234902024-07-03 4:07:11175 days ago1719979631IN
0xDB5C23ae...31C8e9e5a
0 ETH0.00392664.77650509
Claim202234862024-07-03 4:06:23175 days ago1719979583IN
0xDB5C23ae...31C8e9e5a
0 ETH0.004407464.78325644
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IncentivesControllerV2

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : IncentivesControllerV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/IMultiFeeDistribution.sol";
import "./interfaces/IOnwardIncentivesController.sol";
import "./interfaces/IChefIncentivesController.sol";

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

contract IncentivesControllerV2 is Ownable {
  using SafeMath for uint;
  using SafeERC20 for IERC20;

  // Info of each user.
  struct UserInfo {
    uint amount;
    uint rewardDebt;
  }
  // Info of each pool.
  struct PoolInfo {
    uint totalSupply;
    uint allocPoint; // How many allocation points assigned to this pool.
    uint lastRewardTime; // Last second that reward distribution occurs.
    uint accRewardPerShare; // Accumulated rewards per share, times 1e12. See below.
    IOnwardIncentivesController onwardIncentives;
  }
  // Info about token emissions for a given time period.
  struct EmissionPoint {
    uint128 startTimeOffset;
    uint128 rewardsPerSecond;
  }

  address public poolConfigurator;

  IMultiFeeDistribution public rewardMinter;
  IChefIncentivesController public immutable incentivesController;
  uint public rewardsPerSecond;
  uint public immutable maxMintableTokens;
  uint public mintedTokens;

  // Info of each pool.
  address[] public registeredTokens;
  mapping(address => PoolInfo) public poolInfo;

  // Data about the future reward rates. emissionSchedule stored in reverse chronological order,
  // whenever the number of blocks since the start block exceeds the next block offset a new
  // reward rate is applied.
  EmissionPoint[] public emissionSchedule;
  // token => user => Info of each user that stakes LP tokens.
  mapping(address => mapping(address => UserInfo)) public userInfo;
  // user => base claimable balance
  mapping(address => uint) public userBaseClaimable;
  // Total allocation poitns. Must be the sum of all allocation points in all pools.
  uint public totalAllocPoint = 0;
  // The block number when reward mining starts.
  uint public startTime;

  // account earning rewards => receiver of rewards for this account
  // if receiver is set to address(0), rewards are paid to the earner
  // this is used to aid 3rd party contract integrations
  mapping (address => address) public claimReceiver;

  event BalanceUpdated(
    address indexed token,
    address indexed user,
    uint balance,
    uint totalSupply
  );

  bool private setuped;
  mapping(address => mapping(address => bool)) private userInfoInitiated;
  mapping(address => bool) private userBaseClaimableInitiated;

  constructor(
    uint128[] memory _startTimeOffset,
    uint128[] memory _rewardsPerSecond,
    address _poolConfigurator,
    IMultiFeeDistribution _rewardMinter,
    uint _maxMintable,
    IChefIncentivesController _incentivesController
  ) {
    poolConfigurator = _poolConfigurator;
    rewardMinter = _rewardMinter;
    uint length = _startTimeOffset.length;
    for (uint i = length; i > 0; i--) {
      emissionSchedule.push(
        EmissionPoint({
          startTimeOffset: _startTimeOffset[i - 1],
          rewardsPerSecond: _rewardsPerSecond[i - 1]
        })
      );
    }
    maxMintableTokens = _maxMintable;
    incentivesController = _incentivesController;
  }

  // Start the party
  function start() public onlyOwner {
    require(startTime == 0);
    startTime = block.timestamp;
  }

  // Add a new lp to the pool. Can only be called by the poolConfigurator.
  function addPool(address _token, uint _allocPoint) external {
    require(msg.sender == poolConfigurator);
    require(poolInfo[_token].lastRewardTime == 0);
    _updateEmissions();
    totalAllocPoint = totalAllocPoint.add(_allocPoint);
    registeredTokens.push(_token);
    poolInfo[_token] = PoolInfo({
      totalSupply: 0,
      allocPoint: _allocPoint,
      lastRewardTime: block.timestamp,
      accRewardPerShare: 0,
      onwardIncentives: IOnwardIncentivesController(address(0))
    });
  }

  // Update the given pool's allocation point. Can only be called by the owner.
  function batchUpdateAllocPoint(
    address[] calldata _tokens,
    uint[] calldata _allocPoints
  ) public onlyOwner {
    require(_tokens.length == _allocPoints.length);
    _massUpdatePools();
    uint _totalAllocPoint = totalAllocPoint;
    for (uint i = 0; i < _tokens.length; i++) {
      PoolInfo storage pool = poolInfo[_tokens[i]];
      require(pool.lastRewardTime > 0);
      _totalAllocPoint = _totalAllocPoint.sub(pool.allocPoint).add(_allocPoints[i]);
      pool.allocPoint = _allocPoints[i];
    }
    totalAllocPoint = _totalAllocPoint;
  }

  function setOnwardIncentives(
    address _token,
    IOnwardIncentivesController _incentives
  )
    external
    onlyOwner
  {
    require(poolInfo[_token].lastRewardTime != 0);
    poolInfo[_token].onwardIncentives = _incentives;
  }

  function setClaimReceiver(address _user, address _receiver) external {
    require(msg.sender == _user || msg.sender == owner());
    claimReceiver[_user] = _receiver;
  }

  function poolLength() external view returns (uint) {
    return registeredTokens.length;
  }

  function claimableReward(address _user, address[] calldata _tokens)
    external
    view
    returns (uint[] memory)
  {
    uint256[] memory claimable = new uint256[](_tokens.length);
    for (uint256 i = 0; i < _tokens.length; i++) {
      address token = _tokens[i];
      PoolInfo memory pool = poolInfo[token];
      UserInfo memory user;
      if (userInfoInitiated[token][_user]) {
        user = userInfo[token][_user];
      } else {
        IChefIncentivesController.UserInfo memory userInfoV1 = incentivesController.userInfo(token, _user);
        user = UserInfo({
          amount: userInfoV1.amount,
          rewardDebt: userInfoV1.rewardDebt
        });
      }
      uint256 accRewardPerShare = pool.accRewardPerShare;
      uint256 lpSupply = pool.totalSupply;
      if (block.timestamp > pool.lastRewardTime && lpSupply != 0) {
        uint256 duration = block.timestamp.sub(pool.lastRewardTime);
        uint256 reward = duration.mul(rewardsPerSecond).mul(pool.allocPoint).div(totalAllocPoint);
        accRewardPerShare = accRewardPerShare.add(reward.mul(1e12).div(lpSupply));
      }
      claimable[i] = user.amount.mul(accRewardPerShare).div(1e12).sub(user.rewardDebt);
    }
    return claimable;
  }

  function _updateEmissions() internal {
    uint length = emissionSchedule.length;
    if (startTime > 0 && length > 0) {
      EmissionPoint memory e = emissionSchedule[length-1];
      if (block.timestamp.sub(startTime) > e.startTimeOffset) {
        _massUpdatePools();
        rewardsPerSecond = uint(e.rewardsPerSecond);
        emissionSchedule.pop();
      }
    }
  }

  // Update reward variables for all pools
  function _massUpdatePools() internal {
    uint totalAP = totalAllocPoint;
    uint length = registeredTokens.length;
    for (uint i = 0; i < length; ++i) {
      _updatePool(poolInfo[registeredTokens[i]], totalAP);
    }
  }

  // Update reward variables of the given pool to be up-to-date.
  function _updatePool(PoolInfo storage pool, uint _totalAllocPoint) internal {
    if (block.timestamp <= pool.lastRewardTime) {
      return;
    }
    uint lpSupply = pool.totalSupply;
    if (lpSupply == 0) {
      pool.lastRewardTime = block.timestamp;
      return;
    }
    uint duration = block.timestamp.sub(pool.lastRewardTime);
    uint reward = duration.mul(rewardsPerSecond).mul(pool.allocPoint).div(_totalAllocPoint);
    pool.accRewardPerShare = pool.accRewardPerShare.add(reward.mul(1e12).div(lpSupply));
    pool.lastRewardTime = block.timestamp;
  }

  function _mint(address _user, uint _amount) internal {
    uint minted = mintedTokens;
    if (minted.add(_amount) > maxMintableTokens) {
      _amount = maxMintableTokens.sub(minted);
    }
    if (_amount > 0) {
      mintedTokens = minted.add(_amount);
      address receiver = claimReceiver[_user];
      if (receiver == address(0)) receiver = _user;
      rewardMinter.mint(receiver, _amount);
    }
  }

  function handleAction(address _user, uint _balance, uint _totalSupply) external {
    initiateUserInfo(_user, msg.sender);
    initiateUserBaseClaimable(_user);
    PoolInfo storage pool = poolInfo[msg.sender];
    require(pool.lastRewardTime > 0);
    _updateEmissions();
    _updatePool(pool, totalAllocPoint);
    UserInfo storage user = userInfo[msg.sender][_user];
    uint256 amount = user.amount;
    uint256 accRewardPerShare = pool.accRewardPerShare;
    if (amount > 0) {
      uint256 pending = amount.mul(accRewardPerShare).div(1e12).sub(user.rewardDebt);
      if (pending > 0) {
        userBaseClaimable[_user] = userBaseClaimable[_user].add(pending);
      }
    }
    user.amount = _balance;
    user.rewardDebt = _balance.mul(accRewardPerShare).div(1e12);
    pool.totalSupply = _totalSupply;
    if (pool.onwardIncentives != IOnwardIncentivesController(address(0))) {
      pool.onwardIncentives.handleAction(msg.sender, _user, _balance, _totalSupply);
    }
    emit BalanceUpdated(msg.sender, _user, _balance, _totalSupply);
  }

  function initiateUserBaseClaimable(address user) internal {
    require(address(incentivesController) != address(0), 'incentives controller not set');
    if(!userBaseClaimableInitiated[user]) {
      userBaseClaimable[user] = incentivesController.userBaseClaimable(user);
      userBaseClaimableInitiated[user] = true;
    }
  }

  function initiateUserInfo(address user, address token) internal {
    require(address(incentivesController) != address(0), 'incentives controller not set');
    if(!userInfoInitiated[token][user]) {
      IChefIncentivesController.UserInfo memory userInfoV1 = incentivesController.userInfo(token, user);
      userInfo[token][user] = UserInfo({
        amount: userInfoV1.amount,
        rewardDebt: userInfoV1.rewardDebt
      });
      userInfoInitiated[token][user] = true;
    }
  }

  // Claim pending rewards for one or more pools.
  // Rewards are not received directly, they are minted by the rewardMinter.
  function claim(address _user, address[] calldata _tokens) external {
    for (uint i = 0; i < _tokens.length; i++) {
      initiateUserInfo(_user, _tokens[i]);
    }
    initiateUserBaseClaimable(_user);
    _updateEmissions();
    uint256 pending = userBaseClaimable[_user];
    userBaseClaimable[_user] = 0;
    uint256 _totalAllocPoint = totalAllocPoint;
    for (uint i = 0; i < _tokens.length; i++) {
      PoolInfo storage pool = poolInfo[_tokens[i]];
      require(pool.lastRewardTime > 0);
      _updatePool(pool, _totalAllocPoint);
      UserInfo storage user = userInfo[_tokens[i]][_user];
      uint256 rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e12);
      pending = pending.add(rewardDebt.sub(user.rewardDebt));
      user.rewardDebt = rewardDebt;
    }
    _mint(_user, pending);
  }

  function setup() external onlyOwner {
    require(!setuped, "already setuped");
    uint length = incentivesController.poolLength();
    for (uint i = 0; i < length; i++) {
      address token = incentivesController.registeredTokens(i);
      IChefIncentivesController.PoolInfo memory oldInfo = incentivesController.poolInfo(token);
      poolInfo[token] = PoolInfo(
        oldInfo.totalSupply,
        oldInfo.allocPoint,
        oldInfo.lastRewardTime,
        oldInfo.accRewardPerShare,
        oldInfo.onwardIncentives
      );
      registeredTokens.push(token);
      totalAllocPoint = totalAllocPoint.add(poolInfo[token].allocPoint);
    }
    startTime = incentivesController.startTime();
    rewardsPerSecond = incentivesController.rewardsPerSecond();
    mintedTokens = incentivesController.mintedTokens();
    setuped = true;
  }
}

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 11 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 4 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 5 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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 6 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 subtraction 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 9 of 11 : IChefIncentivesController.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IOnwardIncentivesController.sol";

interface IChefIncentivesController {
  struct UserInfo {
    uint amount;
    uint rewardDebt;
  }
  struct PoolInfo {
    uint totalSupply;
    uint allocPoint; // How many allocation points assigned to this pool.
    uint lastRewardTime; // Last second that reward distribution occurs.
    uint accRewardPerShare; // Accumulated rewards per share, times 1e12. See below.
    IOnwardIncentivesController onwardIncentives;
  }
  function mintedTokens() external view returns (uint);
  function rewardsPerSecond() external view returns (uint);
  function startTime() external view returns(uint);
  function poolInfo(address token) external view returns(PoolInfo memory);
  function registeredTokens(uint idx) external view returns(address);
  function poolLength() external view returns(uint);
  function userInfo(address token, address user) external view returns(UserInfo memory);
  function userBaseClaimable(address user) external view returns(uint);
  function handleAction(address user, uint256 userBalance, uint256 totalSupply) external;
  function addPool(address _token, uint256 _allocPoint) external;
  function claim(address _user, address[] calldata _tokens) external;
  function setClaimReceiver(address _user, address _receiver) external;
}

File 10 of 11 : IMultiFeeDistribution.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IMultiFeeDistribution {
  function mint(address user, uint256 amount) external;
}

File 11 of 11 : IOnwardIncentivesController.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IOnwardIncentivesController {
  function handleAction(address _token, address _user, uint256 _balance, uint256 _totalSupply) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint128[]","name":"_startTimeOffset","type":"uint128[]"},{"internalType":"uint128[]","name":"_rewardsPerSecond","type":"uint128[]"},{"internalType":"address","name":"_poolConfigurator","type":"address"},{"internalType":"contract IMultiFeeDistribution","name":"_rewardMinter","type":"address"},{"internalType":"uint256","name":"_maxMintable","type":"uint256"},{"internalType":"contract IChefIncentivesController","name":"_incentivesController","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"BalanceUpdated","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"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256[]","name":"_allocPoints","type":"uint256[]"}],"name":"batchUpdateAllocPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"claimableReward","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"emissionSchedule","outputs":[{"internalType":"uint128","name":"startTimeOffset","type":"uint128"},{"internalType":"uint128","name":"rewardsPerSecond","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_balance","type":"uint256"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"name":"handleAction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"incentivesController","outputs":[{"internalType":"contract IChefIncentivesController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolConfigurator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"contract IOnwardIncentivesController","name":"onwardIncentives","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"registeredTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardMinter","outputs":[{"internalType":"contract IMultiFeeDistribution","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"setClaimReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"contract IOnwardIncentivesController","name":"_incentives","type":"address"}],"name":"setOnwardIncentives","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userBaseClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"}]

60c06040526000600a553480156200001657600080fd5b50604051620022b6380380620022b68339810160408190526200003991620002aa565b620000443362000161565b600180546001600160a01b038087166001600160a01b03199283161790925560028054928616929091169190911790558551805b80156200014257600760405180604001604052808a6001856200009c919062000374565b81518110620000af57620000af62000390565b60200260200101516001600160801b0316815260200189600185620000d5919062000374565b81518110620000e857620000e862000390565b6020908102919091018101516001600160801b039081169092528354600181018555600094855293819020835193909101518216600160801b029290911691909117910155806200013981620003a6565b91505062000078565b505060a0919091526001600160a01b031660805250620003c092505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b80516001600160801b0381168114620001df57600080fd5b919050565b600082601f830112620001f657600080fd5b815160206001600160401b0380831115620002155762000215620001b1565b8260051b604051601f19603f830116810181811084821117156200023d576200023d620001b1565b6040529384528581018301938381019250878511156200025c57600080fd5b83870191505b8482101562000286576200027682620001c7565b8352918301919083019062000262565b979650505050505050565b6001600160a01b0381168114620002a757600080fd5b50565b60008060008060008060c08789031215620002c457600080fd5b86516001600160401b0380821115620002dc57600080fd5b620002ea8a838b01620001e4565b975060208901519150808211156200030157600080fd5b506200031089828a01620001e4565b9550506040870151620003238162000291565b6060880151909450620003368162000291565b608088015160a08901519194509250620003508162000291565b809150509295509295509295565b634e487b7160e01b600052601160045260246000fd5b818103818111156200038a576200038a6200035e565b92915050565b634e487b7160e01b600052603260045260246000fd5b600081620003b857620003b86200035e565b506000190190565b60805160a051611e75620004416000396000818161021a0152818161191d01526119510152600081816103b101528181610b5101528181610bf701528181610c8f01528181610dee01528181610e7601528181610efe01528181611179015281816113720152818161143d0152818161151501526115c80152611e756000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80638e2eba09116100f9578063bfccff4511610097578063e20c5a8a11610071578063e20c5a8a14610429578063e5b5349814610452578063eacdaabc14610472578063f2fde38b1461047b57600080fd5b8063bfccff45146103e3578063cd1a4d8614610403578063de7e410c1461041657600080fd5b80639b8e5563116100d35780639b8e556314610399578063af1df255146103ac578063ba0bba40146103d3578063be9a6555146103db57600080fd5b80638e2eba09146102fc5780639a0ba2ea1461030f5780639a7b5f111461032257600080fd5b80633328756411610166578063715018a611610140578063715018a6146102bd57806378e97925146102c55780638d75fe05146102ce5780638da5cb5b146102d757600080fd5b80633328756414610264578063334d0bbd1461027757806334c54230146102aa57600080fd5b8063081e3eda146101ae5780630f208beb146101c557806317caf6f11461020c5780631a848e011461021557806331873e2e1461023c57806332a9caba14610251575b600080fd5b6005545b6040519081526020015b60405180910390f35b6101f76101d3366004611a30565b60086020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101bc565b6101b2600a5481565b6101b27f000000000000000000000000000000000000000000000000000000000000000081565b61024f61024a366004611a69565b61048e565b005b61024f61025f366004611a9e565b61066b565b61024f610272366004611a30565b610771565b61028a610285366004611aca565b6107c9565b604080516001600160801b039384168152929091166020830152016101bc565b61024f6102b8366004611b2f565b6107fe565b61024f610902565b6101b2600b5481565b6101b260045481565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101bc565b61024f61030a366004611b9b565b610916565b6102e461031d366004611aca565b610ad1565b610368610330366004611bf0565b60066020526000908152604090208054600182015460028301546003840154600490940154929391929091906001600160a01b031685565b6040805195865260208601949094529284019190915260608301526001600160a01b0316608082015260a0016101bc565b6002546102e4906001600160a01b031681565b6102e47f000000000000000000000000000000000000000000000000000000000000000081565b61024f610afb565b61024f610f91565b6101b26103f1366004611bf0565b60096020526000908152604090205481565b61024f610411366004611a30565b610fac565b6001546102e4906001600160a01b031681565b6102e4610437366004611bf0565b600c602052600090815260409020546001600160a01b031681565b610465610460366004611b9b565b61100c565b6040516101bc9190611c14565b6101b260035481565b61024f610489366004611bf0565b6112f7565b6104988333611370565b6104a183611513565b33600090815260066020526040902060028101546104be57600080fd5b6104c6611665565b6104d281600a54611730565b3360009081526008602090815260408083206001600160a01b0388168452909152902080546003830154811561057457600183015460009061052d9061052764e8d4a5100061052187876117cb565b906117e0565b906117ec565b90508015610572576001600160a01b03881660009081526009602052604090205461055890826117f8565b6001600160a01b0389166000908152600960205260409020555b505b85835561058a64e8d4a5100061052188846117cb565b600184015584845560048401546001600160a01b03161561061c5760048481015460405163ae0b537160e01b815233928101929092526001600160a01b0389811660248401526044830189905260648301889052169063ae0b537190608401600060405180830381600087803b15801561060357600080fd5b505af1158015610617573d6000803e3d6000fd5b505050505b60408051878152602081018790526001600160a01b0389169133917f526824944047da5b81071fb6349412005c5da81380b336103fbe5dd34556c776910160405180910390a350505050505050565b6001546001600160a01b0316331461068257600080fd5b6001600160a01b038216600090815260066020526040902060020154156106a857600080fd5b6106b0611665565b600a546106bd90826117f8565b600a556005805460018181019092557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b039485166001600160a01b031991821681179092556040805160a0810182526000808252602082810197885242838501908152606084018381526080850184815297845260069092529390912091518255955194810194909455516002840155925160038301555160049091018054919093169116179055565b336001600160a01b038316148061079257506000546001600160a01b031633145b61079b57600080fd5b6001600160a01b039182166000908152600c6020526040902080546001600160a01b03191691909216179055565b600781815481106107d957600080fd5b6000918252602090912001546001600160801b038082169250600160801b9091041682565b610806611804565b82811461081257600080fd5b61081a61185e565b600a5460005b848110156108f85760006006600088888581811061084057610840611c58565b90506020020160208101906108559190611bf0565b6001600160a01b03166001600160a01b031681526020019081526020016000209050600081600201541161088857600080fd5b6108c185858481811061089d5761089d611c58565b905060200201356108bb8360010154866117ec90919063ffffffff16565b906117f8565b92508484838181106108d5576108d5611c58565b9050602002013581600101819055505080806108f090611c84565b915050610820565b50600a5550505050565b61090a611804565b61091460006118c8565b565b60005b81811015610963576109518484848481811061093757610937611c58565b905060200201602081019061094c9190611bf0565b611370565b8061095b81611c84565b915050610919565b5061096d83611513565b610975611665565b6001600160a01b0383166000908152600960205260408120805490829055600a5490915b83811015610abf576000600660008787858181106109b9576109b9611c58565b90506020020160208101906109ce9190611bf0565b6001600160a01b03166001600160a01b0316815260200190815260200160002090506000816002015411610a0157600080fd5b610a0b8184611730565b600060086000888886818110610a2357610a23611c58565b9050602002016020810190610a389190611bf0565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252812060038401548154919350610a809164e8d4a510009161052191906117cb565b9050610aa3610a9c8360010154836117ec90919063ffffffff16565b87906117f8565b6001909201559350819050610ab781611c84565b915050610999565b50610aca8583611918565b5050505050565b60058181548110610ae157600080fd5b6000918252602090912001546001600160a01b0316905081565b610b03611804565b600d5460ff1615610b4d5760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e481cd95d1d5c1959608a1b60448201526064015b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663081e3eda6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd19190611c9d565b905060005b81811015610deb57604051634d05d17560e11b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639a0ba2ea90602401602060405180830381865afa158015610c46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6a9190611cb6565b604051639a7b5f1160e01b81526001600160a01b0380831660048301529192506000917f00000000000000000000000000000000000000000000000000000000000000001690639a7b5f119060240160a060405180830381865afa158015610cd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfa9190611ce9565b6040805160a08101825282518152602080840151818301908152838501518385019081526060808701519085019081526080808801516001600160a01b039081169187019182528a811660008181526006909752978620965187559351600180880191825593516002880155915160038701555160049095018054959093166001600160a01b0319958616179092556005805491820190557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001805490931684179092559190915254600a54919250610dd391906117f8565b600a5550819050610de381611c84565b915050610bd6565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166378e979256040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6e9190611c9d565b600b819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663eacdaabc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ed2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef69190611c9d565b6003819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638d75fe056040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7e9190611c9d565b60045550600d805460ff19166001179055565b610f99611804565b600b5415610fa657600080fd5b42600b55565b610fb4611804565b6001600160a01b0382166000908152600660205260408120600201549003610fdb57600080fd5b6001600160a01b03918216600090815260066020526040902060040180546001600160a01b03191691909216179055565b606060008267ffffffffffffffff81111561102957611029611cd3565b604051908082528060200260200182016040528015611052578160200160208202803683370190505b50905060005b838110156112ee57600085858381811061107457611074611c58565b90506020020160208101906110899190611bf0565b6001600160a01b038181166000818152600660209081526040808320815160a08101835281548152600182015481850152600282015481840152600382015460608201526004909101548616608082015281518083018352848152808401859052948452600e8352818420958e16845294909152902054929350909160ff161561114f57506001600160a01b038083166000908152600860209081526040808320938c168352928152908290208251808401909352805483526001015490820152611208565b604051630f208beb60e01b81526001600160a01b0384811660048301528a811660248301526000917f000000000000000000000000000000000000000000000000000000000000000090911690630f208beb906044016040805180830381865afa1580156111c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e59190611d6d565b905060405180604001604052808260000151815260200182602001518152509150505b6060820151825160408401514211801561122157508015155b1561129057600061123f8560400151426117ec90919063ffffffff16565b9050600061126c600a546105218860200151611266600354876117cb90919063ffffffff16565b906117cb565b905061128b611284846105218464e8d4a510006117cb565b85906117f8565b935050505b6112b8836020015161052764e8d4a510006105218688600001516117cb90919063ffffffff16565b8787815181106112ca576112ca611c58565b602002602001018181525050505050505080806112e690611c84565b915050611058565b50949350505050565b6112ff611804565b6001600160a01b0381166113645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b44565b61136d816118c8565b50565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113e65760405162461bcd60e51b815260206004820152601d60248201527f696e63656e746976657320636f6e74726f6c6c6572206e6f74207365740000006044820152606401610b44565b6001600160a01b038082166000908152600e602090815260408083209386168352929052205460ff1661150f57604051630f208beb60e01b81526001600160a01b03828116600483015283811660248301526000917f000000000000000000000000000000000000000000000000000000000000000090911690630f208beb906044016040805180830381865afa158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190611d6d565b604080518082018252825181526020928301518382019081526001600160a01b03808716600081815260088752858120928a168082529287528581209451855592516001948501558252600e85528382209082529093529120805460ff19169091179055505b5050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166115895760405162461bcd60e51b815260206004820152601d60248201527f696e63656e746976657320636f6e74726f6c6c6572206e6f74207365740000006044820152606401610b44565b6001600160a01b0381166000908152600f602052604090205460ff1661136d5760405163bfccff4560e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063bfccff4590602401602060405180830381865afa15801561160f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116339190611c9d565b6001600160a01b038216600090815260096020908152604080832093909355600f905220805460ff1916600117905550565b600754600b54158015906116795750600081115b1561136d576000600761168d600184611dca565b8154811061169d5761169d611c58565b6000918252602091829020604080518082019091529101546001600160801b03808216808452600160801b9092041692820192909252600b549092506116e49042906117ec565b111561150f576116f261185e565b60208101516001600160801b0316600355600780548061171457611714611ddd565b6000828152602081208201600019908101919091550190555050565b8160020154421161173f575050565b8154600081900361175557505042600290910155565b600061176e8460020154426117ec90919063ffffffff16565b90506000611793846105218760010154611266600354876117cb90919063ffffffff16565b90506117b66117ab846105218464e8d4a510006117cb565b6003870154906117f8565b60038601555050426002909301929092555050565b60006117d78284611df3565b90505b92915050565b60006117d78284611e0a565b60006117d78284611dca565b60006117d78284611e2c565b6000546001600160a01b031633146109145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b44565b600a5460055460005b818110156118c3576118b3600660006005848154811061188957611889611c58565b60009182526020808320909101546001600160a01b03168352820192909252604001902084611730565b6118bc81611c84565b9050611867565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6004547f000000000000000000000000000000000000000000000000000000000000000061194682846117f8565b1115611979576119767f0000000000000000000000000000000000000000000000000000000000000000826117ec565b91505b81156118c35761198981836117f8565b6004556001600160a01b038084166000908152600c602052604090205416806119af5750825b6002546040516340c10f1960e01b81526001600160a01b03838116600483015260248201869052909116906340c10f1990604401600060405180830381600087803b1580156119fd57600080fd5b505af1158015611a11573d6000803e3d6000fd5b5050505050505050565b6001600160a01b038116811461136d57600080fd5b60008060408385031215611a4357600080fd5b8235611a4e81611a1b565b91506020830135611a5e81611a1b565b809150509250929050565b600080600060608486031215611a7e57600080fd5b8335611a8981611a1b565b95602085013595506040909401359392505050565b60008060408385031215611ab157600080fd5b8235611abc81611a1b565b946020939093013593505050565b600060208284031215611adc57600080fd5b5035919050565b60008083601f840112611af557600080fd5b50813567ffffffffffffffff811115611b0d57600080fd5b6020830191508360208260051b8501011115611b2857600080fd5b9250929050565b60008060008060408587031215611b4557600080fd5b843567ffffffffffffffff80821115611b5d57600080fd5b611b6988838901611ae3565b90965094506020870135915080821115611b8257600080fd5b50611b8f87828801611ae3565b95989497509550505050565b600080600060408486031215611bb057600080fd5b8335611bbb81611a1b565b9250602084013567ffffffffffffffff811115611bd757600080fd5b611be386828701611ae3565b9497909650939450505050565b600060208284031215611c0257600080fd5b8135611c0d81611a1b565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015611c4c57835183529284019291840191600101611c30565b50909695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611c9657611c96611c6e565b5060010190565b600060208284031215611caf57600080fd5b5051919050565b600060208284031215611cc857600080fd5b8151611c0d81611a1b565b634e487b7160e01b600052604160045260246000fd5b600060a08284031215611cfb57600080fd5b60405160a0810181811067ffffffffffffffff82111715611d2c57634e487b7160e01b600052604160045260246000fd5b8060405250825181526020830151602082015260408301516040820152606083015160608201526080830151611d6181611a1b565b60808201529392505050565b600060408284031215611d7f57600080fd5b6040516040810181811067ffffffffffffffff82111715611db057634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b818103818111156117da576117da611c6e565b634e487b7160e01b600052603160045260246000fd5b80820281158282048414176117da576117da611c6e565b600082611e2757634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156117da576117da611c6e56fea26469706673582212206523674e6ddf12346d710d4b6519d562ab25a52d5343ad4fd090c9402fc6c7de64736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000240000000000000000000000000408c9764993209dc772eb12ff641f4b55f5b005c0000000000000000000000000a7b2a21027f92243c5e5e777aa30bb7969b018800000000000000000000000000000000000000000005c50381f5a22ca960000000000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000009e34000000000000000000000000000000000000000000000000000000000000c5c1000000000000000000000000000000000000000000000000000000000000ed4e00000000000000000000000000000000000000000000000000000000000114db0000000000000000000000000000000000000000000000000000000000013c6800000000000000000000000000000000000000000000000000000000000163f50000000000000000000000000000000000000000000000000000000000018b82000000000000000000000000000000000000000000000000000000000001b30f000000000000000000000000000000000000000000000000000000000001da9c000000000000000000000000000000000000000000000000000000000003bbcf8000000000000000000000000000000000000000000000000000000000059d0300000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000e14fc68e3008d200000000000000000000000000000000000000000000000000e14fc68e3008d200000000000000000000000000000000000000000000000000e14fc68e3008d2

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80638e2eba09116100f9578063bfccff4511610097578063e20c5a8a11610071578063e20c5a8a14610429578063e5b5349814610452578063eacdaabc14610472578063f2fde38b1461047b57600080fd5b8063bfccff45146103e3578063cd1a4d8614610403578063de7e410c1461041657600080fd5b80639b8e5563116100d35780639b8e556314610399578063af1df255146103ac578063ba0bba40146103d3578063be9a6555146103db57600080fd5b80638e2eba09146102fc5780639a0ba2ea1461030f5780639a7b5f111461032257600080fd5b80633328756411610166578063715018a611610140578063715018a6146102bd57806378e97925146102c55780638d75fe05146102ce5780638da5cb5b146102d757600080fd5b80633328756414610264578063334d0bbd1461027757806334c54230146102aa57600080fd5b8063081e3eda146101ae5780630f208beb146101c557806317caf6f11461020c5780631a848e011461021557806331873e2e1461023c57806332a9caba14610251575b600080fd5b6005545b6040519081526020015b60405180910390f35b6101f76101d3366004611a30565b60086020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101bc565b6101b2600a5481565b6101b27f00000000000000000000000000000000000000000005c50381f5a22ca960000081565b61024f61024a366004611a69565b61048e565b005b61024f61025f366004611a9e565b61066b565b61024f610272366004611a30565b610771565b61028a610285366004611aca565b6107c9565b604080516001600160801b039384168152929091166020830152016101bc565b61024f6102b8366004611b2f565b6107fe565b61024f610902565b6101b2600b5481565b6101b260045481565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101bc565b61024f61030a366004611b9b565b610916565b6102e461031d366004611aca565b610ad1565b610368610330366004611bf0565b60066020526000908152604090208054600182015460028301546003840154600490940154929391929091906001600160a01b031685565b6040805195865260208601949094529284019190915260608301526001600160a01b0316608082015260a0016101bc565b6002546102e4906001600160a01b031681565b6102e47f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb81565b61024f610afb565b61024f610f91565b6101b26103f1366004611bf0565b60096020526000908152604090205481565b61024f610411366004611a30565b610fac565b6001546102e4906001600160a01b031681565b6102e4610437366004611bf0565b600c602052600090815260409020546001600160a01b031681565b610465610460366004611b9b565b61100c565b6040516101bc9190611c14565b6101b260035481565b61024f610489366004611bf0565b6112f7565b6104988333611370565b6104a183611513565b33600090815260066020526040902060028101546104be57600080fd5b6104c6611665565b6104d281600a54611730565b3360009081526008602090815260408083206001600160a01b0388168452909152902080546003830154811561057457600183015460009061052d9061052764e8d4a5100061052187876117cb565b906117e0565b906117ec565b90508015610572576001600160a01b03881660009081526009602052604090205461055890826117f8565b6001600160a01b0389166000908152600960205260409020555b505b85835561058a64e8d4a5100061052188846117cb565b600184015584845560048401546001600160a01b03161561061c5760048481015460405163ae0b537160e01b815233928101929092526001600160a01b0389811660248401526044830189905260648301889052169063ae0b537190608401600060405180830381600087803b15801561060357600080fd5b505af1158015610617573d6000803e3d6000fd5b505050505b60408051878152602081018790526001600160a01b0389169133917f526824944047da5b81071fb6349412005c5da81380b336103fbe5dd34556c776910160405180910390a350505050505050565b6001546001600160a01b0316331461068257600080fd5b6001600160a01b038216600090815260066020526040902060020154156106a857600080fd5b6106b0611665565b600a546106bd90826117f8565b600a556005805460018181019092557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b039485166001600160a01b031991821681179092556040805160a0810182526000808252602082810197885242838501908152606084018381526080850184815297845260069092529390912091518255955194810194909455516002840155925160038301555160049091018054919093169116179055565b336001600160a01b038316148061079257506000546001600160a01b031633145b61079b57600080fd5b6001600160a01b039182166000908152600c6020526040902080546001600160a01b03191691909216179055565b600781815481106107d957600080fd5b6000918252602090912001546001600160801b038082169250600160801b9091041682565b610806611804565b82811461081257600080fd5b61081a61185e565b600a5460005b848110156108f85760006006600088888581811061084057610840611c58565b90506020020160208101906108559190611bf0565b6001600160a01b03166001600160a01b031681526020019081526020016000209050600081600201541161088857600080fd5b6108c185858481811061089d5761089d611c58565b905060200201356108bb8360010154866117ec90919063ffffffff16565b906117f8565b92508484838181106108d5576108d5611c58565b9050602002013581600101819055505080806108f090611c84565b915050610820565b50600a5550505050565b61090a611804565b61091460006118c8565b565b60005b81811015610963576109518484848481811061093757610937611c58565b905060200201602081019061094c9190611bf0565b611370565b8061095b81611c84565b915050610919565b5061096d83611513565b610975611665565b6001600160a01b0383166000908152600960205260408120805490829055600a5490915b83811015610abf576000600660008787858181106109b9576109b9611c58565b90506020020160208101906109ce9190611bf0565b6001600160a01b03166001600160a01b0316815260200190815260200160002090506000816002015411610a0157600080fd5b610a0b8184611730565b600060086000888886818110610a2357610a23611c58565b9050602002016020810190610a389190611bf0565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252812060038401548154919350610a809164e8d4a510009161052191906117cb565b9050610aa3610a9c8360010154836117ec90919063ffffffff16565b87906117f8565b6001909201559350819050610ab781611c84565b915050610999565b50610aca8583611918565b5050505050565b60058181548110610ae157600080fd5b6000918252602090912001546001600160a01b0316905081565b610b03611804565b600d5460ff1615610b4d5760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e481cd95d1d5c1959608a1b60448201526064015b60405180910390fd5b60007f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb6001600160a01b031663081e3eda6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd19190611c9d565b905060005b81811015610deb57604051634d05d17560e11b8152600481018290526000907f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb6001600160a01b031690639a0ba2ea90602401602060405180830381865afa158015610c46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6a9190611cb6565b604051639a7b5f1160e01b81526001600160a01b0380831660048301529192506000917f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb1690639a7b5f119060240160a060405180830381865afa158015610cd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfa9190611ce9565b6040805160a08101825282518152602080840151818301908152838501518385019081526060808701519085019081526080808801516001600160a01b039081169187019182528a811660008181526006909752978620965187559351600180880191825593516002880155915160038701555160049095018054959093166001600160a01b0319958616179092556005805491820190557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001805490931684179092559190915254600a54919250610dd391906117f8565b600a5550819050610de381611c84565b915050610bd6565b507f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb6001600160a01b03166378e979256040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6e9190611c9d565b600b819055507f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb6001600160a01b031663eacdaabc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ed2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef69190611c9d565b6003819055507f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb6001600160a01b0316638d75fe056040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7e9190611c9d565b60045550600d805460ff19166001179055565b610f99611804565b600b5415610fa657600080fd5b42600b55565b610fb4611804565b6001600160a01b0382166000908152600660205260408120600201549003610fdb57600080fd5b6001600160a01b03918216600090815260066020526040902060040180546001600160a01b03191691909216179055565b606060008267ffffffffffffffff81111561102957611029611cd3565b604051908082528060200260200182016040528015611052578160200160208202803683370190505b50905060005b838110156112ee57600085858381811061107457611074611c58565b90506020020160208101906110899190611bf0565b6001600160a01b038181166000818152600660209081526040808320815160a08101835281548152600182015481850152600282015481840152600382015460608201526004909101548616608082015281518083018352848152808401859052948452600e8352818420958e16845294909152902054929350909160ff161561114f57506001600160a01b038083166000908152600860209081526040808320938c168352928152908290208251808401909352805483526001015490820152611208565b604051630f208beb60e01b81526001600160a01b0384811660048301528a811660248301526000917f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb90911690630f208beb906044016040805180830381865afa1580156111c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e59190611d6d565b905060405180604001604052808260000151815260200182602001518152509150505b6060820151825160408401514211801561122157508015155b1561129057600061123f8560400151426117ec90919063ffffffff16565b9050600061126c600a546105218860200151611266600354876117cb90919063ffffffff16565b906117cb565b905061128b611284846105218464e8d4a510006117cb565b85906117f8565b935050505b6112b8836020015161052764e8d4a510006105218688600001516117cb90919063ffffffff16565b8787815181106112ca576112ca611c58565b602002602001018181525050505050505080806112e690611c84565b915050611058565b50949350505050565b6112ff611804565b6001600160a01b0381166113645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b44565b61136d816118c8565b50565b7f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb6001600160a01b03166113e65760405162461bcd60e51b815260206004820152601d60248201527f696e63656e746976657320636f6e74726f6c6c6572206e6f74207365740000006044820152606401610b44565b6001600160a01b038082166000908152600e602090815260408083209386168352929052205460ff1661150f57604051630f208beb60e01b81526001600160a01b03828116600483015283811660248301526000917f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb90911690630f208beb906044016040805180830381865afa158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190611d6d565b604080518082018252825181526020928301518382019081526001600160a01b03808716600081815260088752858120928a168082529287528581209451855592516001948501558252600e85528382209082529093529120805460ff19169091179055505b5050565b7f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb6001600160a01b03166115895760405162461bcd60e51b815260206004820152601d60248201527f696e63656e746976657320636f6e74726f6c6c6572206e6f74207365740000006044820152606401610b44565b6001600160a01b0381166000908152600f602052604090205460ff1661136d5760405163bfccff4560e01b81526001600160a01b0382811660048301527f00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb169063bfccff4590602401602060405180830381865afa15801561160f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116339190611c9d565b6001600160a01b038216600090815260096020908152604080832093909355600f905220805460ff1916600117905550565b600754600b54158015906116795750600081115b1561136d576000600761168d600184611dca565b8154811061169d5761169d611c58565b6000918252602091829020604080518082019091529101546001600160801b03808216808452600160801b9092041692820192909252600b549092506116e49042906117ec565b111561150f576116f261185e565b60208101516001600160801b0316600355600780548061171457611714611ddd565b6000828152602081208201600019908101919091550190555050565b8160020154421161173f575050565b8154600081900361175557505042600290910155565b600061176e8460020154426117ec90919063ffffffff16565b90506000611793846105218760010154611266600354876117cb90919063ffffffff16565b90506117b66117ab846105218464e8d4a510006117cb565b6003870154906117f8565b60038601555050426002909301929092555050565b60006117d78284611df3565b90505b92915050565b60006117d78284611e0a565b60006117d78284611dca565b60006117d78284611e2c565b6000546001600160a01b031633146109145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b44565b600a5460055460005b818110156118c3576118b3600660006005848154811061188957611889611c58565b60009182526020808320909101546001600160a01b03168352820192909252604001902084611730565b6118bc81611c84565b9050611867565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6004547f00000000000000000000000000000000000000000005c50381f5a22ca960000061194682846117f8565b1115611979576119767f00000000000000000000000000000000000000000005c50381f5a22ca9600000826117ec565b91505b81156118c35761198981836117f8565b6004556001600160a01b038084166000908152600c602052604090205416806119af5750825b6002546040516340c10f1960e01b81526001600160a01b03838116600483015260248201869052909116906340c10f1990604401600060405180830381600087803b1580156119fd57600080fd5b505af1158015611a11573d6000803e3d6000fd5b5050505050505050565b6001600160a01b038116811461136d57600080fd5b60008060408385031215611a4357600080fd5b8235611a4e81611a1b565b91506020830135611a5e81611a1b565b809150509250929050565b600080600060608486031215611a7e57600080fd5b8335611a8981611a1b565b95602085013595506040909401359392505050565b60008060408385031215611ab157600080fd5b8235611abc81611a1b565b946020939093013593505050565b600060208284031215611adc57600080fd5b5035919050565b60008083601f840112611af557600080fd5b50813567ffffffffffffffff811115611b0d57600080fd5b6020830191508360208260051b8501011115611b2857600080fd5b9250929050565b60008060008060408587031215611b4557600080fd5b843567ffffffffffffffff80821115611b5d57600080fd5b611b6988838901611ae3565b90965094506020870135915080821115611b8257600080fd5b50611b8f87828801611ae3565b95989497509550505050565b600080600060408486031215611bb057600080fd5b8335611bbb81611a1b565b9250602084013567ffffffffffffffff811115611bd757600080fd5b611be386828701611ae3565b9497909650939450505050565b600060208284031215611c0257600080fd5b8135611c0d81611a1b565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015611c4c57835183529284019291840191600101611c30565b50909695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611c9657611c96611c6e565b5060010190565b600060208284031215611caf57600080fd5b5051919050565b600060208284031215611cc857600080fd5b8151611c0d81611a1b565b634e487b7160e01b600052604160045260246000fd5b600060a08284031215611cfb57600080fd5b60405160a0810181811067ffffffffffffffff82111715611d2c57634e487b7160e01b600052604160045260246000fd5b8060405250825181526020830151602082015260408301516040820152606083015160608201526080830151611d6181611a1b565b60808201529392505050565b600060408284031215611d7f57600080fd5b6040516040810181811067ffffffffffffffff82111715611db057634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b818103818111156117da576117da611c6e565b634e487b7160e01b600052603160045260246000fd5b80820281158282048414176117da576117da611c6e565b600082611e2757634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156117da576117da611c6e56fea26469706673582212206523674e6ddf12346d710d4b6519d562ab25a52d5343ad4fd090c9402fc6c7de64736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000240000000000000000000000000408c9764993209dc772eb12ff641f4b55f5b005c0000000000000000000000000a7b2a21027f92243c5e5e777aa30bb7969b018800000000000000000000000000000000000000000005c50381f5a22ca960000000000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000009e34000000000000000000000000000000000000000000000000000000000000c5c1000000000000000000000000000000000000000000000000000000000000ed4e00000000000000000000000000000000000000000000000000000000000114db0000000000000000000000000000000000000000000000000000000000013c6800000000000000000000000000000000000000000000000000000000000163f50000000000000000000000000000000000000000000000000000000000018b82000000000000000000000000000000000000000000000000000000000001b30f000000000000000000000000000000000000000000000000000000000001da9c000000000000000000000000000000000000000000000000000000000003bbcf8000000000000000000000000000000000000000000000000000000000059d0300000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000891087b8a17cd000000000000000000000000000000000000000000000000000e14fc68e3008d200000000000000000000000000000000000000000000000000e14fc68e3008d200000000000000000000000000000000000000000000000000e14fc68e3008d2

-----Decoded View---------------
Arg [0] : _startTimeOffset (uint128[]): 10368000,12960000,15552000,18144000,20736000,23328000,25920000,28512000,31104000,62640000,94176000
Arg [1] : _rewardsPerSecond (uint128[]): 38580246913580240,38580246913580240,38580246913580240,38580246913580240,38580246913580240,38580246913580240,38580246913580240,38580246913580240,63419583967529170,63419583967529170,63419583967529170
Arg [2] : _poolConfigurator (address): 0x408c9764993209DC772eB12FF641F4b55F5b005C
Arg [3] : _rewardMinter (address): 0x0a7B2A21027F92243C5e5E777aa30BB7969b0188
Arg [4] : _maxMintable (uint256): 6975000000000000000000000
Arg [5] : _incentivesController (address): 0x21953192664867e19F85E96E1D1Dd79dc31cCcdB

-----Encoded View---------------
30 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [2] : 000000000000000000000000408c9764993209dc772eb12ff641f4b55f5b005c
Arg [3] : 0000000000000000000000000a7b2a21027f92243c5e5e777aa30bb7969b0188
Arg [4] : 00000000000000000000000000000000000000000005c50381f5a22ca9600000
Arg [5] : 00000000000000000000000021953192664867e19f85e96e1d1dd79dc31cccdb
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [7] : 00000000000000000000000000000000000000000000000000000000009e3400
Arg [8] : 0000000000000000000000000000000000000000000000000000000000c5c100
Arg [9] : 0000000000000000000000000000000000000000000000000000000000ed4e00
Arg [10] : 000000000000000000000000000000000000000000000000000000000114db00
Arg [11] : 00000000000000000000000000000000000000000000000000000000013c6800
Arg [12] : 000000000000000000000000000000000000000000000000000000000163f500
Arg [13] : 00000000000000000000000000000000000000000000000000000000018b8200
Arg [14] : 0000000000000000000000000000000000000000000000000000000001b30f00
Arg [15] : 0000000000000000000000000000000000000000000000000000000001da9c00
Arg [16] : 0000000000000000000000000000000000000000000000000000000003bbcf80
Arg [17] : 00000000000000000000000000000000000000000000000000000000059d0300
Arg [18] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [19] : 00000000000000000000000000000000000000000000000000891087b8a17cd0
Arg [20] : 00000000000000000000000000000000000000000000000000891087b8a17cd0
Arg [21] : 00000000000000000000000000000000000000000000000000891087b8a17cd0
Arg [22] : 00000000000000000000000000000000000000000000000000891087b8a17cd0
Arg [23] : 00000000000000000000000000000000000000000000000000891087b8a17cd0
Arg [24] : 00000000000000000000000000000000000000000000000000891087b8a17cd0
Arg [25] : 00000000000000000000000000000000000000000000000000891087b8a17cd0
Arg [26] : 00000000000000000000000000000000000000000000000000891087b8a17cd0
Arg [27] : 00000000000000000000000000000000000000000000000000e14fc68e3008d2
Arg [28] : 00000000000000000000000000000000000000000000000000e14fc68e3008d2
Arg [29] : 00000000000000000000000000000000000000000000000000e14fc68e3008d2


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.