ETH Price: $2,642.20 (+1.76%)

Contract

0x9fB6094f70fACd63765D43501b4437d077DAe653
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdrawn209954022024-10-18 22:21:591 hr ago1729290119IN
0x9fB6094f...077DAe653
0 ETH0.0002496610.50397913
Withdrawn209954012024-10-18 22:21:471 hr ago1729290107IN
0x9fB6094f...077DAe653
0 ETH0.0007213310.2136725
Claim209953942024-10-18 22:19:591 hr ago1729289999IN
0x9fB6094f...077DAe653
0 ETH0.000541738.44724371
Withdrawn209887432024-10-18 0:03:4724 hrs ago1729209827IN
0x9fB6094f...077DAe653
0 ETH0.0011302119.94277304
Compound209741362024-10-15 23:06:353 days ago1729033595IN
0x9fB6094f...077DAe653
0 ETH0.0005195410.06361015
Withdrawn209646562024-10-14 15:20:114 days ago1728919211IN
0x9fB6094f...077DAe653
0 ETH0.0030994543.88670419
Withdrawn209605712024-10-14 1:36:594 days ago1728869819IN
0x9fB6094f...077DAe653
0 ETH0.000647369.20161341
Claim209605302024-10-14 1:28:474 days ago1728869327IN
0x9fB6094f...077DAe653
0 ETH0.000685668.80590626
Stake209410282024-10-11 7:56:117 days ago1728633371IN
0x9fB6094f...077DAe653
0 ETH0.0015853617.23483785
Claim209268892024-10-09 8:38:239 days ago1728463103IN
0x9fB6094f...077DAe653
0 ETH0.0008022713.76965977
Compound208960512024-10-05 1:29:4713 days ago1728091787IN
0x9fB6094f...077DAe653
0 ETH0.000179034.19314879
Compound208805142024-10-02 21:30:2316 days ago1727904623IN
0x9fB6094f...077DAe653
0 ETH0.000465469.00690144
Withdrawn208695822024-10-01 8:54:4717 days ago1727772887IN
0x9fB6094f...077DAe653
0 ETH0.0011047115.70428037
Claim208227472024-09-24 20:08:3524 days ago1727208515IN
0x9fB6094f...077DAe653
0 ETH0.0017444827.18622927
Stake208101032024-09-23 1:48:3525 days ago1727056115IN
0x9fB6094f...077DAe653
0 ETH0.000539837.7
Compound206980682024-09-07 10:17:1141 days ago1725704231IN
0x9fB6094f...077DAe653
0 ETH0.000069221.34088628
Stake206792682024-09-04 19:20:3544 days ago1725477635IN
0x9fB6094f...077DAe653
0 ETH0.000692255.22169814
Stake206676382024-09-03 4:23:3545 days ago1725337415IN
0x9fB6094f...077DAe653
0 ETH0.000097861.12184663
Claim206657872024-09-02 22:11:3546 days ago1725315095IN
0x9fB6094f...077DAe653
0 ETH0.00026624.15096447
Compound206424992024-08-30 16:10:4749 days ago1725034247IN
0x9fB6094f...077DAe653
0 ETH0.000264345.11518033
Stake206335772024-08-29 10:14:4750 days ago1724926487IN
0x9fB6094f...077DAe653
0 ETH0.000284423.09163845
Claim206335702024-08-29 10:13:2350 days ago1724926403IN
0x9fB6094f...077DAe653
0 ETH0.000187073.21082835
Stake206298302024-08-28 21:39:4751 days ago1724881187IN
0x9fB6094f...077DAe653
0 ETH0.00020181.6783654
Withdrawn206298092024-08-28 21:35:3551 days ago1724880935IN
0x9fB6094f...077DAe653
0 ETH0.00011981.70287857
Compound206298052024-08-28 21:34:4751 days ago1724880887IN
0x9fB6094f...077DAe653
0 ETH0.000091381.7682691
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:
KaiStaking

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : KaiStaking1.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract KaiStaking {
    address private _owner;
    IERC20 private _token;
    bool public pause = false;

    struct Stake {
        uint256 amount;
        uint256 lockTime;
        uint256 lockMonths;
        uint256 lastRewardTime;
        uint256 rewardsEarned;
    }

    mapping(address => Stake) private _stakes;

    constructor(address tokenAddress) {
        _owner = msg.sender;
        _token = IERC20(tokenAddress);
    }

    function stake(uint256 amount, uint256 lockMonths) external {
        require(!pause, "contract paused");
        require(
            lockMonths == 1 || lockMonths == 3 || lockMonths == 6,
            "Invalid lock duration"
        );
        require(
            _stakes[msg.sender].amount == 0 ||
                _stakes[msg.sender].lockMonths == lockMonths,
            "Lock duration must be the same"
        );
        require(
            _token.transferFrom(msg.sender, address(this), amount),
            "Transfer failed"
        );

        uint256 lockTime = block.timestamp + (lockMonths * 30 days);
        uint256 rewardsEarned = _calculateRewards(msg.sender);

        _stakes[msg.sender] = Stake(
            _stakes[msg.sender].amount + amount,
            lockTime,
            lockMonths,
            block.timestamp,
            _stakes[msg.sender].rewardsEarned + rewardsEarned
        );
    }

    function withdrawn() external payable {
        require(_stakes[msg.sender].amount > 0, "No stake found");
        require(!pause, "contract paused");

        _stakes[msg.sender].rewardsEarned += _calculateRewards(msg.sender);
        _stakes[msg.sender].lastRewardTime = block.timestamp;

        uint256 amount = _stakes[msg.sender].rewardsEarned +
            _stakes[msg.sender].amount;
        if (block.timestamp < _stakes[msg.sender].lockTime)
            amount -= (amount / 10);

        _token.transfer(msg.sender, amount);

        _stakes[msg.sender].rewardsEarned = 0;
        _stakes[msg.sender].amount = 0;
        _stakes[msg.sender].lockTime = 0;
        _stakes[msg.sender].lockMonths = 0;
    }

    function compound() external payable {
        require(
            _stakes[msg.sender].rewardsEarned + _calculateRewards(msg.sender) >
                0,
            "No stake found"
        );
        require(!pause, "contract paused");

        _stakes[msg.sender].rewardsEarned += _calculateRewards(msg.sender);
        _stakes[msg.sender].lastRewardTime = block.timestamp;
        _stakes[msg.sender].amount += _stakes[msg.sender].rewardsEarned;
        _stakes[msg.sender].rewardsEarned = 0;
    }

    function claim() external payable {
        require(
            _stakes[msg.sender].rewardsEarned + _calculateRewards(msg.sender) >
                0,
            "No stake found"
        );
        require(!pause, "contract paused");

        _stakes[msg.sender].rewardsEarned += _calculateRewards(msg.sender);
        _stakes[msg.sender].lastRewardTime = block.timestamp;
        _token.transfer(msg.sender, _stakes[msg.sender].rewardsEarned);
        _stakes[msg.sender].rewardsEarned = 0;
    }

    function claimAmount(uint256 amount) external payable {
        require(
            _stakes[msg.sender].rewardsEarned + _calculateRewards(msg.sender) >
                0,
            "No stake found"
        );
        require(!pause, "contract paused");

        _stakes[msg.sender].rewardsEarned += _calculateRewards(msg.sender);
        require(
            amount <= _stakes[msg.sender].rewardsEarned,
            "No enought rewards"
        );

        _stakes[msg.sender].lastRewardTime = block.timestamp;
        _token.transfer(msg.sender, amount);
        _stakes[msg.sender].rewardsEarned -= amount;
    }

    function unlockUser(address user) external {
        require(msg.sender == _owner, "Not allowed");
        _stakes[user].lockTime = 0;
        _stakes[user].lastRewardTime = 0;
    }

    function setPause(bool _pause) external {
        require(msg.sender == _owner, "Not allowed");
        pause = _pause;
    }

    function getStakeInfo(address account)
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        return (
            _stakes[account].amount,
            _stakes[account].lockTime,
            _stakes[account].lockMonths,
            _stakes[account].lastRewardTime,
            _stakes[account].rewardsEarned
        );
    }

    function getRewards(address account) external view returns (uint256) {
        return _calculateRewards(account);
    }

    function _calculateRewards(address account) private view returns (uint256) {
        Stake memory _stake = _stakes[account];
        if (_stake.amount == 0) {
            return 0;
        }
        uint256 elapsedTime = block.timestamp - _stake.lastRewardTime;
        uint256 rewardPerSecond;
        if (_stake.lockMonths == 6) {
            rewardPerSecond = (_stake.amount * 25) / (100 * 31536000);
        } else if (_stake.lockMonths == 3) {
            rewardPerSecond = (_stake.amount * 20) / (100 * 31536000);
        } else {
            rewardPerSecond = (_stake.amount * 15) / (100 * 31536000);
        }
        return rewardPerSecond * elapsedTime;
    }

    function migrate(address to, uint256 amount) external {
        require(msg.sender == _owner, "Only the owner can transfer tokens");
        _token.transfer(to, amount);
    }

    receive() external payable {}
}

