ETH Price: $3,311.09 (-1.67%)
Gas: 2 Gwei

Contract

0xA4342F9566a9c2FA79A04294fB21dB8dF3888405
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Pause171815382023-05-03 17:01:35453 days ago1683133295IN
0xA4342F95...dF3888405
0 ETH0.0021758877.91891362
Admin Withdraw R...171815252023-05-03 16:58:59453 days ago1683133139IN
0xA4342F95...dF3888405
0 ETH0.0042446176.12972623
Withdraw171814742023-05-03 16:48:23453 days ago1683132503IN
0xA4342F95...dF3888405
0 ETH0.0098957369.96168655
Withdraw171814102023-05-03 16:35:23453 days ago1683131723IN
0xA4342F95...dF3888405
0 ETH0.0100788571.25635732
Withdraw171813972023-05-03 16:32:47453 days ago1683131567IN
0xA4342F95...dF3888405
0 ETH0.0099611770.41837168
Withdraw171813892023-05-03 16:31:11453 days ago1683131471IN
0xA4342F95...dF3888405
0 ETH0.0098237769.44709688
Withdraw171813872023-05-03 16:30:47453 days ago1683131447IN
0xA4342F95...dF3888405
0 ETH0.0099057170.03818242
Withdraw171813732023-05-03 16:27:59453 days ago1683131279IN
0xA4342F95...dF3888405
0 ETH0.0110674878.23923384
Withdraw171812712023-05-03 16:07:35453 days ago1683130055IN
0xA4342F95...dF3888405
0 ETH0.0088510171.17427517
Withdraw171812652023-05-03 16:06:23453 days ago1683129983IN
0xA4342F95...dF3888405
0 ETH0.0095022276.41087753
Withdraw171812612023-05-03 16:05:35453 days ago1683129935IN
0xA4342F95...dF3888405
0 ETH0.0085198379.42495373
Withdraw171812552023-05-03 16:04:23453 days ago1683129863IN
0xA4342F95...dF3888405
0 ETH0.0087642881.71290287
Withdraw171812422023-05-03 16:01:47453 days ago1683129707IN
0xA4342F95...dF3888405
0 ETH0.00888282.81049077
Withdraw171811662023-05-03 15:46:35453 days ago1683128795IN
0xA4342F95...dF3888405
0 ETH0.0081733876.18673926
Withdraw171811602023-05-03 15:45:23453 days ago1683128723IN
0xA4342F95...dF3888405
0 ETH0.0080437674.97847873
Withdraw171811382023-05-03 15:40:59453 days ago1683128459IN
0xA4342F95...dF3888405
0 ETH0.0082801877.18224189
Withdraw171810102023-05-03 15:14:47453 days ago1683126887IN
0xA4342F95...dF3888405
0 ETH0.0084161678.46732226
Withdraw171809992023-05-03 15:12:35453 days ago1683126755IN
0xA4342F95...dF3888405
0 ETH0.0089522483.44666436
Withdraw171809752023-05-03 15:07:47453 days ago1683126467IN
0xA4342F95...dF3888405
0 ETH0.0090820984.67600437
Withdraw171808862023-05-03 14:49:47453 days ago1683125387IN
0xA4342F95...dF3888405
0 ETH0.0079911474.48794611
Withdraw171808582023-05-03 14:44:11453 days ago1683125051IN
0xA4342F95...dF3888405
0 ETH0.0086030380.20954934
Withdraw171803512023-05-03 12:59:47453 days ago1683118787IN
0xA4342F95...dF3888405
0 ETH0.0069789565.05307236
Withdraw171803292023-05-03 12:55:23453 days ago1683118523IN
0xA4342F95...dF3888405
0 ETH0.0068591563.95068507
Withdraw171803162023-05-03 12:52:47453 days ago1683118367IN
0xA4342F95...dF3888405
0 ETH0.0067886163.2787844
Withdraw171803032023-05-03 12:50:11453 days ago1683118211IN
0xA4342F95...dF3888405
0 ETH0.0067778663.19275277
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:
VibeStakingPool

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : VibeStakingPool.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/**
 * @title VibeStakingPool
 * @notice It is a staking pool for $VIBE (stake $VIBE -> get USDC).
 */
