ETH Price: $2,514.56 (+1.86%)

Contract

0xF3E4Cf64703632cBBfbbD292df9482D3ab7EDcFf
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim206595582024-09-02 1:20:2331 hrs ago1725240023IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000049660.56889829
Claim204439752024-08-02 22:56:1131 days ago1722639371IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000226632.68428469
Claim204067102024-07-28 18:01:5936 days ago1722189719IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.00022962.26140595
Claim203733992024-07-24 2:25:2341 days ago1721787923IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000231122.6473215
Claim203733622024-07-24 2:17:5941 days ago1721787479IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000228822.71022616
Claim203163592024-07-16 3:23:3549 days ago1721100215IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000356963.44794172
Claim202706092024-07-09 18:04:5955 days ago1720548299IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000460164.4447531
Claim202308332024-07-04 4:42:4761 days ago1720068167IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000267993.06969495
Claim202229642024-07-03 2:21:1162 days ago1719973271IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000434025.14061096
Claim202229572024-07-03 2:19:4762 days ago1719973187IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000402854.77151724
Claim201750772024-06-26 9:50:3568 days ago1719395435IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000393713.90716805
Claim201744532024-06-26 7:45:1169 days ago1719387911IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000176161.84433965
Claim201438532024-06-22 1:04:5973 days ago1719018299IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000198552.3333
Claim201384592024-06-21 6:59:4774 days ago1718953187IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.00030233
Claim201289962024-06-19 23:13:5975 days ago1718838839IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000518815.14858536
Claim201159972024-06-18 3:33:3577 days ago1718681615IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000965239.31504746
Claim200965132024-06-15 10:11:3579 days ago1718446295IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.00031853.92416186
Claim200209082024-06-04 20:40:5990 days ago1717533659IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.0010302911.80128621
Claim198956262024-05-18 8:25:35108 days ago1716020735IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000321754.10389812
Claim198460452024-05-11 9:58:11114 days ago1715421491IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.00046955.51739989
Claim198281282024-05-08 21:50:59117 days ago1715205059IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000362554.26057465
Claim198174982024-05-07 10:09:11118 days ago1715076551IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000734727.69230544
Claim All197649612024-04-30 1:52:35126 days ago1714441955IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000424617.22140965
Claim All197649462024-04-30 1:49:35126 days ago1714441775IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000416537.08395587
Claim197395172024-04-26 12:25:11129 days ago1714134311IN
0xF3E4Cf64...3ab7EDcFf
0 ETH0.000943269.111
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:
BentCVXRewarderV2

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 10 : BentCVXRewarderV2.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;

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

import "../libraries/Errors.sol";
import "../interfaces/IBentCVXRewarder.sol";