File 2 of 6 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

    mapping(address account => mapping(address spender => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

File 3 of 6 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 4 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 5 of 6 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

File 6 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimAmount","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"compound","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getStakeInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockMonths","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"unlockUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawn","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040525f600160146101000a81548160ff021916908315150217905550348015610029575f80fd5b50604051612104380380612104833981810160405281019061004b919061012e565b335f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610159565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100fd826100d4565b9050919050565b61010d816100f3565b8114610117575f80fd5b50565b5f8151905061012881610104565b92915050565b5f60208284031215610143576101426100d0565b5b5f6101508482850161011a565b91505092915050565b611f9e806101665f395ff3fe60806040526004361061009f575f3560e01c8063ad68ebf711610063578063ad68ebf71461015e578063bd1870a314610186578063bedb86fb146101ae578063c3453153146101d6578063c80ec52214610216578063f69e204614610220576100a6565b806323b221a0146100aa5780634e71d92d146100c657806379ee54f7146100d05780637b0472f01461010c5780638456cb5914610134576100a6565b366100a657005b5f80fd5b6100c460048036038101906100bf91906117ea565b61022a565b005b6100ce61052b565b005b3480156100db575f80fd5b506100f660048036038101906100f1919061186f565b6107d7565b60405161010391906118a9565b60405180910390f35b348015610117575f80fd5b50610132600480360381019061012d91906118c2565b6107e8565b005b34801561013f575f80fd5b50610148610b94565b604051610155919061191a565b60405180910390f35b348015610169575f80fd5b50610184600480360381019061017f9190611933565b610ba7565b005b348015610191575f80fd5b506101ac60048036038101906101a7919061186f565b610cd5565b005b3480156101b9575f80fd5b506101d460048036038101906101cf919061199b565b610def565b005b3480156101e1575f80fd5b506101fc60048036038101906101f7919061186f565b610e99565b60405161020d9594939291906119c6565b60405180910390f35b61021e610ff5565b005b61022861140d565b005b5f61023433611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015461027f9190611a44565b116102bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b690611ad1565b60405180910390fd5b600160149054906101000a900460ff161561030f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030690611b39565b60405180910390fd5b61031833611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015f8282546103669190611a44565b9250508190555060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401548111156103f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e790611ba1565b60405180910390fd5b4260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003018190555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610491929190611bce565b6020604051808303815f875af11580156104ad573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104d19190611c09565b508060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015f8282546105219190611c34565b9250508190555050565b5f61053533611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401546105809190611a44565b116105c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b790611ad1565b60405180910390fd5b600160149054906101000a900460ff1615610610576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060790611b39565b60405180910390fd5b61061933611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015f8282546106679190611a44565b925050819055504260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003018190555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3360025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401546040518363ffffffff1660e01b815260040161074f929190611bce565b6020604051808303815f875af115801561076b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078f9190611c09565b505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060040181905550565b5f6107e182611671565b9050919050565b600160149054906101000a900460ff1615610838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082f90611b39565b60405180910390fd5b60018114806108475750600381145b806108525750600681145b610891576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088890611cb1565b60405180910390fd5b5f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154148061091d57508060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060020154145b61095c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095390611d19565b60405180910390fd5b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b81526004016109ba93929190611d37565b6020604051808303815f875af11580156109d6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109fa9190611c09565b610a39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3090611db6565b60405180910390fd5b5f62278d0082610a499190611dd4565b42610a549190611a44565b90505f610a6033611671565b90506040518060a001604052808560025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154610ab89190611a44565b81526020018381526020018481526020014281526020018260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060040154610b1b9190611a44565b81525060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f01556020820151816001015560408201518160020155606082015181600301556080820151816004015590505050505050565b600160149054906101000a900460ff1681565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2b90611e85565b60405180910390fd5b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401610c90929190611bce565b6020604051808303815f875af1158015610cac573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cd09190611c09565b505050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5990611eed565b60405180910390fd5b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101819055505f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003018190555050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7390611eed565b60405180910390fd5b80600160146101000a81548160ff02191690831515021790555050565b5f805f805f60025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015460025f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015460025f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206002015460025f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015460025f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401549450945094509450945091939590929450565b5f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015411611076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106d90611ad1565b60405180910390fd5b600160149054906101000a900460ff16156110c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bd90611b39565b60405180910390fd5b6110cf33611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015f82825461111d9190611a44565b925050819055504260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600301819055505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015460025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401546111f59190611a44565b905060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015442101561125a57600a8161124c9190611f38565b816112579190611c34565b90505b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016112b6929190611bce565b6020604051808303815f875af11580156112d2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112f69190611c09565b505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401819055505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01819055505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101819055505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206002018190555050565b5f61141733611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401546114629190611a44565b116114a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149990611ad1565b60405180910390fd5b600160149054906101000a900460ff16156114f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e990611b39565b60405180910390fd5b6114fb33611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015f8282546115499190611a44565b925050819055504260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003018190555060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015460025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015f8282546116239190611a44565b925050819055505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060040181905550565b5f8060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060a00160405290815f820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090505f815f015103611701575f9150506117ae565b5f8160600151426117129190611c34565b90505f60068360400151036117475763bbf81e006019845f01516117369190611dd4565b6117409190611f38565b905061179c565b60038360400151036117795763bbf81e006014845f01516117689190611dd4565b6117729190611f38565b905061179b565b63bbf81e00600f845f015161178e9190611dd4565b6117989190611f38565b90505b5b81816117a89190611dd4565b93505050505b919050565b5f80fd5b5f819050919050565b6117c9816117b7565b81146117d3575f80fd5b50565b5f813590506117e4816117c0565b92915050565b5f602082840312156117ff576117fe6117b3565b5b5f61180c848285016117d6565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61183e82611815565b9050919050565b61184e81611834565b8114611858575f80fd5b50565b5f8135905061186981611845565b92915050565b5f60208284031215611884576118836117b3565b5b5f6118918482850161185b565b91505092915050565b6118a3816117b7565b82525050565b5f6020820190506118bc5f83018461189a565b92915050565b5f80604083850312156118d8576118d76117b3565b5b5f6118e5858286016117d6565b92505060206118f6858286016117d6565b9150509250929050565b5f8115159050919050565b61191481611900565b82525050565b5f60208201905061192d5f83018461190b565b92915050565b5f8060408385031215611949576119486117b3565b5b5f6119568582860161185b565b9250506020611967858286016117d6565b9150509250929050565b61197a81611900565b8114611984575f80fd5b50565b5f8135905061199581611971565b92915050565b5f602082840312156119b0576119af6117b3565b5b5f6119bd84828501611987565b91505092915050565b5f60a0820190506119d95f83018861189a565b6119e6602083018761189a565b6119f3604083018661189a565b611a00606083018561189a565b611a0d608083018461189a565b9695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611a4e826117b7565b9150611a59836117b7565b9250828201905080821115611a7157611a70611a17565b5b92915050565b5f82825260208201905092915050565b7f4e6f207374616b6520666f756e640000000000000000000000000000000000005f82015250565b5f611abb600e83611a77565b9150611ac682611a87565b602082019050919050565b5f6020820190508181035f830152611ae881611aaf565b9050919050565b7f636f6e74726163742070617573656400000000000000000000000000000000005f82015250565b5f611b23600f83611a77565b9150611b2e82611aef565b602082019050919050565b5f6020820190508181035f830152611b5081611b17565b9050919050565b7f4e6f20656e6f75676874207265776172647300000000000000000000000000005f82015250565b5f611b8b601283611a77565b9150611b9682611b57565b602082019050919050565b5f6020820190508181035f830152611bb881611b7f565b9050919050565b611bc881611834565b82525050565b5f604082019050611be15f830185611bbf565b611bee602083018461189a565b9392505050565b5f81519050611c0381611971565b92915050565b5f60208284031215611c1e57611c1d6117b3565b5b5f611c2b84828501611bf5565b91505092915050565b5f611c3e826117b7565b9150611c49836117b7565b9250828203905081811115611c6157611c60611a17565b5b92915050565b7f496e76616c6964206c6f636b206475726174696f6e00000000000000000000005f82015250565b5f611c9b601583611a77565b9150611ca682611c67565b602082019050919050565b5f6020820190508181035f830152611cc881611c8f565b9050919050565b7f4c6f636b206475726174696f6e206d757374206265207468652073616d6500005f82015250565b5f611d03601e83611a77565b9150611d0e82611ccf565b602082019050919050565b5f6020820190508181035f830152611d3081611cf7565b9050919050565b5f606082019050611d4a5f830186611bbf565b611d576020830185611bbf565b611d64604083018461189a565b949350505050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f611da0600f83611a77565b9150611dab82611d6c565b602082019050919050565b5f6020820190508181035f830152611dcd81611d94565b9050919050565b5f611dde826117b7565b9150611de9836117b7565b9250828202611df7816117b7565b91508282048414831517611e0e57611e0d611a17565b5b5092915050565b7f4f6e6c7920746865206f776e65722063616e207472616e7366657220746f6b655f8201527f6e73000000000000000000000000000000000000000000000000000000000000602082015250565b5f611e6f602283611a77565b9150611e7a82611e15565b604082019050919050565b5f6020820190508181035f830152611e9c81611e63565b9050919050565b7f4e6f7420616c6c6f7765640000000000000000000000000000000000000000005f82015250565b5f611ed7600b83611a77565b9150611ee282611ea3565b602082019050919050565b5f6020820190508181035f830152611f0481611ecb565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611f42826117b7565b9150611f4d836117b7565b925082611f5d57611f5c611f0b565b5b82820490509291505056fea264697066735822122082c2211a1dd6e18e74b8a19b814c88b8c0ac8f186e13e2c65944581f87db65fe64736f6c63430008190033000000000000000000000000e75f2acafba1ad56c5ed712ffbc1d31910e74396

Deployed Bytecode

0x60806040526004361061009f575f3560e01c8063ad68ebf711610063578063ad68ebf71461015e578063bd1870a314610186578063bedb86fb146101ae578063c3453153146101d6578063c80ec52214610216578063f69e204614610220576100a6565b806323b221a0146100aa5780634e71d92d146100c657806379ee54f7146100d05780637b0472f01461010c5780638456cb5914610134576100a6565b366100a657005b5f80fd5b6100c460048036038101906100bf91906117ea565b61022a565b005b6100ce61052b565b005b3480156100db575f80fd5b506100f660048036038101906100f1919061186f565b6107d7565b60405161010391906118a9565b60405180910390f35b348015610117575f80fd5b50610132600480360381019061012d91906118c2565b6107e8565b005b34801561013f575f80fd5b50610148610b94565b604051610155919061191a565b60405180910390f35b348015610169575f80fd5b50610184600480360381019061017f9190611933565b610ba7565b005b348015610191575f80fd5b506101ac60048036038101906101a7919061186f565b610cd5565b005b3480156101b9575f80fd5b506101d460048036038101906101cf919061199b565b610def565b005b3480156101e1575f80fd5b506101fc60048036038101906101f7919061186f565b610e99565b60405161020d9594939291906119c6565b60405180910390f35b61021e610ff5565b005b61022861140d565b005b5f61023433611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015461027f9190611a44565b116102bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b690611ad1565b60405180910390fd5b600160149054906101000a900460ff161561030f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030690611b39565b60405180910390fd5b61031833611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015f8282546103669190611a44565b9250508190555060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401548111156103f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e790611ba1565b60405180910390fd5b4260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003018190555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610491929190611bce565b6020604051808303815f875af11580156104ad573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104d19190611c09565b508060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015f8282546105219190611c34565b9250508190555050565b5f61053533611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401546105809190611a44565b116105c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b790611ad1565b60405180910390fd5b600160149054906101000a900460ff1615610610576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060790611b39565b60405180910390fd5b61061933611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015f8282546106679190611a44565b925050819055504260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003018190555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3360025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401546040518363ffffffff1660e01b815260040161074f929190611bce565b6020604051808303815f875af115801561076b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078f9190611c09565b505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060040181905550565b5f6107e182611671565b9050919050565b600160149054906101000a900460ff1615610838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082f90611b39565b60405180910390fd5b60018114806108475750600381145b806108525750600681145b610891576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088890611cb1565b60405180910390fd5b5f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154148061091d57508060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060020154145b61095c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095390611d19565b60405180910390fd5b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b81526004016109ba93929190611d37565b6020604051808303815f875af11580156109d6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109fa9190611c09565b610a39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3090611db6565b60405180910390fd5b5f62278d0082610a499190611dd4565b42610a549190611a44565b90505f610a6033611671565b90506040518060a001604052808560025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154610ab89190611a44565b81526020018381526020018481526020014281526020018260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060040154610b1b9190611a44565b81525060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f01556020820151816001015560408201518160020155606082015181600301556080820151816004015590505050505050565b600160149054906101000a900460ff1681565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2b90611e85565b60405180910390fd5b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401610c90929190611bce565b6020604051808303815f875af1158015610cac573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cd09190611c09565b505050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5990611eed565b60405180910390fd5b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101819055505f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003018190555050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7390611eed565b60405180910390fd5b80600160146101000a81548160ff02191690831515021790555050565b5f805f805f60025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015460025f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015460025f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206002015460025f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015460025f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401549450945094509450945091939590929450565b5f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015411611076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106d90611ad1565b60405180910390fd5b600160149054906101000a900460ff16156110c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bd90611b39565b60405180910390fd5b6110cf33611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015f82825461111d9190611a44565b925050819055504260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600301819055505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015460025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401546111f59190611a44565b905060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015442101561125a57600a8161124c9190611f38565b816112579190611c34565b90505b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016112b6929190611bce565b6020604051808303815f875af11580156112d2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112f69190611c09565b505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401819055505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01819055505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101819055505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206002018190555050565b5f61141733611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600401546114629190611a44565b116114a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149990611ad1565b60405180910390fd5b600160149054906101000a900460ff16156114f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e990611b39565b60405180910390fd5b6114fb33611671565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015f8282546115499190611a44565b925050819055504260025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003018190555060025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015460025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015f8282546116239190611a44565b925050819055505f60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060040181905550565b5f8060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060a00160405290815f820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090505f815f015103611701575f9150506117ae565b5f8160600151426117129190611c34565b90505f60068360400151036117475763bbf81e006019845f01516117369190611dd4565b6117409190611f38565b905061179c565b60038360400151036117795763bbf81e006014845f01516117689190611dd4565b6117729190611f38565b905061179b565b63bbf81e00600f845f015161178e9190611dd4565b6117989190611f38565b90505b5b81816117a89190611dd4565b93505050505b919050565b5f80fd5b5f819050919050565b6117c9816117b7565b81146117d3575f80fd5b50565b5f813590506117e4816117c0565b92915050565b5f602082840312156117ff576117fe6117b3565b5b5f61180c848285016117d6565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61183e82611815565b9050919050565b61184e81611834565b8114611858575f80fd5b50565b5f8135905061186981611845565b92915050565b5f60208284031215611884576118836117b3565b5b5f6118918482850161185b565b91505092915050565b6118a3816117b7565b82525050565b5f6020820190506118bc5f83018461189a565b92915050565b5f80604083850312156118d8576118d76117b3565b5b5f6118e5858286016117d6565b92505060206118f6858286016117d6565b9150509250929050565b5f8115159050919050565b61191481611900565b82525050565b5f60208201905061192d5f83018461190b565b92915050565b5f8060408385031215611949576119486117b3565b5b5f6119568582860161185b565b9250506020611967858286016117d6565b9150509250929050565b61197a81611900565b8114611984575f80fd5b50565b5f8135905061199581611971565b92915050565b5f602082840312156119b0576119af6117b3565b5b5f6119bd84828501611987565b91505092915050565b5f60a0820190506119d95f83018861189a565b6119e6602083018761189a565b6119f3604083018661189a565b611a00606083018561189a565b611a0d608083018461189a565b9695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611a4e826117b7565b9150611a59836117b7565b9250828201905080821115611a7157611a70611a17565b5b92915050565b5f82825260208201905092915050565b7f4e6f207374616b6520666f756e640000000000000000000000000000000000005f82015250565b5f611abb600e83611a77565b9150611ac682611a87565b602082019050919050565b5f6020820190508181035f830152611ae881611aaf565b9050919050565b7f636f6e74726163742070617573656400000000000000000000000000000000005f82015250565b5f611b23600f83611a77565b9150611b2e82611aef565b602082019050919050565b5f6020820190508181035f830152611b5081611b17565b9050919050565b7f4e6f20656e6f75676874207265776172647300000000000000000000000000005f82015250565b5f611b8b601283611a77565b9150611b9682611b57565b602082019050919050565b5f6020820190508181035f830152611bb881611b7f565b9050919050565b611bc881611834565b82525050565b5f604082019050611be15f830185611bbf565b611bee602083018461189a565b9392505050565b5f81519050611c0381611971565b92915050565b5f60208284031215611c1e57611c1d6117b3565b5b5f611c2b84828501611bf5565b91505092915050565b5f611c3e826117b7565b9150611c49836117b7565b9250828203905081811115611c6157611c60611a17565b5b92915050565b7f496e76616c6964206c6f636b206475726174696f6e00000000000000000000005f82015250565b5f611c9b601583611a77565b9150611ca682611c67565b602082019050919050565b5f6020820190508181035f830152611cc881611c8f565b9050919050565b7f4c6f636b206475726174696f6e206d757374206265207468652073616d6500005f82015250565b5f611d03601e83611a77565b9150611d0e82611ccf565b602082019050919050565b5f6020820190508181035f830152611d3081611cf7565b9050919050565b5f606082019050611d4a5f830186611bbf565b611d576020830185611bbf565b611d64604083018461189a565b949350505050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f611da0600f83611a77565b9150611dab82611d6c565b602082019050919050565b5f6020820190508181035f830152611dcd81611d94565b9050919050565b5f611dde826117b7565b9150611de9836117b7565b9250828202611df7816117b7565b91508282048414831517611e0e57611e0d611a17565b5b5092915050565b7f4f6e6c7920746865206f776e65722063616e207472616e7366657220746f6b655f8201527f6e73000000000000000000000000000000000000000000000000000000000000602082015250565b5f611e6f602283611a77565b9150611e7a82611e15565b604082019050919050565b5f6020820190508181035f830152611e9c81611e63565b9050919050565b7f4e6f7420616c6c6f7765640000000000000000000000000000000000000000005f82015250565b5f611ed7600b83611a77565b9150611ee282611ea3565b602082019050919050565b5f6020820190508181035f830152611f0481611ecb565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611f42826117b7565b9150611f4d836117b7565b925082611f5d57611f5c611f0b565b5b82820490509291505056fea264697066735822122082c2211a1dd6e18e74b8a19b814c88b8c0ac8f186e13e2c65944581f87db65fe64736f6c63430008190033

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

000000000000000000000000e75f2acafba1ad56c5ed712ffbc1d31910e74396

-----Decoded View---------------
Arg [0] : tokenAddress (address): 0xe75F2AcaFbA1aD56C5eD712ffbc1d31910e74396

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e75f2acafba1ad56c5ed712ffbc1d31910e74396


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.