ETH Price: $3,145.04 (-5.01%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Un Stake216799852025-01-22 12:19:235 days ago1737548363IN
0x02aa179C...fd5532588
0 ETH0.000600779.33044119
Un Stake216088652025-01-12 13:59:3515 days ago1736690375IN
0x02aa179C...fd5532588
0 ETH0.000298373.02682044
Un Stake215600822025-01-05 18:30:5921 days ago1736101859IN
0x02aa179C...fd5532588
0 ETH0.000225187.98543151
Un Stake215600822025-01-05 18:30:5921 days ago1736101859IN
0x02aa179C...fd5532588
0 ETH0.000650727.98543151
Un Stake215177332024-12-30 20:38:5927 days ago1735591139IN
0x02aa179C...fd5532588
0 ETH0.000778817.89964344
Un Stake215025472024-12-28 17:46:2329 days ago1735407983IN
0x02aa179C...fd5532588
0 ETH0.000777137.88357811
Un Stake215015222024-12-28 14:20:5930 days ago1735395659IN
0x02aa179C...fd5532588
0 ETH0.00071347.23612058
Un Stake214862332024-12-26 11:06:4732 days ago1735211207IN
0x02aa179C...fd5532588
0 ETH0.000451125.53601034
Un Stake214070542024-12-15 9:34:1143 days ago1734255251IN
0x02aa179C...fd5532588
0 ETH0.000585755.94142833
Un Stake214011402024-12-14 13:45:4744 days ago1734183947IN
0x02aa179C...fd5532588
0 ETH0.000898439.1118198
Un Stake214003002024-12-14 10:56:4744 days ago1734173807IN
0x02aa179C...fd5532588
0 ETH0.000877268.89821333
Un Stake213704392024-12-10 6:53:2348 days ago1733813603IN
0x02aa179C...fd5532588
0 ETH0.0013362213.5551647
Un Stake213637482024-12-09 8:28:1149 days ago1733732891IN
0x02aa179C...fd5532588
0 ETH0.000949699.63165092
Un Stake213409402024-12-06 4:02:2352 days ago1733457743IN
0x02aa179C...fd5532588
0 ETH0.0017209217.45550179
Un Stake213344142024-12-05 6:10:2353 days ago1733379023IN
0x02aa179C...fd5532588
0 ETH0.0017984918.24238871
Un Stake212978952024-11-30 3:45:2358 days ago1732938323IN
0x02aa179C...fd5532588
0 ETH0.000740787.5147715
Un Stake212976872024-11-30 3:03:2358 days ago1732935803IN
0x02aa179C...fd5532588
0 ETH0.000589727.2379152
Un Stake212931462024-11-29 11:46:3559 days ago1732880795IN
0x02aa179C...fd5532588
0 ETH0.0012370215.18029383
Un Stake212828692024-11-28 1:09:3560 days ago1732756175IN
0x02aa179C...fd5532588
0 ETH0.0013097513.28501133
Un Stake210575232024-10-27 14:20:4792 days ago1730038847IN
0x02aa179C...fd5532588
0 ETH0.000583167.15639157
Un Stake210559552024-10-27 9:05:2392 days ago1730019923IN
0x02aa179C...fd5532588
0 ETH0.000339555.27452195
Un Stake209039652024-10-06 3:56:47113 days ago1728187007IN
0x02aa179C...fd5532588
0 ETH0.000252253.0964722
Un Stake208255532024-09-25 5:31:59124 days ago1727242319IN
0x02aa179C...fd5532588
0 ETH0.0009801212.02766438
Un Stake207278952024-09-11 14:13:59138 days ago1726064039IN
0x02aa179C...fd5532588
0 ETH0.000406116.30724535
Un Stake206340332024-08-29 11:46:59151 days ago1724932019IN
0x02aa179C...fd5532588
0 ETH0.000267132.70990144
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:
StakeCat

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 999999 runs

Other Settings:
istanbul EvmVersion
File 1 of 10 : StakeCat.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./IStake.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

contract StakeCat is ReentrancyGuard, IStake, Ownable, Pausable {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    uint256 public rewardSS = 11574074074074;
    uint256 public baseAmount = 3 * 1E7 * 1E18;
    address public tokenAddress;

    uint256 public pausedTime;

    mapping(address => StakeInfo) private stakes;

    struct StakeInfo {
        uint256 lastTime;
        uint256 amount;
        uint256 reward;
    }

    event Stake(
        address indexed sender,
        uint256 amount
    );

    event UnStake(
        address indexed sender,
        uint256 amount
    );

    constructor(address _tokenAddress) {
        tokenAddress = _tokenAddress;
    }

    function getStakeInfo(address addr) public virtual view returns (uint256 lastTime, uint256 amount, uint256 reward){
        StakeInfo memory info = stakes[addr];
        lastTime = info.lastTime;
        amount = info.amount;
        reward = getReward(addr);
    }

    function getReward(address sender) public override virtual view returns (uint256 reward){
        StakeInfo memory info = stakes[sender];
        if (info.lastTime > 0) {
            uint256 time;
            if (paused()) time = pausedTime >= info.lastTime ? pausedTime - info.lastTime : 0;
            else time = block.timestamp - info.lastTime;
            reward = time * rewardSS * info.amount / baseAmount + info.reward;
        } else reward = 0;
    }

    function stakeBatch(
        address[] memory tos,
        uint256[] memory amounts
    ) public virtual {
        require(tos.length == amounts.length, "length error");
        uint256 amount;
        for (uint256 i = 0; i < amounts.length; i++) {
            amount += amounts[i];
            _stake(tos[i], amounts[i]);
        }
        IERC20 token = IERC20(tokenAddress);
        token.safeTransferFrom(_msgSender(), address(this), amount);
    }

    function stakeFrom(address _receiver, uint256 _amount) public override virtual {
        require(_amount > 0, 'Error: _amount == 0');
        IERC20 token = IERC20(tokenAddress);
        token.safeTransferFrom(_msgSender(), address(this), _amount);
        _stake(_receiver, _amount);
    }

    function stake(uint256 _amount) public override virtual {
        stakeFrom(_msgSender(), _amount);
    }

    function _stake(address _sender, uint256 _amount) internal {
        StakeInfo memory info = stakes[_sender];
        info.reward = getReward(_sender);
        info.lastTime = block.timestamp;
        info.amount += _amount;
        stakes[_sender] = info;
        emit Stake(_sender, _amount);
    }

    function unStake(uint256 _amount) external {
        StakeInfo memory info = stakes[_msgSender()];
        require(_amount > 0 && _amount <= info.amount, 'Error: _amount');
        info.reward = getReward(_msgSender());
        info.lastTime = block.timestamp;
        info.amount -= _amount;
        stakes[_msgSender()] = info;
        IERC20 token = IERC20(tokenAddress);
        token.safeTransfer(_msgSender(), _amount);
        emit UnStake(_msgSender(), _amount);
    }

    function pause() public onlyOwner {
        _pause();
        pausedTime = block.timestamp;
    }

    function setRewardSS(uint256 _rewardSS) public onlyOwner {
        rewardSS = _rewardSS;
    }

    function setBaseAmount(uint256 _baseAmount) public onlyOwner {
        require(_baseAmount > 0, 'Error: _baseAmount = 0');
        baseAmount = _baseAmount;
    }
}

File 2 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 3 of 10 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

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

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        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 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

        // 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 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 7 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 10 of 10 : IStake.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;

interface IStake {

    function stake(uint256 amount) external;

    function stakeFrom(address sender, uint256 amount) external;

    function getReward(address sender) external view returns (uint256 reward);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"baseAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"getReward","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getStakeInfo","outputs":[{"internalType":"uint256","name":"lastTime","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"reward","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":"pausedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardSS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_baseAmount","type":"uint256"}],"name":"setBaseAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardSS","type":"uint256"}],"name":"setRewardSS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"stakeBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unStake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052650a86cc92e3da6002556a18d0bf423c03d8de00000060035534801561002957600080fd5b50604051611767380380611767833981016040819052610048916100da565b600160005561005633610088565b6001805460ff60a01b19169055600480546001600160a01b0319166001600160a01b039290921691909117905561010a565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156100ec57600080fd5b81516001600160a01b038116811461010357600080fd5b9392505050565b61164e806101196000396000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c80638da5cb5b116100b2578063c00007b011610081578063d814386011610066578063d81438601461027a578063ecb896931461028d578063f2fde38b146102a057600080fd5b8063c00007b014610239578063c34531531461024c57600080fd5b80638da5cb5b146101be5780639d76ea58146101fd578063a694fc3a1461021d578063b2cca39d1461023057600080fd5b80635c975abb116100ee5780635c975abb1461016d5780635d3eea911461019b578063715018a6146101ae5780638456cb59146101b657600080fd5b8063224a7c6a1461012057806331a8aeb3146101355780634864d140146101485780635a06118e14610164575b600080fd5b61013361012e366004611386565b6102b3565b005b610133610143366004611273565b6103a8565b61015160035481565b6040519081526020015b60405180910390f35b61015160025481565b60015474010000000000000000000000000000000000000000900460ff16604051901515815260200161015b565b6101336101a9366004611386565b61045e565b6101336105c0565b61013361064d565b60015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161015b565b6004546101d89073ffffffffffffffffffffffffffffffffffffffff1681565b61013361022b366004611386565b6106dc565b61015160055481565b610151610247366004611258565b6106e9565b61025f61025a366004611258565b6107e5565b6040805193845260208401929092529082015260600161015b565b61013361028836600461129d565b610846565b61013361029b366004611386565b61095c565b6101336102ae366004611258565b6109e2565b60015473ffffffffffffffffffffffffffffffffffffffff163314610339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600081116103a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4572726f723a205f62617365416d6f756e74203d2030000000000000000000006044820152606401610330565b600355565b60008111610412576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4572726f723a205f616d6f756e74203d3d2030000000000000000000000000006044820152606401610330565b60045473ffffffffffffffffffffffffffffffffffffffff1661044f335b73ffffffffffffffffffffffffffffffffffffffff8316903085610b0f565b6104598383610beb565b505050565b33600090815260066020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915281158015906104a7575080602001518211155b61050d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4572726f723a205f616d6f756e740000000000000000000000000000000000006044820152606401610330565b610516336106e9565b604082015242815260208101805183919061053290839061150f565b90525033600081815260066020908152604091829020845181559084015160018201559083015160029091015560045473ffffffffffffffffffffffffffffffffffffffff169061058590829085610ccc565b60405183815233907fb24546d975e2628748efc9aced80665e0fad66272033e5c0ea25fd3afac99795906020015b60405180910390a2505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b61064b6000610d22565b565b60015473ffffffffffffffffffffffffffffffffffffffff1633146106ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6106d6610d99565b42600555565b6106e633826103a8565b50565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660209081526040808320815160608101835281548082526001830154948201949094526002909101549181019190915290156107da5760015460009074010000000000000000000000000000000000000000900460ff161561078b5781516005541015610775576000610784565b8151600554610784919061150f565b905061079a565b8151610797904261150f565b90505b604082015160035460208401516002546107b490856114d2565b6107be91906114d2565b6107c89190611497565b6107d2919061147f565b9250506107df565b600091505b50919050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260066020908152604080832081516060810183528154808252600183015494820185905260029092015492810192909252929061083d856106e9565b93959294505050565b80518251146108b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f6c656e677468206572726f7200000000000000000000000000000000000000006044820152606401610330565b6000805b8251811015610933578281815181106108d0576108d06115ba565b6020026020010151826108e3919061147f565b91506109218482815181106108fa576108fa6115ba565b6020026020010151848381518110610914576109146115ba565b6020026020010151610beb565b8061092b81611552565b9150506108b5565b5060045473ffffffffffffffffffffffffffffffffffffffff1661095633610430565b50505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146109dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b600255565b60015473ffffffffffffffffffffffffffffffffffffffff163314610a63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff8116610b06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610330565b6106e681610d22565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526109569085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610eaf565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660209081526040918290208251606081018452815481526001820154928101929092526002015491810191909152610c40836106e9565b6040820152428152602081018051839190610c5c90839061147f565b90525073ffffffffffffffffffffffffffffffffffffffff8316600081815260066020908152604091829020845181558482015160018201558483015160029091015590518481527febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a91016105b3565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526104599084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610b69565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60015474010000000000000000000000000000000000000000900460ff1615610e1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610330565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e853390565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000610f11826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610fbb9092919063ffffffff16565b8051909150156104595780806020019051810190610f2f9190611364565b610459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610330565b6060610fca8484600085610fd4565b90505b9392505050565b606082471015611066576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610330565b73ffffffffffffffffffffffffffffffffffffffff85163b6110e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610330565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161110d919061139f565b60006040518083038185875af1925050503d806000811461114a576040519150601f19603f3d011682016040523d82523d6000602084013e61114f565b606091505b509150915061115f82828661116a565b979650505050505050565b60608315611179575081610fcd565b8251156111895782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033091906113bb565b803573ffffffffffffffffffffffffffffffffffffffff811681146111e157600080fd5b919050565b600082601f8301126111f757600080fd5b8135602061120c6112078361145b565b61140c565b80838252828201915082860187848660051b890101111561122c57600080fd5b60005b8581101561124b5781358452928401929084019060010161122f565b5090979650505050505050565b60006020828403121561126a57600080fd5b610fcd826111bd565b6000806040838503121561128657600080fd5b61128f836111bd565b946020939093013593505050565b600080604083850312156112b057600080fd5b823567ffffffffffffffff808211156112c857600080fd5b818501915085601f8301126112dc57600080fd5b813560206112ec6112078361145b565b8083825282820191508286018a848660051b890101111561130c57600080fd5b600096505b8487101561133657611322816111bd565b835260019690960195918301918301611311565b509650508601359250508082111561134d57600080fd5b5061135a858286016111e6565b9150509250929050565b60006020828403121561137657600080fd5b81518015158114610fcd57600080fd5b60006020828403121561139857600080fd5b5035919050565b600082516113b1818460208701611526565b9190910192915050565b60208152600082518060208401526113da816040850160208701611526565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611453576114536115e9565b604052919050565b600067ffffffffffffffff821115611475576114756115e9565b5060051b60200190565b600082198211156114925761149261158b565b500190565b6000826114cd577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561150a5761150a61158b565b500290565b6000828210156115215761152161158b565b500390565b60005b83811015611541578181015183820152602001611529565b838111156109565750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156115845761158461158b565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea26469706673582212207227e113fc5a538941dd72a10e9c84bc96b5b2b3eda950403917ebac2257ddc164736f6c63430008070033000000000000000000000000508e00d5cef397b02d260d035e5ee80775e4c821

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061011b5760003560e01c80638da5cb5b116100b2578063c00007b011610081578063d814386011610066578063d81438601461027a578063ecb896931461028d578063f2fde38b146102a057600080fd5b8063c00007b014610239578063c34531531461024c57600080fd5b80638da5cb5b146101be5780639d76ea58146101fd578063a694fc3a1461021d578063b2cca39d1461023057600080fd5b80635c975abb116100ee5780635c975abb1461016d5780635d3eea911461019b578063715018a6146101ae5780638456cb59146101b657600080fd5b8063224a7c6a1461012057806331a8aeb3146101355780634864d140146101485780635a06118e14610164575b600080fd5b61013361012e366004611386565b6102b3565b005b610133610143366004611273565b6103a8565b61015160035481565b6040519081526020015b60405180910390f35b61015160025481565b60015474010000000000000000000000000000000000000000900460ff16604051901515815260200161015b565b6101336101a9366004611386565b61045e565b6101336105c0565b61013361064d565b60015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161015b565b6004546101d89073ffffffffffffffffffffffffffffffffffffffff1681565b61013361022b366004611386565b6106dc565b61015160055481565b610151610247366004611258565b6106e9565b61025f61025a366004611258565b6107e5565b6040805193845260208401929092529082015260600161015b565b61013361028836600461129d565b610846565b61013361029b366004611386565b61095c565b6101336102ae366004611258565b6109e2565b60015473ffffffffffffffffffffffffffffffffffffffff163314610339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600081116103a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4572726f723a205f62617365416d6f756e74203d2030000000000000000000006044820152606401610330565b600355565b60008111610412576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4572726f723a205f616d6f756e74203d3d2030000000000000000000000000006044820152606401610330565b60045473ffffffffffffffffffffffffffffffffffffffff1661044f335b73ffffffffffffffffffffffffffffffffffffffff8316903085610b0f565b6104598383610beb565b505050565b33600090815260066020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915281158015906104a7575080602001518211155b61050d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4572726f723a205f616d6f756e740000000000000000000000000000000000006044820152606401610330565b610516336106e9565b604082015242815260208101805183919061053290839061150f565b90525033600081815260066020908152604091829020845181559084015160018201559083015160029091015560045473ffffffffffffffffffffffffffffffffffffffff169061058590829085610ccc565b60405183815233907fb24546d975e2628748efc9aced80665e0fad66272033e5c0ea25fd3afac99795906020015b60405180910390a2505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b61064b6000610d22565b565b60015473ffffffffffffffffffffffffffffffffffffffff1633146106ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6106d6610d99565b42600555565b6106e633826103a8565b50565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660209081526040808320815160608101835281548082526001830154948201949094526002909101549181019190915290156107da5760015460009074010000000000000000000000000000000000000000900460ff161561078b5781516005541015610775576000610784565b8151600554610784919061150f565b905061079a565b8151610797904261150f565b90505b604082015160035460208401516002546107b490856114d2565b6107be91906114d2565b6107c89190611497565b6107d2919061147f565b9250506107df565b600091505b50919050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260066020908152604080832081516060810183528154808252600183015494820185905260029092015492810192909252929061083d856106e9565b93959294505050565b80518251146108b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f6c656e677468206572726f7200000000000000000000000000000000000000006044820152606401610330565b6000805b8251811015610933578281815181106108d0576108d06115ba565b6020026020010151826108e3919061147f565b91506109218482815181106108fa576108fa6115ba565b6020026020010151848381518110610914576109146115ba565b6020026020010151610beb565b8061092b81611552565b9150506108b5565b5060045473ffffffffffffffffffffffffffffffffffffffff1661095633610430565b50505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146109dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b600255565b60015473ffffffffffffffffffffffffffffffffffffffff163314610a63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff8116610b06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610330565b6106e681610d22565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526109569085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610eaf565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660209081526040918290208251606081018452815481526001820154928101929092526002015491810191909152610c40836106e9565b6040820152428152602081018051839190610c5c90839061147f565b90525073ffffffffffffffffffffffffffffffffffffffff8316600081815260066020908152604091829020845181558482015160018201558483015160029091015590518481527febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a91016105b3565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526104599084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610b69565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60015474010000000000000000000000000000000000000000900460ff1615610e1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610330565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e853390565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000610f11826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610fbb9092919063ffffffff16565b8051909150156104595780806020019051810190610f2f9190611364565b610459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610330565b6060610fca8484600085610fd4565b90505b9392505050565b606082471015611066576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610330565b73ffffffffffffffffffffffffffffffffffffffff85163b6110e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610330565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161110d919061139f565b60006040518083038185875af1925050503d806000811461114a576040519150601f19603f3d011682016040523d82523d6000602084013e61114f565b606091505b509150915061115f82828661116a565b979650505050505050565b60608315611179575081610fcd565b8251156111895782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033091906113bb565b803573ffffffffffffffffffffffffffffffffffffffff811681146111e157600080fd5b919050565b600082601f8301126111f757600080fd5b8135602061120c6112078361145b565b61140c565b80838252828201915082860187848660051b890101111561122c57600080fd5b60005b8581101561124b5781358452928401929084019060010161122f565b5090979650505050505050565b60006020828403121561126a57600080fd5b610fcd826111bd565b6000806040838503121561128657600080fd5b61128f836111bd565b946020939093013593505050565b600080604083850312156112b057600080fd5b823567ffffffffffffffff808211156112c857600080fd5b818501915085601f8301126112dc57600080fd5b813560206112ec6112078361145b565b8083825282820191508286018a848660051b890101111561130c57600080fd5b600096505b8487101561133657611322816111bd565b835260019690960195918301918301611311565b509650508601359250508082111561134d57600080fd5b5061135a858286016111e6565b9150509250929050565b60006020828403121561137657600080fd5b81518015158114610fcd57600080fd5b60006020828403121561139857600080fd5b5035919050565b600082516113b1818460208701611526565b9190910192915050565b60208152600082518060208401526113da816040850160208701611526565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611453576114536115e9565b604052919050565b600067ffffffffffffffff821115611475576114756115e9565b5060051b60200190565b600082198211156114925761149261158b565b500190565b6000826114cd577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561150a5761150a61158b565b500290565b6000828210156115215761152161158b565b500390565b60005b83811015611541578181015183820152602001611529565b838111156109565750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156115845761158461158b565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea26469706673582212207227e113fc5a538941dd72a10e9c84bc96b5b2b3eda950403917ebac2257ddc164736f6c63430008070033

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

000000000000000000000000508e00d5cef397b02d260d035e5ee80775e4c821

-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x508E00D5ceF397B02d260D035e5EE80775e4C821

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000508e00d5cef397b02d260d035e5ee80775e4c821


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.