contract BentCVXRewarderV2 is Ownable, ReentrancyGuard, IBentCVXRewarder {
    using SafeERC20 for IERC20;

    event Deposit(address indexed user, uint256 amount);
    event Withdraw(address indexed user, uint256 amount);
    event ClaimAll(address indexed user);
    event Claim(address indexed user, uint256[] pids);

    struct PoolData {
        address rewardToken;
        uint256 accRewardPerShare; // Accumulated Rewards per share, times 1e36. See below.
        uint256 rewardRate;
        uint256 reserves;
    }

    address public bentCVXStaking;

    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;

    uint256 public rewardPoolsCount;
    mapping(uint256 => PoolData) public rewardPools;
    mapping(address => bool) public isRewardToken;
    mapping(uint256 => mapping(address => uint256)) internal userRewardDebt;
    mapping(uint256 => mapping(address => uint256)) internal userPendingRewards;

    uint256 public windowLength; // amount of blocks where we assume around 12 sec per block
    uint256 public minWindowLength = 7200; // minimum amount of blocks where 7200 = 1 day
    uint256 public endRewardBlock; // end block of rewards stream
    uint256 public lastRewardBlock; // last block of rewards streamed
    uint256 public harvesterFee = 0; // percentage fee to onReward caller where 100 = 1%

    modifier onlyBentCVXStaking() {
        require(bentCVXStaking == _msgSender(), Errors.UNAUTHORIZED);
        _;
    }

    constructor(
        address _bentCVXStaking,
        address[] memory _rewardTokens,
        uint256 _windowLength
    ) {
        bentCVXStaking = _bentCVXStaking;
        addRewardTokens(_rewardTokens);
        windowLength = _windowLength;
    }

    function setHarvesterFee(uint256 _fee) public onlyOwner {
        require(_fee <= 100, Errors.EXCEED_MAX_HARVESTER_FEE);
        harvesterFee = _fee;
    }

    function setWindowLength(uint256 _windowLength) public onlyOwner {
        require(_windowLength >= minWindowLength, Errors.INVALID_WINDOW_LENGTH);
        windowLength = _windowLength;
    }

    function addRewardTokens(address[] memory _rewardTokens) public onlyOwner {
        uint256 length = _rewardTokens.length;
        for (uint256 i = 0; i < length; ++i) {
            require(!isRewardToken[_rewardTokens[i]], Errors.ALREADY_EXISTS);
            rewardPools[rewardPoolsCount + i].rewardToken = _rewardTokens[i];
            isRewardToken[_rewardTokens[i]] = true;
        }
        rewardPoolsCount += length;
    }

    function removeRewardToken(uint256 _index) external onlyOwner {
        require(_index < rewardPoolsCount, Errors.INVALID_INDEX);

        isRewardToken[rewardPools[_index].rewardToken] = false;
        delete rewardPools[_index];
    }

    function pendingReward(address user)
        external
        view
        returns (uint256[] memory pending)
    {
        uint256 _rewardPoolsCount = rewardPoolsCount;
        pending = new uint256[](_rewardPoolsCount);

        if (totalSupply != 0) {
            uint256[] memory addedRewards = _calcAddedRewards();
            for (uint256 i = 0; i < _rewardPoolsCount; ++i) {
                PoolData memory pool = rewardPools[i];
                if (pool.rewardToken == address(0)) {
                    continue;
                }
                uint256 newAccRewardPerShare = pool.accRewardPerShare +
                    ((addedRewards[i] * 1e36) / totalSupply);

                pending[i] =
                    userPendingRewards[i][user] +
                    ((balanceOf[user] * newAccRewardPerShare) / 1e36) -
                    userRewardDebt[i][user];
            }
        }
    }

    function deposit(address _user, uint256 _amount)
        external
        override
        onlyBentCVXStaking
    {
        require(_amount != 0, Errors.ZERO_AMOUNT);

        _updateAccPerShare(true, _user);

        _mint(_user, _amount);

        _updateUserRewardDebt(_user);

        emit Deposit(_user, _amount);
    }

    function withdraw(address _user, uint256 _amount)
        external
        override
        onlyBentCVXStaking
    {
        require(
            balanceOf[_user] >= _amount && _amount != 0,
            Errors.INVALID_AMOUNT
        );

        _updateAccPerShare(true, _user);

        _burn(_user, _amount);

        _updateUserRewardDebt(_user);

        emit Withdraw(_user, _amount);
    }

    function claimAll(address _user)
        external
        override
        nonReentrant
        returns (bool claimed)
    {
        _updateAccPerShare(true, _user);

        uint256 _rewardPoolsCount = rewardPoolsCount;
        for (uint256 i = 0; i < _rewardPoolsCount; ++i) {
            uint256 claimAmount = _claim(i, _user);
            if (claimAmount > 0) {
                claimed = true;
            }
        }

        _updateUserRewardDebt(_user);

        emit ClaimAll(_user);
    }

    function claim(address _user, uint256[] memory pids)
        external
        override
        nonReentrant
        returns (bool claimed)
    {
        _updateAccPerShare(true, _user);

        for (uint256 i = 0; i < pids.length; ++i) {
            uint256 claimAmount = _claim(pids[i], _user);
            if (claimAmount > 0) {
                claimed = true;
            }
        }

        _updateUserRewardDebt(_user);

        emit Claim(_user, pids);
    }

    function onReward() external nonReentrant {
        _updateAccPerShare(false, address(0));

        bool newRewardsAvailable = false;
        for (uint256 i = 0; i < rewardPoolsCount; ++i) {
            PoolData storage pool = rewardPools[i];
            if (pool.rewardToken == address(0)) {
                continue;
            }

            uint256 newRewards = IERC20(pool.rewardToken).balanceOf(
                address(this)
            ) - pool.reserves;
            uint256 newRewardsFees = (newRewards * harvesterFee) / 10000;
            uint256 newRewardsFinal = newRewards - newRewardsFees;

            if (newRewardsFinal > 0) {
                newRewardsAvailable = true;
            }

            if (endRewardBlock > lastRewardBlock) {
                pool.rewardRate =
                    (pool.rewardRate *
                        (endRewardBlock - lastRewardBlock) +
                        newRewardsFinal *
                        1e36) /
                    windowLength;
            } else {
                pool.rewardRate = (newRewardsFinal * 1e36) / windowLength;
            }

            pool.reserves += newRewardsFinal;

            if (newRewardsFees > 0) {
                IERC20(pool.rewardToken).transfer(msg.sender, newRewardsFees);
            }
        }

        require(newRewardsAvailable, Errors.ZERO_AMOUNT);

        endRewardBlock = lastRewardBlock + windowLength;
    }

    function updateReserve() external nonReentrant onlyOwner {
        for (uint256 i = 0; i < rewardPoolsCount; ++i) {
            PoolData storage pool = rewardPools[i];
            if (pool.rewardToken == address(0)) {
                continue;
            }

            pool.reserves = IERC20(pool.rewardToken).balanceOf(address(this));
        }
    }

    // Internal Functions

    function _updateAccPerShare(bool withdrawReward, address user) internal {
        uint256[] memory addedRewards = _calcAddedRewards();
        uint256 _rewardPoolsCount = rewardPoolsCount;
        for (uint256 i = 0; i < _rewardPoolsCount; ++i) {
            PoolData storage pool = rewardPools[i];
            if (pool.rewardToken == address(0)) {
                continue;
            }

            if (totalSupply == 0) {
                pool.accRewardPerShare = block.number;
            } else {
                pool.accRewardPerShare +=
                    (addedRewards[i] * (1e36)) /
                    totalSupply;
            }

            if (withdrawReward) {
                uint256 pending = ((balanceOf[user] * pool.accRewardPerShare) /
                    1e36) - userRewardDebt[i][user];

                if (pending > 0) {
                    userPendingRewards[i][user] += pending;
                }
            }
        }

        lastRewardBlock = block.number;
    }

    function _calcAddedRewards()
        internal
        view
        returns (uint256[] memory addedRewards)
    {
        uint256 startBlock = endRewardBlock > lastRewardBlock + windowLength
            ? endRewardBlock - windowLength
            : lastRewardBlock;
        uint256 endBlock = block.number > endRewardBlock
            ? endRewardBlock
            : block.number;
        uint256 duration = endBlock > startBlock ? endBlock - startBlock : 0;

        uint256 _rewardPoolsCount = rewardPoolsCount;
        addedRewards = new uint256[](_rewardPoolsCount);
        for (uint256 i = 0; i < _rewardPoolsCount; ++i) {
            addedRewards[i] = (rewardPools[i].rewardRate * duration) / 1e36;
        }
    }

    function _updateUserRewardDebt(address user) internal {
        uint256 _rewardPoolsCount = rewardPoolsCount;
        for (uint256 i = 0; i < _rewardPoolsCount; ++i) {
            if (rewardPools[i].rewardToken != address(0)) {
                userRewardDebt[i][user] =
                    (balanceOf[user] * rewardPools[i].accRewardPerShare) /
                    1e36;
            }
        }
    }

    function _claim(uint256 pid, address user)
        internal
        returns (uint256 claimAmount)
    {
        if (rewardPools[pid].rewardToken == address(0)) {
            return 0;
        }

        claimAmount = userPendingRewards[pid][user];
        if (claimAmount > 0) {
            IERC20(rewardPools[pid].rewardToken).safeTransfer(
                user,
                claimAmount
            );
            rewardPools[pid].reserves -= claimAmount;
            userPendingRewards[pid][user] = 0;
        }
    }

    function _mint(address _user, uint256 _amount) internal {
        balanceOf[_user] += _amount;
        totalSupply += _amount;
    }

    function _burn(address _user, uint256 _amount) internal {
        balanceOf[_user] -= _amount;
        totalSupply -= _amount;
    }
}