contract VibeStakingPool is Ownable, Pausable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    struct UserInfo {
        uint256 amount; // Amount of staked tokens provided by user
        uint256 rewardDebt; // Reward debt
        uint256 lastStakedTime; // users's last staked time
    }

    uint256 public constant LOCK_PERIOD = 15 days;
    uint256 public constant PENALTY_RATE = 3000;

    // Precision factor for reward calculation
    uint256 public constant PRECISION_FACTOR = 10**24;

    // USDC token (token distributed)
    IERC20 public immutable USDC;

    // VIBE Token (The staked token)
    IERC20 public immutable VIBE;

    // Block number when rewards start
    uint256 public START_BLOCK;

    // Accumulated tokens per share
    uint256 public accTokenPerShare;

    // Block number when rewards end
    uint256 public endBlock;

    // Block number of the last update
    uint256 public lastRewardBlock;

    // Tokens distributed per block (in USDC)
    uint256 public rewardPerBlock;

    // UserInfo for users that stake tokens (VIBE)
    mapping(address => UserInfo) public userInfo;

    event AdminWithdrawRewards(uint256 amount);
    event AdminAddRewards(uint256 amount);
    event Deposit(address indexed user, uint256 amount, uint256 harvestedAmount);
    event EmergencyWithdraw(address indexed user, uint256 amount);
    event Harvest(address indexed user, uint256 harvestedAmount);
    event NewRewardPerBlockAndEndBlock(uint256 rewardPerBlock, uint256 endBlock);
    event Withdraw(address indexed user, uint256 amount, uint256 harvestedAmount);

    /**
     * @dev Throws if the values are not initialized by the owner.
     */
    modifier initialized() {
        require(START_BLOCK != 0, "START_BLOCK is not initialized");
        _;
    }

    /**
     * @notice Constructor
     * @param _VIBE staked token address
     * @param _USDC reward token address
     */
    constructor(
        address _VIBE,
        address _USDC
    ) {
        VIBE = IERC20(_VIBE);
        USDC = IERC20(_USDC);
    }

    /**
     * @notice Initialize
     * @param _rewardPerBlock reward per block (in USDC)
     * @param _startBlock start block
     * @param _endBlock end block
     */
    function initialize(
        uint256 _rewardPerBlock,
        uint256 _startBlock,
        uint256 _endBlock
    ) external onlyOwner{
        require(START_BLOCK == 0, "START_BLOCK is already initialized");

        require(_rewardPerBlock != 0);
        require(_startBlock != 0);
        require(_endBlock >= _startBlock);

        rewardPerBlock = _rewardPerBlock;
        START_BLOCK = _startBlock;
        endBlock = _endBlock;

        // Set the lastRewardBlock as the start block
        lastRewardBlock = _startBlock;
    }

    /**
     * @notice Deposit staked tokens and collect reward tokens (if any)
     * @param amount amount to deposit (in VIBE)
     */
    function deposit(uint256 amount) external nonReentrant whenNotPaused{
        require(amount > 0, "Deposit: Amount must be > 0");

        _updatePool();

        uint256 pendingRewards;

        if (userInfo[msg.sender].amount > 0) {
            pendingRewards =
                ((userInfo[msg.sender].amount * accTokenPerShare) / PRECISION_FACTOR) -
                userInfo[msg.sender].rewardDebt;

            if (pendingRewards > 0) {
                USDC.safeTransfer(msg.sender, pendingRewards);
            }
        }

        VIBE.safeTransferFrom(msg.sender, address(this), amount);

        userInfo[msg.sender].amount += amount;
        userInfo[msg.sender].rewardDebt = (userInfo[msg.sender].amount * accTokenPerShare) / PRECISION_FACTOR;
        userInfo[msg.sender].lastStakedTime = block.timestamp;

        emit Deposit(msg.sender, amount, pendingRewards);
    }

    /**
     * @notice Harvest tokens that are pending
     */
    function harvest() external nonReentrant whenNotPaused{
        _updatePool();

        uint256 pendingRewards = ((userInfo[msg.sender].amount * accTokenPerShare) / PRECISION_FACTOR) -
            userInfo[msg.sender].rewardDebt;

        require(pendingRewards > 0, "Harvest: Pending rewards must be > 0");

        userInfo[msg.sender].rewardDebt = (userInfo[msg.sender].amount * accTokenPerShare) / PRECISION_FACTOR;
        USDC.safeTransfer(msg.sender, pendingRewards);

        emit Harvest(msg.sender, pendingRewards);
    }

    /**
     * @notice Withdraw staked tokens and give up rewards
     * @dev Only for emergency. It does not update the pool.
     */
    function emergencyWithdraw() external nonReentrant whenPaused {
        uint256 userBalance = userInfo[msg.sender].amount;

        require(userBalance != 0, "Withdraw: Amount must be > 0");

        // Reset internal value for user
        userInfo[msg.sender].amount = 0;
        userInfo[msg.sender].rewardDebt = 0;
        userInfo[msg.sender].lastStakedTime = 0;

        VIBE.safeTransfer(msg.sender, userBalance);

        emit EmergencyWithdraw(msg.sender, userBalance);
    }

    /**
     * @notice Withdraw staked tokens and collect reward tokens
     * @param amount amount to withdraw (in VIBE)
     */
    function withdraw(uint256 amount, bool penalty) external nonReentrant whenNotPaused{
        require(
            (userInfo[msg.sender].amount >= amount) && (amount > 0),
            "Withdraw: Amount must be > 0 or lower than user balance"
        );
        bool isLockPeriodOver = block.timestamp >= (userInfo[msg.sender].lastStakedTime + LOCK_PERIOD);
        require(isLockPeriodOver || penalty, "Locked period is not over yet, set penalty to true if you want to withdraw()");

        _updatePool();

        uint256 pendingRewards = ((userInfo[msg.sender].amount * accTokenPerShare) / PRECISION_FACTOR) -
            userInfo[msg.sender].rewardDebt;

        userInfo[msg.sender].amount -= amount;
        userInfo[msg.sender].rewardDebt = (userInfo[msg.sender].amount * accTokenPerShare) / PRECISION_FACTOR;

        uint256 penaltyAmount = 0;
        if (!isLockPeriodOver) {
            // still in lock period, calculate penalty
            penaltyAmount = (amount * PENALTY_RATE) / 10000;
            amount -= penaltyAmount;
        }
        if (penaltyAmount > 0) {
            // burn penalty tokens
            VIBE.safeTransfer(address(0x000000000000000000000000000000000000dEaD), penaltyAmount);
        }
        
        VIBE.safeTransfer(msg.sender, amount);

        if (pendingRewards > 0) {
            USDC.safeTransfer(msg.sender, pendingRewards);
        }

        emit Withdraw(msg.sender, amount, pendingRewards);
    }

    /**
     * @notice Withdraw rewards (for admin)
     * @param amount amount to withdraw (in USDC)
     * @dev Only callable by owner.
     */
    function adminWithdrawRewards(uint256 amount) external onlyOwner {
        require(amount > 0, "Cannot withdraw 0 rewards");
        USDC.safeTransfer(_msgSender(), amount);
        emit AdminWithdrawRewards(amount);
    }

    /**
     * @notice Add rewards (for admin)
     * @param amount amount to add (in USDC)
     * @dev Only callable by owner.
     */
    function adminAddRewards(uint256 amount) external onlyOwner {
        require(amount > 0, "Cannot add 0 rewards");
        USDC.safeTransferFrom(_msgSender(), address(this), amount);
        emit AdminAddRewards(amount);
    }

    /**
     * @notice Pause
     * It allows calling emergencyWithdraw
     */
    function pause() external onlyOwner whenNotPaused {
        _pause();
    }

    /**
     * @notice Unpause
     */
    function unpause() external onlyOwner whenPaused {
        _unpause();
    }

    /**
     * @notice Update reward per block and the end block
     * @param newRewardPerBlock the new reward per block
     * @param newEndBlock the new end block
     */
    function updateRewardPerBlockAndEndBlock(uint256 newRewardPerBlock, uint256 newEndBlock) external onlyOwner {
        if (block.number >= START_BLOCK) {
            _updatePool();
        }
        require(newEndBlock > block.number, "Owner: New endBlock must be after current block");
        require(newEndBlock > START_BLOCK, "Owner: New endBlock must be after start block");

        endBlock = newEndBlock;
        rewardPerBlock = newRewardPerBlock;

        emit NewRewardPerBlockAndEndBlock(newRewardPerBlock, newEndBlock);
    }

    /**
     * @notice View function to see pending reward on frontend.
     * @param user address of the user
     * @return Pending reward
     */
    function calculatePendingRewards(address user) external initialized view returns (uint256) {
        uint256 VIBESupply = VIBE.balanceOf(address(this));

        if ((block.number > lastRewardBlock) && (VIBESupply != 0)) {
            uint256 multiplier = _getMultiplier(lastRewardBlock, block.number);
            uint256 tokenReward = multiplier * rewardPerBlock;
            uint256 adjustedTokenPerShare = accTokenPerShare + (tokenReward * PRECISION_FACTOR) / VIBESupply;

            return (userInfo[user].amount * adjustedTokenPerShare) / PRECISION_FACTOR - userInfo[user].rewardDebt;
        } else {
            return (userInfo[user].amount * accTokenPerShare) / PRECISION_FACTOR - userInfo[user].rewardDebt;
        }
    }

    /**
     * @notice Update reward variables of the pool to be up-to-date.
     */
    function _updatePool() internal initialized{
        if (block.number <= lastRewardBlock) {
            return;
        }

        uint256 VIBESupply = VIBE.balanceOf(address(this));

        if (VIBESupply == 0) {
            lastRewardBlock = block.number;
            return;
        }

        uint256 multiplier = _getMultiplier(lastRewardBlock, block.number);
        uint256 tokenReward = multiplier * rewardPerBlock;

        // Update only if token reward for staking is not null
        if (tokenReward > 0) {
            accTokenPerShare = accTokenPerShare + ((tokenReward * PRECISION_FACTOR) / VIBESupply);
        }

        // Update last reward block only if it wasn't updated after or at the end block
        if (lastRewardBlock <= endBlock) {
            lastRewardBlock = block.number;
        }
    }

    /**
     * @notice Return reward multiplier over the given "from" to "to" block.
     * @param from block to start calculating reward
     * @param to block to finish calculating reward
     * @return the multiplier for the period
     */
    function _getMultiplier(uint256 from, uint256 to) internal view returns (uint256) {
        if (to <= endBlock) {
            return to - from;
        } else if (from >= endBlock) {
            return 0;
        } else {
            return endBlock - from;
        }
    }
}

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

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 9 : 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 5 of 9 : 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 6 of 9 : 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 7 of 9 : 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 8 of 9 : 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 9 of 9 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_VIBE","type":"address"},{"internalType":"address","name":"_USDC","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminAddRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminWithdrawRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"harvestedAmount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"harvestedAmount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"}],"name":"NewRewardPerBlockAndEndBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"harvestedAmount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"LOCK_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PENALTY_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_BLOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VIBE","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accTokenPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminAddRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminWithdrawRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"calculatePendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_endBlock","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRewardBlock","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"newEndBlock","type":"uint256"}],"name":"updateRewardPerBlockAndEndBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"lastStakedTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"penalty","type":"bool"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b5060405162001bd138038062001bd18339810160408190526200003491620000dc565b6200003f336200006f565b6000805460ff60a01b19169055600180556001600160601b0319606092831b811660a052911b1660805262000113565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000d757600080fd5b919050565b60008060408385031215620000ef578182fd5b620000fa83620000bf565b91506200010a60208401620000bf565b90509250929050565b60805160601c60a05160601c611a456200018c6000396000818161019801528181610409015281816107f40152818161082a01528181610dae01528181610f2601526112850152600081816102f7015281816108640152818161094401528181610ab401528181610b800152610d7a0152611a456000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c8063715018a6116100de5780638f66291511610097578063ccd34cd511610071578063ccd34cd514610358578063db2e21bc14610369578063dead81b314610371578063f2fde38b1461038457600080fd5b80638f66291514610333578063a9f8d1811461033c578063b6b55f251461034557600080fd5b8063715018a6146102cf57806380d85911146102d75780638456cb59146102ea57806389a30271146102f25780638ae39cac146103195780638da5cb5b1461032257600080fd5b806338d074361161014b5780634478d8b6116101255780634478d8b6146102845780634641257d14610297578063469ad66b1461029f5780635c975abb146102b257600080fd5b806338d074361461025e57806339b3e826146102735780633f4ba83a1461027c57600080fd5b806304a3b7cd14610193578063083c6323146101d7578063097aad10146101ee5780630ad08b86146102015780631820cabb1461020a5780631959a00214610214575b600080fd5b6101ba7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6101e060045481565b6040519081526020016101ce565b6101e06101fc366004611814565b610397565b6101e0610bb881565b6101e06213c68081565b610243610222366004611814565b60076020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016101ce565b61027161026c366004611887565b61059f565b005b6101e060025481565b6102716108d6565b610271610292366004611857565b6108f0565b6102716109ab565b6102716102ad366004611857565b610b23565b600054600160a01b900460ff1660405190151581526020016101ce565b610271610bdf565b6102716102e53660046118d7565b610bf1565b610271610c8b565b6101ba7f000000000000000000000000000000000000000000000000000000000000000081565b6101e060065481565b6000546001600160a01b03166101ba565b6101e060035481565b6101e060055481565b610271610353366004611857565b610ca3565b6101e069d3c21bcecceda100000081565b610271610e96565b61027161037f3660046118b6565b610f87565b610271610392366004611814565b6110b5565b6000600254600014156103f15760405162461bcd60e51b815260206004820152601e60248201527f53544152545f424c4f434b206973206e6f7420696e697469616c697a6564000060448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561045357600080fd5b505afa158015610467573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048b919061186f565b90506005544311801561049d57508015155b1561054a5760006104b06005544361112b565b90506000600654826104c29190611989565b90506000836104db69d3c21bcecceda100000084611989565b6104e59190611969565b6003546104f29190611951565b6001600160a01b0387166000908152600760205260409020600181015490549192509069d3c21bcecceda10000009061052c908490611989565b6105369190611969565b61054091906119a8565b9695505050505050565b6001600160a01b038316600090815260076020526040902060018101546003549154909169d3c21bcecceda1000000916105849190611989565b61058e9190611969565b61059891906119a8565b9392505050565b6105a761116c565b6105af6111c6565b3360009081526007602052604090205482118015906105ce5750600082115b6106405760405162461bcd60e51b815260206004820152603760248201527f57697468647261773a20416d6f756e74206d757374206265203e2030206f722060448201527f6c6f776572207468616e20757365722062616c616e636500000000000000000060648201526084016103e8565b33600090815260076020526040812060020154610661906213c68090611951565b4210159050808061066f5750815b6106f65760405162461bcd60e51b815260206004820152604c60248201527f4c6f636b656420706572696f64206973206e6f74206f766572207965742c207360448201527f65742070656e616c747920746f207472756520696620796f752077616e74207460648201526b6f207769746864726177282960a01b608482015260a4016103e8565b6106fe611213565b33600090815260076020526040812060018101546003549154909169d3c21bcecceda10000009161072f9190611989565b6107399190611969565b61074391906119a8565b336000908152600760205260408120805492935086929091906107679084906119a8565b90915550506003543360009081526007602052604090205469d3c21bcecceda10000009161079491611989565b61079e9190611969565b33600090815260076020526040812060010191909155826107e1576127106107c8610bb887611989565b6107d29190611969565b90506107de81866119a8565b94505b801561081d5761081d6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661dead83611382565b6108516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163387611382565b811561088b5761088b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163384611382565b604080518681526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a25050506108d260018055565b5050565b6108de6113e5565b6108e661143f565b6108ee61148f565b565b6108f86113e5565b6000811161093f5760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74206164642030207265776172647360601b60448201526064016103e8565b6109747f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163330846114e4565b6040518181527f380e68cddaef3eaf256d1357b769cb9867ca3eddace805de940d0e1de3152d9a906020015b60405180910390a150565b6109b361116c565b6109bb6111c6565b6109c3611213565b33600090815260076020526040812060018101546003549154909169d3c21bcecceda1000000916109f49190611989565b6109fe9190611969565b610a0891906119a8565b905060008111610a665760405162461bcd60e51b8152602060048201526024808201527f486172766573743a2050656e64696e672072657761726473206d7573742062656044820152630203e20360e41b60648201526084016103e8565b6003543360009081526007602052604090205469d3c21bcecceda100000091610a8e91611989565b610a989190611969565b33600081815260076020526040902060010191909155610ae3907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169083611382565b60405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba906020015b60405180910390a2506108ee60018055565b610b2b6113e5565b60008111610b7b5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207769746864726177203020726577617264730000000000000060448201526064016103e8565b610baf7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163383611382565b6040518181527fef3d202040287ce55b04ab24f17e5d3b2506787555ff3d8bc305d5a285d6c349906020016109a0565b610be76113e5565b6108ee6000611522565b610bf96113e5565b60025415610c545760405162461bcd60e51b815260206004820152602260248201527f53544152545f424c4f434b20697320616c726561647920696e697469616c697a604482015261195960f21b60648201526084016103e8565b82610c5e57600080fd5b81610c6857600080fd5b81811015610c7557600080fd5b6006929092556002819055600491909155600555565b610c936113e5565b610c9b6111c6565b6108ee611572565b610cab61116c565b610cb36111c6565b60008111610d035760405162461bcd60e51b815260206004820152601b60248201527f4465706f7369743a20416d6f756e74206d757374206265203e2030000000000060448201526064016103e8565b610d0b611213565b3360009081526007602052604081205415610da15733600090815260076020526040902060018101546003549154909169d3c21bcecceda100000091610d519190611989565b610d5b9190611969565b610d6591906119a8565b90508015610da157610da16001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383611382565b610dd66001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330856114e4565b3360009081526007602052604081208054849290610df5908490611951565b90915550506003543360009081526007602052604090205469d3c21bcecceda100000091610e2291611989565b610e2c9190611969565b33600081815260076020908152604091829020600181019490945542600290940193909355805185815292830184905290917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15910160405180910390a250610e9360018055565b50565b610e9e61116c565b610ea661143f565b3360009081526007602052604090205480610f035760405162461bcd60e51b815260206004820152601c60248201527f57697468647261773a20416d6f756e74206d757374206265203e20300000000060448201526064016103e8565b3360008181526007602052604081208181556001810182905560020155610f55907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169083611382565b60405181815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969590602001610b11565b610f8f6113e5565b6002544310610fa057610fa0611213565b4381116110075760405162461bcd60e51b815260206004820152602f60248201527f4f776e65723a204e657720656e64426c6f636b206d757374206265206166746560448201526e722063757272656e7420626c6f636b60881b60648201526084016103e8565b600254811161106e5760405162461bcd60e51b815260206004820152602d60248201527f4f776e65723a204e657720656e64426c6f636b206d757374206265206166746560448201526c7220737461727420626c6f636b60981b60648201526084016103e8565b6004819055600682905560408051838152602081018390527f5fbc8888d6f91664a15735f81cde412b4cc9641ac0ce5440a295439f71768e4b910160405180910390a15050565b6110bd6113e5565b6001600160a01b0381166111225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103e8565b610e9381611522565b600060045482116111475761114083836119a8565b9050611166565b600454831061115857506000611166565b8260045461114091906119a8565b92915050565b600260015414156111bf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103e8565b6002600155565b600054600160a01b900460ff16156108ee5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103e8565b6002546112625760405162461bcd60e51b815260206004820152601e60248201527f53544152545f424c4f434b206973206e6f7420696e697469616c697a6564000060448201526064016103e8565b600554431161126d57565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156112cf57600080fd5b505afa1580156112e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611307919061186f565b905080611315575043600555565b60006113236005544361112b565b90506000600654826113359190611989565b9050801561136d578261135269d3c21bcecceda100000083611989565b61135c9190611969565b6003546113699190611951565b6003555b6004546005541161137d57436005555b505050565b6040516001600160a01b03831660248201526044810182905261137d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526115b5565b6000546001600160a01b031633146108ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103e8565b600054600160a01b900460ff166108ee5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016103e8565b61149761143f565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040516001600160a01b038085166024830152831660448201526064810182905261151c9085906323b872dd60e01b906084016113ae565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61157a6111c6565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114c73390565b600061160a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116879092919063ffffffff16565b80519091501561137d5780806020019051810190611628919061183b565b61137d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103e8565b6060611696848460008561169e565b949350505050565b6060824710156116ff5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103e8565b600080866001600160a01b0316858760405161171b9190611902565b60006040518083038185875af1925050503d8060008114611758576040519150601f19603f3d011682016040523d82523d6000602084013e61175d565b606091505b509150915061176e87838387611779565b979650505050505050565b606083156117e55782516117de576001600160a01b0385163b6117de5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103e8565b5081611696565b61169683838151156117fa5781518083602001fd5b8060405162461bcd60e51b81526004016103e8919061191e565b600060208284031215611825578081fd5b81356001600160a01b0381168114610598578182fd5b60006020828403121561184c578081fd5b815161059881611a01565b600060208284031215611868578081fd5b5035919050565b600060208284031215611880578081fd5b5051919050565b60008060408385031215611899578081fd5b8235915060208301356118ab81611a01565b809150509250929050565b600080604083850312156118c8578182fd5b50508035926020909101359150565b6000806000606084860312156118eb578081fd5b505081359360208301359350604090920135919050565b600082516119148184602087016119bf565b9190910192915050565b602081526000825180602084015261193d8160408501602087016119bf565b601f01601f19169190910160400192915050565b60008219821115611964576119646119eb565b500190565b60008261198457634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156119a3576119a36119eb565b500290565b6000828210156119ba576119ba6119eb565b500390565b60005b838110156119da5781810151838201526020016119c2565b8381111561151c5750506000910152565b634e487b7160e01b600052601160045260246000fd5b8015158114610e9357600080fdfea264697066735822122009a6475656a7eb8c9778782dd61619e4df7b7a4f51e1a5f643d3168f19fb130164736f6c6343000804003300000000000000000000000058459e4254600d60930471541fb1b0b0cc9f6843000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c8063715018a6116100de5780638f66291511610097578063ccd34cd511610071578063ccd34cd514610358578063db2e21bc14610369578063dead81b314610371578063f2fde38b1461038457600080fd5b80638f66291514610333578063a9f8d1811461033c578063b6b55f251461034557600080fd5b8063715018a6146102cf57806380d85911146102d75780638456cb59146102ea57806389a30271146102f25780638ae39cac146103195780638da5cb5b1461032257600080fd5b806338d074361161014b5780634478d8b6116101255780634478d8b6146102845780634641257d14610297578063469ad66b1461029f5780635c975abb146102b257600080fd5b806338d074361461025e57806339b3e826146102735780633f4ba83a1461027c57600080fd5b806304a3b7cd14610193578063083c6323146101d7578063097aad10146101ee5780630ad08b86146102015780631820cabb1461020a5780631959a00214610214575b600080fd5b6101ba7f00000000000000000000000058459e4254600d60930471541fb1b0b0cc9f684381565b6040516001600160a01b0390911681526020015b60405180910390f35b6101e060045481565b6040519081526020016101ce565b6101e06101fc366004611814565b610397565b6101e0610bb881565b6101e06213c68081565b610243610222366004611814565b60076020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016101ce565b61027161026c366004611887565b61059f565b005b6101e060025481565b6102716108d6565b610271610292366004611857565b6108f0565b6102716109ab565b6102716102ad366004611857565b610b23565b600054600160a01b900460ff1660405190151581526020016101ce565b610271610bdf565b6102716102e53660046118d7565b610bf1565b610271610c8b565b6101ba7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6101e060065481565b6000546001600160a01b03166101ba565b6101e060035481565b6101e060055481565b610271610353366004611857565b610ca3565b6101e069d3c21bcecceda100000081565b610271610e96565b61027161037f3660046118b6565b610f87565b610271610392366004611814565b6110b5565b6000600254600014156103f15760405162461bcd60e51b815260206004820152601e60248201527f53544152545f424c4f434b206973206e6f7420696e697469616c697a6564000060448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526000907f00000000000000000000000058459e4254600d60930471541fb1b0b0cc9f68436001600160a01b0316906370a082319060240160206040518083038186803b15801561045357600080fd5b505afa158015610467573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048b919061186f565b90506005544311801561049d57508015155b1561054a5760006104b06005544361112b565b90506000600654826104c29190611989565b90506000836104db69d3c21bcecceda100000084611989565b6104e59190611969565b6003546104f29190611951565b6001600160a01b0387166000908152600760205260409020600181015490549192509069d3c21bcecceda10000009061052c908490611989565b6105369190611969565b61054091906119a8565b9695505050505050565b6001600160a01b038316600090815260076020526040902060018101546003549154909169d3c21bcecceda1000000916105849190611989565b61058e9190611969565b61059891906119a8565b9392505050565b6105a761116c565b6105af6111c6565b3360009081526007602052604090205482118015906105ce5750600082115b6106405760405162461bcd60e51b815260206004820152603760248201527f57697468647261773a20416d6f756e74206d757374206265203e2030206f722060448201527f6c6f776572207468616e20757365722062616c616e636500000000000000000060648201526084016103e8565b33600090815260076020526040812060020154610661906213c68090611951565b4210159050808061066f5750815b6106f65760405162461bcd60e51b815260206004820152604c60248201527f4c6f636b656420706572696f64206973206e6f74206f766572207965742c207360448201527f65742070656e616c747920746f207472756520696620796f752077616e74207460648201526b6f207769746864726177282960a01b608482015260a4016103e8565b6106fe611213565b33600090815260076020526040812060018101546003549154909169d3c21bcecceda10000009161072f9190611989565b6107399190611969565b61074391906119a8565b336000908152600760205260408120805492935086929091906107679084906119a8565b90915550506003543360009081526007602052604090205469d3c21bcecceda10000009161079491611989565b61079e9190611969565b33600090815260076020526040812060010191909155826107e1576127106107c8610bb887611989565b6107d29190611969565b90506107de81866119a8565b94505b801561081d5761081d6001600160a01b037f00000000000000000000000058459e4254600d60930471541fb1b0b0cc9f68431661dead83611382565b6108516001600160a01b037f00000000000000000000000058459e4254600d60930471541fb1b0b0cc9f6843163387611382565b811561088b5761088b6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48163384611382565b604080518681526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a25050506108d260018055565b5050565b6108de6113e5565b6108e661143f565b6108ee61148f565b565b6108f86113e5565b6000811161093f5760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74206164642030207265776172647360601b60448201526064016103e8565b6109747f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03163330846114e4565b6040518181527f380e68cddaef3eaf256d1357b769cb9867ca3eddace805de940d0e1de3152d9a906020015b60405180910390a150565b6109b361116c565b6109bb6111c6565b6109c3611213565b33600090815260076020526040812060018101546003549154909169d3c21bcecceda1000000916109f49190611989565b6109fe9190611969565b610a0891906119a8565b905060008111610a665760405162461bcd60e51b8152602060048201526024808201527f486172766573743a2050656e64696e672072657761726473206d7573742062656044820152630203e20360e41b60648201526084016103e8565b6003543360009081526007602052604090205469d3c21bcecceda100000091610a8e91611989565b610a989190611969565b33600081815260076020526040902060010191909155610ae3907f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03169083611382565b60405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba906020015b60405180910390a2506108ee60018055565b610b2b6113e5565b60008111610b7b5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207769746864726177203020726577617264730000000000000060448201526064016103e8565b610baf7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03163383611382565b6040518181527fef3d202040287ce55b04ab24f17e5d3b2506787555ff3d8bc305d5a285d6c349906020016109a0565b610be76113e5565b6108ee6000611522565b610bf96113e5565b60025415610c545760405162461bcd60e51b815260206004820152602260248201527f53544152545f424c4f434b20697320616c726561647920696e697469616c697a604482015261195960f21b60648201526084016103e8565b82610c5e57600080fd5b81610c6857600080fd5b81811015610c7557600080fd5b6006929092556002819055600491909155600555565b610c936113e5565b610c9b6111c6565b6108ee611572565b610cab61116c565b610cb36111c6565b60008111610d035760405162461bcd60e51b815260206004820152601b60248201527f4465706f7369743a20416d6f756e74206d757374206265203e2030000000000060448201526064016103e8565b610d0b611213565b3360009081526007602052604081205415610da15733600090815260076020526040902060018101546003549154909169d3c21bcecceda100000091610d519190611989565b610d5b9190611969565b610d6591906119a8565b90508015610da157610da16001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48163383611382565b610dd66001600160a01b037f00000000000000000000000058459e4254600d60930471541fb1b0b0cc9f6843163330856114e4565b3360009081526007602052604081208054849290610df5908490611951565b90915550506003543360009081526007602052604090205469d3c21bcecceda100000091610e2291611989565b610e2c9190611969565b33600081815260076020908152604091829020600181019490945542600290940193909355805185815292830184905290917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15910160405180910390a250610e9360018055565b50565b610e9e61116c565b610ea661143f565b3360009081526007602052604090205480610f035760405162461bcd60e51b815260206004820152601c60248201527f57697468647261773a20416d6f756e74206d757374206265203e20300000000060448201526064016103e8565b3360008181526007602052604081208181556001810182905560020155610f55907f00000000000000000000000058459e4254600d60930471541fb1b0b0cc9f68436001600160a01b03169083611382565b60405181815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969590602001610b11565b610f8f6113e5565b6002544310610fa057610fa0611213565b4381116110075760405162461bcd60e51b815260206004820152602f60248201527f4f776e65723a204e657720656e64426c6f636b206d757374206265206166746560448201526e722063757272656e7420626c6f636b60881b60648201526084016103e8565b600254811161106e5760405162461bcd60e51b815260206004820152602d60248201527f4f776e65723a204e657720656e64426c6f636b206d757374206265206166746560448201526c7220737461727420626c6f636b60981b60648201526084016103e8565b6004819055600682905560408051838152602081018390527f5fbc8888d6f91664a15735f81cde412b4cc9641ac0ce5440a295439f71768e4b910160405180910390a15050565b6110bd6113e5565b6001600160a01b0381166111225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103e8565b610e9381611522565b600060045482116111475761114083836119a8565b9050611166565b600454831061115857506000611166565b8260045461114091906119a8565b92915050565b600260015414156111bf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103e8565b6002600155565b600054600160a01b900460ff16156108ee5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103e8565b6002546112625760405162461bcd60e51b815260206004820152601e60248201527f53544152545f424c4f434b206973206e6f7420696e697469616c697a6564000060448201526064016103e8565b600554431161126d57565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000058459e4254600d60930471541fb1b0b0cc9f68436001600160a01b0316906370a082319060240160206040518083038186803b1580156112cf57600080fd5b505afa1580156112e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611307919061186f565b905080611315575043600555565b60006113236005544361112b565b90506000600654826113359190611989565b9050801561136d578261135269d3c21bcecceda100000083611989565b61135c9190611969565b6003546113699190611951565b6003555b6004546005541161137d57436005555b505050565b6040516001600160a01b03831660248201526044810182905261137d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526115b5565b6000546001600160a01b031633146108ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103e8565b600054600160a01b900460ff166108ee5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016103e8565b61149761143f565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040516001600160a01b038085166024830152831660448201526064810182905261151c9085906323b872dd60e01b906084016113ae565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61157a6111c6565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114c73390565b600061160a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116879092919063ffffffff16565b80519091501561137d5780806020019051810190611628919061183b565b61137d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103e8565b6060611696848460008561169e565b949350505050565b6060824710156116ff5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103e8565b600080866001600160a01b0316858760405161171b9190611902565b60006040518083038185875af1925050503d8060008114611758576040519150601f19603f3d011682016040523d82523d6000602084013e61175d565b606091505b509150915061176e87838387611779565b979650505050505050565b606083156117e55782516117de576001600160a01b0385163b6117de5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103e8565b5081611696565b61169683838151156117fa5781518083602001fd5b8060405162461bcd60e51b81526004016103e8919061191e565b600060208284031215611825578081fd5b81356001600160a01b0381168114610598578182fd5b60006020828403121561184c578081fd5b815161059881611a01565b600060208284031215611868578081fd5b5035919050565b600060208284031215611880578081fd5b5051919050565b60008060408385031215611899578081fd5b8235915060208301356118ab81611a01565b809150509250929050565b600080604083850312156118c8578182fd5b50508035926020909101359150565b6000806000606084860312156118eb578081fd5b505081359360208301359350604090920135919050565b600082516119148184602087016119bf565b9190910192915050565b602081526000825180602084015261193d8160408501602087016119bf565b601f01601f19169190910160400192915050565b60008219821115611964576119646119eb565b500190565b60008261198457634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156119a3576119a36119eb565b500290565b6000828210156119ba576119ba6119eb565b500390565b60005b838110156119da5781810151838201526020016119c2565b8381111561151c5750506000910152565b634e487b7160e01b600052601160045260246000fd5b8015158114610e9357600080fdfea264697066735822122009a6475656a7eb8c9778782dd61619e4df7b7a4f51e1a5f643d3168f19fb130164736f6c63430008040033

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

00000000000000000000000058459e4254600d60930471541fb1b0b0cc9f6843000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

-----Decoded View---------------
Arg [0] : _VIBE (address): 0x58459e4254600D60930471541FB1B0B0CC9f6843
Arg [1] : _USDC (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000058459e4254600d60930471541fb1b0b0cc9f6843
Arg [1] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48


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.