File 2 of 10 : 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 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 10 : 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 5 of 10 : 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 6 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 7 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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 8 of 10 : 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 9 of 10 : IBentCVXRewarder.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;

interface IBentCVXRewarder {
    function deposit(address _user, uint256 _amount) external;

    function withdraw(address _user, uint256 _amount) external;

    function claimAll(address _user) external returns (bool claimed);

    function claim(address _user, uint256[] memory pids)
        external
        returns (bool claimed);
}

File 10 of 10 : Errors.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;

library Errors {
    string public constant ZERO_ADDRESS = "100";
    string public constant ZERO_AMOUNT = "101";
    string public constant INVALID_ADDRESS = "102";
    string public constant INVALID_AMOUNT = "103";
    string public constant NO_PENDING_REWARD = "104";
    string public constant INVALID_PID = "105";
    string public constant INVALID_POOL_ADDRESS = "106";
    string public constant UNAUTHORIZED = "107";
    string public constant ALREADY_EXISTS = "108";
    string public constant SAME_ALLOCPOINT = "109";
    string public constant INVALID_REWARD_PER_BLOCK = "110";
    string public constant INSUFFICIENT_REWARDS = "111";
    string public constant EXCEED_MAX_HARVESTER_FEE = "112";
    string public constant EXCEED_MAX_FEE = "113";
    string public constant INVALID_INDEX = "114";
    string public constant INVALID_REQUEST = "115";
    string public constant INVALID_WINDOW_LENGTH = "116";
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_bentCVXStaking","type":"address"},{"internalType":"address[]","name":"_rewardTokens","type":"address[]"},{"internalType":"uint256","name":"_windowLength","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"ClaimAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address[]","name":"_rewardTokens","type":"address[]"}],"name":"addRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bentCVXStaking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"claim","outputs":[{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"claimAll","outputs":[{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvesterFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isRewardToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minWindowLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256[]","name":"pending","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"removeRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardPools","outputs":[{"internalType":"address","name":"rewardToken","type":"address"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"rewardRate","type":"uint256"},{"internalType":"uint256","name":"reserves","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPoolsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setHarvesterFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_windowLength","type":"uint256"}],"name":"setWindowLength","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"windowLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052611c20600b556000600e553480156200001c57600080fd5b5060405162002217380380620022178339810160408190526200003f9162000302565b6200004a3362000080565b60018055600280546001600160a01b0319166001600160a01b0385161790556200007482620000d0565b600a5550620004b19050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620000da62000287565b805160005b818110156200026957600760008483815181106200010d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff16156040518060400160405280600381526020016206260760eb1b815250906200018a5760405162461bcd60e51b8152600401620001819190620003f6565b60405180910390fd5b50828181518110620001ac57634e487b7160e01b600052603260045260246000fd5b60200260200101516006600083600554620001c891906200044c565b815260200190815260200160002060000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506001600760008584815181106200022457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055620002618162000467565b9050620000df565b5080600560008282546200027e91906200044c565b90915550505050565b6000546001600160a01b03163314620002e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000181565b565b80516001600160a01b0381168114620002fd57600080fd5b919050565b60008060006060848603121562000317578283fd5b6200032284620002e5565b602085810151919450906001600160401b038082111562000341578485fd5b818701915087601f83011262000355578485fd5b8151818111156200036a576200036a6200049b565b8060051b604051601f19603f830116810181811085821117156200039257620003926200049b565b604052828152858101935084860182860187018c1015620003b1578889fd5b8895505b83861015620003de57620003c981620002e5565b855260019590950194938601938601620003b5565b50809750505050505050604084015190509250925092565b6000602080835283518082850152825b81811015620004245785810183015185820160400152820162000406565b81811115620004365783604083870101525b50601f01601f1916929092016040019392505050565b6000821982111562000462576200046262000485565b500190565b60006000198214156200047e576200047e62000485565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b611d5680620004c16000396000f3fe608060405234801561001057600080fd5b50600436106101a35760003560e01c806380f85794116100ee578063b5fd73f811610097578063be64505011610071578063be64505014610388578063f2fde38b14610391578063f3fef3a3146103a4578063f40f0f52146103b757600080fd5b8063b5fd73f81461034a578063ba349c5a1461036d578063bac051ad1461038057600080fd5b8063a1f87809116100c8578063a1f878091461031b578063a9f8d1811461032e578063b3e921261461033757600080fd5b806380f85794146102f857806381fa561a146103015780638da5cb5b1461030a57600080fd5b806369b161bc1161015057806377329f351161012a57806377329f35146102d457806379344855146102e75780637c70b205146102ef57600080fd5b806369b161bc1461029957806370a08231146102ac578063715018a6146102cc57600080fd5b8063457182781161018157806345718278146101f857806346abf3911461021b57806347e7ef241461028457600080fd5b8063153a7216146101a857806316b27a05146101c457806318160ddd146101ef575b600080fd5b6101b160055481565b6040519081526020015b60405180910390f35b6002546101d7906001600160a01b031681565b6040516001600160a01b0390911681526020016101bb565b6101b160035481565b61020b610206366004611995565b6103d7565b60405190151581526020016101bb565b61025a610229366004611b23565b60066020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b03909516855260208501939093529183015260608201526080016101bb565b610297610292366004611a40565b6104a3565b005b6102976102a7366004611b23565b610591565b6101b16102ba366004611974565b60046020526000908152604090205481565b6102976105f9565b61020b6102e2366004611974565b61060d565b6102976106a7565b6101b1600a5481565b6101b1600b5481565b6101b1600c5481565b6000546001600160a01b03166101d7565b610297610329366004611a69565b610951565b6101b1600d5481565b610297610345366004611b23565b610b09565b61020b610358366004611974565b60076020526000908152604090205460ff1681565b61029761037b366004611b23565b610b6d565b610297610c31565b6101b1600e5481565b61029761039f366004611974565b610d0c565b6102976103b2366004611a40565b610d9c565b6103ca6103c5366004611974565b610eb8565b6040516101bb9190611b6f565b60006103e16110ba565b6103ec600184611114565b60005b825181101561044957600061042b84838151811061041d57634e487b7160e01b600052603260045260246000fd5b602002602001015186611293565b9050801561043857600192505b5061044281611cd9565b90506103ef565b5061045383611353565b826001600160a01b03167f62e5026cd9fe3da2857a32843590ee91bb903ce20cfd623f97b7f1ba9f2cb6d88360405161048c9190611b6f565b60405180910390a261049d60018055565b92915050565b60025460408051808201909152600381526231303760e81b6020820152906001600160a01b031633146104f25760405162461bcd60e51b81526004016104e99190611bb3565b60405180910390fd5b5060408051808201909152600381526231303160e81b60208201528161052b5760405162461bcd60e51b81526004016104e99190611bb3565b50610537600183611114565b6105418282611405565b61054a82611353565b816001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c8260405161058591815260200190565b60405180910390a25050565b610599611446565b600b548110156040518060400160405280600381526020017f3131360000000000000000000000000000000000000000000000000000000000815250906105f35760405162461bcd60e51b81526004016104e99190611bb3565b50600a55565b610601611446565b61060b60006114a0565b565b60006106176110ba565b610622600183611114565b60055460005b8181101561065a57600061063c8286611293565b9050801561064957600193505b5061065381611cd9565b9050610628565b5061066483611353565b6040516001600160a01b038416907f35c46ad0a3be0baa9f2efefd524536899a004933e4fd4c13a81a0e1a38f5511590600090a2506106a260018055565b919050565b6106af6110ba565b6106ba600080611114565b6000805b6005548110156108fa57600081815260066020526040902080546001600160a01b03166106eb57506108ea565b600381015481546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a082319060240160206040518083038186803b15801561073457600080fd5b505afa158015610748573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076c9190611b3b565b6107769190611c92565b90506000612710600e548361078b9190611c73565b6107959190611c53565b905060006107a38284611c92565b905080156107b057600195505b600d54600c54111561081557600a546107d8826ec097ce7bc90715b34b9f1000000000611c73565b600d54600c546107e89190611c92565b86600201546107f79190611c73565b6108019190611c3b565b61080b9190611c53565b6002850155610841565b600a54610831826ec097ce7bc90715b34b9f1000000000611c73565b61083b9190611c53565b60028501555b808460030160008282546108559190611c3b565b909155505081156108e557835460405163a9059cbb60e01b8152336004820152602481018490526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156108ab57600080fd5b505af11580156108bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e39190611b03565b505b505050505b6108f381611cd9565b90506106be565b5060408051808201909152600381526231303160e81b6020820152816109335760405162461bcd60e51b81526004016104e99190611bb3565b50600a54600d546109449190611c3b565b600c555061060b60018055565b610959611446565b805160005b81811015610aed576007600084838151811061098a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff16156040518060400160405280600381526020017f313038000000000000000000000000000000000000000000000000000000000081525090610a155760405162461bcd60e51b81526004016104e99190611bb3565b50828181518110610a3657634e487b7160e01b600052603260045260246000fd5b60200260200101516006600083600554610a509190611c3b565b815260200190815260200160002060000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600160076000858481518110610aab57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055610ae681611cd9565b905061095e565b508060056000828254610b009190611c3b565b90915550505050565b610b11611446565b60408051808201909152600381527f313132000000000000000000000000000000000000000000000000000000000060208201526064821115610b675760405162461bcd60e51b81526004016104e99190611bb3565b50600e55565b610b75611446565b60055481106040518060400160405280600381526020017f313134000000000000000000000000000000000000000000000000000000000081525090610bce5760405162461bcd60e51b81526004016104e99190611bb3565b50600081815260066020818152604080842080546001600160a01b0316855260078352908420805460ff1916905593835252815473ffffffffffffffffffffffffffffffffffffffff191682556001820181905560028201819055600390910155565b610c396110ba565b610c41611446565b60005b600554811015610d0257600081815260066020526040902080546001600160a01b0316610c715750610cf2565b80546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610cb357600080fd5b505afa158015610cc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ceb9190611b3b565b6003909101555b610cfb81611cd9565b9050610c44565b5061060b60018055565b610d14611446565b6001600160a01b038116610d905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104e9565b610d99816114a0565b50565b60025460408051808201909152600381526231303760e81b6020820152906001600160a01b03163314610de25760405162461bcd60e51b81526004016104e99190611bb3565b506001600160a01b0382166000908152600460205260409020548111801590610e0a57508015155b6040518060400160405280600381526020017f313033000000000000000000000000000000000000000000000000000000000081525090610e5e5760405162461bcd60e51b81526004016104e99190611bb3565b50610e6a600183611114565b610e7482826114fd565b610e7d82611353565b816001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243648260405161058591815260200190565b6005546060908067ffffffffffffffff811115610ee557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f0e578160200160208202803683370190505b5091506003546000146110b4576000610f2561153e565b905060005b828110156110b157600081815260066020908152604091829020825160808101845281546001600160a01b0316808252600183015493820193909352600282015493810193909352600301546060830152610f8557506110a1565b6000600354848481518110610faa57634e487b7160e01b600052603260045260246000fd5b60200260200101516ec097ce7bc90715b34b9f1000000000610fcc9190611c73565b610fd69190611c53565b8260200151610fe59190611c3b565b60008481526008602090815260408083206001600160a01b038c168452825280832054600490925290912054919250906ec097ce7bc90715b34b9f100000000090611031908490611c73565b61103b9190611c53565b60008581526009602090815260408083206001600160a01b038d1684529091529020546110689190611c3b565b6110729190611c92565b86848151811061109257634e487b7160e01b600052603260045260246000fd5b60200260200101818152505050505b6110aa81611cd9565b9050610f2a565b50505b50919050565b6002600154141561110d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e9565b6002600155565b600061111e61153e565b60055490915060005b8181101561128857600081815260066020526040902080546001600160a01b03166111525750611278565b600354611164574360018201556111cc565b60035484838151811061118757634e487b7160e01b600052603260045260246000fd5b60200260200101516ec097ce7bc90715b34b9f10000000006111a99190611c73565b6111b39190611c53565b8160010160008282546111c69190611c3b565b90915550505b85156112765760008281526008602090815260408083206001600160a01b0389168452825280832054600185015460049093529083205490916ec097ce7bc90715b34b9f1000000000916112209190611c73565b61122a9190611c53565b6112349190611c92565b905080156112745760008381526009602090815260408083206001600160a01b038a1684529091528120805483929061126e908490611c3b565b90915550505b505b505b61128181611cd9565b9050611127565b505043600d55505050565b6000828152600660205260408120546001600160a01b03166112b75750600061049d565b5060008281526009602090815260408083206001600160a01b0385168452909152902054801561049d57600083815260066020526040902054611304906001600160a01b03168383611684565b60008381526006602052604081206003018054839290611325908490611c92565b909155505060008381526009602090815260408083206001600160a01b038616845290915281205592915050565b60055460005b81811015611400576000818152600660205260409020546001600160a01b0316156113f0576000818152600660209081526040808320600101546001600160a01b03871684526004909252909120546ec097ce7bc90715b34b9f1000000000916113c291611c73565b6113cc9190611c53565b60008281526008602090815260408083206001600160a01b03881684529091529020555b6113f981611cd9565b9050611359565b505050565b6001600160a01b0382166000908152600460205260408120805483929061142d908490611c3b565b925050819055508060036000828254610b009190611c3b565b6000546001600160a01b0316331461060b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e9565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526004602052604081208054839290611525908490611c92565b925050819055508060036000828254610b009190611c92565b60606000600a54600d546115529190611c3b565b600c541161156257600d54611572565b600a54600c546115729190611c92565b90506000600c5443116115855743611589565b600c545b9050600082821161159b5760006115a5565b6115a58383611c92565b6005549091508067ffffffffffffffff8111156115d257634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115fb578160200160208202803683370190505b50945060005b8181101561167c576000818152600660205260409020600201546ec097ce7bc90715b34b9f100000000090611637908590611c73565b6116419190611c53565b86828151811061166157634e487b7160e01b600052603260045260246000fd5b602090810291909101015261167581611cd9565b9050611601565b505050505090565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152611400928692916000916117299185169084906117b9565b80519091501561140057808060200190518101906117479190611b03565b6114005760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104e9565b60606117c884846000856117d0565b949350505050565b6060824710156118485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104e9565b600080866001600160a01b031685876040516118649190611b53565b60006040518083038185875af1925050503d80600081146118a1576040519150601f19603f3d011682016040523d82523d6000602084013e6118a6565b606091505b50915091506118b7878383876118c2565b979650505050505050565b6060831561192e578251611927576001600160a01b0385163b6119275760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104e9565b50816117c8565b6117c883838151156119435781518083602001fd5b8060405162461bcd60e51b81526004016104e99190611bb3565b80356001600160a01b03811681146106a257600080fd5b600060208284031215611985578081fd5b61198e8261195d565b9392505050565b600080604083850312156119a7578081fd5b6119b08361195d565b915060208084013567ffffffffffffffff8111156119cc578283fd5b8401601f810186136119dc578283fd5b80356119ef6119ea82611c17565b611be6565b80828252848201915084840189868560051b8701011115611a0e578687fd5b8694505b83851015611a30578035835260019490940193918501918501611a12565b5080955050505050509250929050565b60008060408385031215611a52578182fd5b611a5b8361195d565b946020939093013593505050565b60006020808385031215611a7b578182fd5b823567ffffffffffffffff811115611a91578283fd5b8301601f81018513611aa1578283fd5b8035611aaf6119ea82611c17565b80828252848201915084840188868560051b8701011115611ace578687fd5b8694505b83851015611af757611ae38161195d565b835260019490940193918501918501611ad2565b50979650505050505050565b600060208284031215611b14578081fd5b8151801515811461198e578182fd5b600060208284031215611b34578081fd5b5035919050565b600060208284031215611b4c578081fd5b5051919050565b60008251611b65818460208701611ca9565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b81811015611ba757835183529284019291840191600101611b8b565b50909695505050505050565b6020815260008251806020840152611bd2816040850160208701611ca9565b601f01601f19169190910160400192915050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c0f57611c0f611d0a565b604052919050565b600067ffffffffffffffff821115611c3157611c31611d0a565b5060051b60200190565b60008219821115611c4e57611c4e611cf4565b500190565b600082611c6e57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611c8d57611c8d611cf4565b500290565b600082821015611ca457611ca4611cf4565b500390565b60005b83811015611cc4578181015183820152602001611cac565b83811115611cd3576000848401525b50505050565b6000600019821415611ced57611ced611cf4565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220aa362b58531ede12742cb8673b689252950ad87be81eb4d30d842164404f791e64736f6c6343000804003300000000000000000000000046e16f8f03687f877bd97830a9331ad915274d0d000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000189c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a35760003560e01c806380f85794116100ee578063b5fd73f811610097578063be64505011610071578063be64505014610388578063f2fde38b14610391578063f3fef3a3146103a4578063f40f0f52146103b757600080fd5b8063b5fd73f81461034a578063ba349c5a1461036d578063bac051ad1461038057600080fd5b8063a1f87809116100c8578063a1f878091461031b578063a9f8d1811461032e578063b3e921261461033757600080fd5b806380f85794146102f857806381fa561a146103015780638da5cb5b1461030a57600080fd5b806369b161bc1161015057806377329f351161012a57806377329f35146102d457806379344855146102e75780637c70b205146102ef57600080fd5b806369b161bc1461029957806370a08231146102ac578063715018a6146102cc57600080fd5b8063457182781161018157806345718278146101f857806346abf3911461021b57806347e7ef241461028457600080fd5b8063153a7216146101a857806316b27a05146101c457806318160ddd146101ef575b600080fd5b6101b160055481565b6040519081526020015b60405180910390f35b6002546101d7906001600160a01b031681565b6040516001600160a01b0390911681526020016101bb565b6101b160035481565b61020b610206366004611995565b6103d7565b60405190151581526020016101bb565b61025a610229366004611b23565b60066020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b03909516855260208501939093529183015260608201526080016101bb565b610297610292366004611a40565b6104a3565b005b6102976102a7366004611b23565b610591565b6101b16102ba366004611974565b60046020526000908152604090205481565b6102976105f9565b61020b6102e2366004611974565b61060d565b6102976106a7565b6101b1600a5481565b6101b1600b5481565b6101b1600c5481565b6000546001600160a01b03166101d7565b610297610329366004611a69565b610951565b6101b1600d5481565b610297610345366004611b23565b610b09565b61020b610358366004611974565b60076020526000908152604090205460ff1681565b61029761037b366004611b23565b610b6d565b610297610c31565b6101b1600e5481565b61029761039f366004611974565b610d0c565b6102976103b2366004611a40565b610d9c565b6103ca6103c5366004611974565b610eb8565b6040516101bb9190611b6f565b60006103e16110ba565b6103ec600184611114565b60005b825181101561044957600061042b84838151811061041d57634e487b7160e01b600052603260045260246000fd5b602002602001015186611293565b9050801561043857600192505b5061044281611cd9565b90506103ef565b5061045383611353565b826001600160a01b03167f62e5026cd9fe3da2857a32843590ee91bb903ce20cfd623f97b7f1ba9f2cb6d88360405161048c9190611b6f565b60405180910390a261049d60018055565b92915050565b60025460408051808201909152600381526231303760e81b6020820152906001600160a01b031633146104f25760405162461bcd60e51b81526004016104e99190611bb3565b60405180910390fd5b5060408051808201909152600381526231303160e81b60208201528161052b5760405162461bcd60e51b81526004016104e99190611bb3565b50610537600183611114565b6105418282611405565b61054a82611353565b816001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c8260405161058591815260200190565b60405180910390a25050565b610599611446565b600b548110156040518060400160405280600381526020017f3131360000000000000000000000000000000000000000000000000000000000815250906105f35760405162461bcd60e51b81526004016104e99190611bb3565b50600a55565b610601611446565b61060b60006114a0565b565b60006106176110ba565b610622600183611114565b60055460005b8181101561065a57600061063c8286611293565b9050801561064957600193505b5061065381611cd9565b9050610628565b5061066483611353565b6040516001600160a01b038416907f35c46ad0a3be0baa9f2efefd524536899a004933e4fd4c13a81a0e1a38f5511590600090a2506106a260018055565b919050565b6106af6110ba565b6106ba600080611114565b6000805b6005548110156108fa57600081815260066020526040902080546001600160a01b03166106eb57506108ea565b600381015481546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a082319060240160206040518083038186803b15801561073457600080fd5b505afa158015610748573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076c9190611b3b565b6107769190611c92565b90506000612710600e548361078b9190611c73565b6107959190611c53565b905060006107a38284611c92565b905080156107b057600195505b600d54600c54111561081557600a546107d8826ec097ce7bc90715b34b9f1000000000611c73565b600d54600c546107e89190611c92565b86600201546107f79190611c73565b6108019190611c3b565b61080b9190611c53565b6002850155610841565b600a54610831826ec097ce7bc90715b34b9f1000000000611c73565b61083b9190611c53565b60028501555b808460030160008282546108559190611c3b565b909155505081156108e557835460405163a9059cbb60e01b8152336004820152602481018490526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156108ab57600080fd5b505af11580156108bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e39190611b03565b505b505050505b6108f381611cd9565b90506106be565b5060408051808201909152600381526231303160e81b6020820152816109335760405162461bcd60e51b81526004016104e99190611bb3565b50600a54600d546109449190611c3b565b600c555061060b60018055565b610959611446565b805160005b81811015610aed576007600084838151811061098a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff16156040518060400160405280600381526020017f313038000000000000000000000000000000000000000000000000000000000081525090610a155760405162461bcd60e51b81526004016104e99190611bb3565b50828181518110610a3657634e487b7160e01b600052603260045260246000fd5b60200260200101516006600083600554610a509190611c3b565b815260200190815260200160002060000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600160076000858481518110610aab57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055610ae681611cd9565b905061095e565b508060056000828254610b009190611c3b565b90915550505050565b610b11611446565b60408051808201909152600381527f313132000000000000000000000000000000000000000000000000000000000060208201526064821115610b675760405162461bcd60e51b81526004016104e99190611bb3565b50600e55565b610b75611446565b60055481106040518060400160405280600381526020017f313134000000000000000000000000000000000000000000000000000000000081525090610bce5760405162461bcd60e51b81526004016104e99190611bb3565b50600081815260066020818152604080842080546001600160a01b0316855260078352908420805460ff1916905593835252815473ffffffffffffffffffffffffffffffffffffffff191682556001820181905560028201819055600390910155565b610c396110ba565b610c41611446565b60005b600554811015610d0257600081815260066020526040902080546001600160a01b0316610c715750610cf2565b80546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610cb357600080fd5b505afa158015610cc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ceb9190611b3b565b6003909101555b610cfb81611cd9565b9050610c44565b5061060b60018055565b610d14611446565b6001600160a01b038116610d905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104e9565b610d99816114a0565b50565b60025460408051808201909152600381526231303760e81b6020820152906001600160a01b03163314610de25760405162461bcd60e51b81526004016104e99190611bb3565b506001600160a01b0382166000908152600460205260409020548111801590610e0a57508015155b6040518060400160405280600381526020017f313033000000000000000000000000000000000000000000000000000000000081525090610e5e5760405162461bcd60e51b81526004016104e99190611bb3565b50610e6a600183611114565b610e7482826114fd565b610e7d82611353565b816001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243648260405161058591815260200190565b6005546060908067ffffffffffffffff811115610ee557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f0e578160200160208202803683370190505b5091506003546000146110b4576000610f2561153e565b905060005b828110156110b157600081815260066020908152604091829020825160808101845281546001600160a01b0316808252600183015493820193909352600282015493810193909352600301546060830152610f8557506110a1565b6000600354848481518110610faa57634e487b7160e01b600052603260045260246000fd5b60200260200101516ec097ce7bc90715b34b9f1000000000610fcc9190611c73565b610fd69190611c53565b8260200151610fe59190611c3b565b60008481526008602090815260408083206001600160a01b038c168452825280832054600490925290912054919250906ec097ce7bc90715b34b9f100000000090611031908490611c73565b61103b9190611c53565b60008581526009602090815260408083206001600160a01b038d1684529091529020546110689190611c3b565b6110729190611c92565b86848151811061109257634e487b7160e01b600052603260045260246000fd5b60200260200101818152505050505b6110aa81611cd9565b9050610f2a565b50505b50919050565b6002600154141561110d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e9565b6002600155565b600061111e61153e565b60055490915060005b8181101561128857600081815260066020526040902080546001600160a01b03166111525750611278565b600354611164574360018201556111cc565b60035484838151811061118757634e487b7160e01b600052603260045260246000fd5b60200260200101516ec097ce7bc90715b34b9f10000000006111a99190611c73565b6111b39190611c53565b8160010160008282546111c69190611c3b565b90915550505b85156112765760008281526008602090815260408083206001600160a01b0389168452825280832054600185015460049093529083205490916ec097ce7bc90715b34b9f1000000000916112209190611c73565b61122a9190611c53565b6112349190611c92565b905080156112745760008381526009602090815260408083206001600160a01b038a1684529091528120805483929061126e908490611c3b565b90915550505b505b505b61128181611cd9565b9050611127565b505043600d55505050565b6000828152600660205260408120546001600160a01b03166112b75750600061049d565b5060008281526009602090815260408083206001600160a01b0385168452909152902054801561049d57600083815260066020526040902054611304906001600160a01b03168383611684565b60008381526006602052604081206003018054839290611325908490611c92565b909155505060008381526009602090815260408083206001600160a01b038616845290915281205592915050565b60055460005b81811015611400576000818152600660205260409020546001600160a01b0316156113f0576000818152600660209081526040808320600101546001600160a01b03871684526004909252909120546ec097ce7bc90715b34b9f1000000000916113c291611c73565b6113cc9190611c53565b60008281526008602090815260408083206001600160a01b03881684529091529020555b6113f981611cd9565b9050611359565b505050565b6001600160a01b0382166000908152600460205260408120805483929061142d908490611c3b565b925050819055508060036000828254610b009190611c3b565b6000546001600160a01b0316331461060b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e9565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526004602052604081208054839290611525908490611c92565b925050819055508060036000828254610b009190611c92565b60606000600a54600d546115529190611c3b565b600c541161156257600d54611572565b600a54600c546115729190611c92565b90506000600c5443116115855743611589565b600c545b9050600082821161159b5760006115a5565b6115a58383611c92565b6005549091508067ffffffffffffffff8111156115d257634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115fb578160200160208202803683370190505b50945060005b8181101561167c576000818152600660205260409020600201546ec097ce7bc90715b34b9f100000000090611637908590611c73565b6116419190611c53565b86828151811061166157634e487b7160e01b600052603260045260246000fd5b602090810291909101015261167581611cd9565b9050611601565b505050505090565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152611400928692916000916117299185169084906117b9565b80519091501561140057808060200190518101906117479190611b03565b6114005760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104e9565b60606117c884846000856117d0565b949350505050565b6060824710156118485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104e9565b600080866001600160a01b031685876040516118649190611b53565b60006040518083038185875af1925050503d80600081146118a1576040519150601f19603f3d011682016040523d82523d6000602084013e6118a6565b606091505b50915091506118b7878383876118c2565b979650505050505050565b6060831561192e578251611927576001600160a01b0385163b6119275760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104e9565b50816117c8565b6117c883838151156119435781518083602001fd5b8060405162461bcd60e51b81526004016104e99190611bb3565b80356001600160a01b03811681146106a257600080fd5b600060208284031215611985578081fd5b61198e8261195d565b9392505050565b600080604083850312156119a7578081fd5b6119b08361195d565b915060208084013567ffffffffffffffff8111156119cc578283fd5b8401601f810186136119dc578283fd5b80356119ef6119ea82611c17565b611be6565b80828252848201915084840189868560051b8701011115611a0e578687fd5b8694505b83851015611a30578035835260019490940193918501918501611a12565b5080955050505050509250929050565b60008060408385031215611a52578182fd5b611a5b8361195d565b946020939093013593505050565b60006020808385031215611a7b578182fd5b823567ffffffffffffffff811115611a91578283fd5b8301601f81018513611aa1578283fd5b8035611aaf6119ea82611c17565b80828252848201915084840188868560051b8701011115611ace578687fd5b8694505b83851015611af757611ae38161195d565b835260019490940193918501918501611ad2565b50979650505050505050565b600060208284031215611b14578081fd5b8151801515811461198e578182fd5b600060208284031215611b34578081fd5b5035919050565b600060208284031215611b4c578081fd5b5051919050565b60008251611b65818460208701611ca9565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b81811015611ba757835183529284019291840191600101611b8b565b50909695505050505050565b6020815260008251806020840152611bd2816040850160208701611ca9565b601f01601f19169190910160400192915050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c0f57611c0f611d0a565b604052919050565b600067ffffffffffffffff821115611c3157611c31611d0a565b5060051b60200190565b60008219821115611c4e57611c4e611cf4565b500190565b600082611c6e57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611c8d57611c8d611cf4565b500290565b600082821015611ca457611ca4611cf4565b500390565b60005b83811015611cc4578181015183820152602001611cac565b83811115611cd3576000848401525b50505050565b6000600019821415611ced57611ced611cf4565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220aa362b58531ede12742cb8673b689252950ad87be81eb4d30d842164404f791e64736f6c63430008040033

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

00000000000000000000000046e16f8f03687f877bd97830a9331ad915274d0d000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000189c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b

-----Decoded View---------------
Arg [0] : _bentCVXStaking (address): 0x46E16f8F03687f877bD97830a9331aD915274d0D
Arg [1] : _rewardTokens (address[]): 0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B
Arg [2] : _windowLength (uint256): 100800

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000046e16f8f03687f877bd97830a9331ad915274d0d
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000189c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 0000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b


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.