BNB Price: $615.79 (+3.56%)
 

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Claim924144442026-04-14 3:27:0210 mins ago1776137222IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Sync924142562026-04-14 3:25:3712 mins ago1776137137IN
0x74480eC0...EDFAcA86F
0 BNB0.000002570.065
Claim924142302026-04-14 3:25:2512 mins ago1776137125IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Sync924141712026-04-14 3:24:5912 mins ago1776137099IN
0x74480eC0...EDFAcA86F
0 BNB0.000002570.065
Claim924140002026-04-14 3:23:4214 mins ago1776137022IN
0x74480eC0...EDFAcA86F
0 BNB0.000010590.065
Claim924139412026-04-14 3:23:1514 mins ago1776136995IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924118332026-04-14 3:07:2630 mins ago1776136046IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Sync924117832026-04-14 3:07:0330 mins ago1776136023IN
0x74480eC0...EDFAcA86F
0 BNB0.000002570.065
Claim924105022026-04-14 2:57:2640 mins ago1776135446IN
0x74480eC0...EDFAcA86F
0 BNB0.000010590.065
Claim924079152026-04-14 2:38:011 hr ago1776134281IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924077632026-04-14 2:36:521 hr ago1776134212IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924076902026-04-14 2:36:201 hr ago1776134180IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924062722026-04-14 2:25:411 hr ago1776133541IN
0x74480eC0...EDFAcA86F
0 BNB0.000009570.06565
Claim924059182026-04-14 2:23:011 hr ago1776133381IN
0x74480eC0...EDFAcA86F
0 BNB0.000009570.06565
Claim924057162026-04-14 2:21:301 hr ago1776133290IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924030622026-04-14 2:01:351 hr ago1776132095IN
0x74480eC0...EDFAcA86F
0 BNB0.000009570.06565
Claim924027232026-04-14 1:59:021 hr ago1776131942IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924025612026-04-14 1:57:491 hr ago1776131869IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924022982026-04-14 1:55:501 hr ago1776131750IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924022802026-04-14 1:55:421 hr ago1776131742IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924022092026-04-14 1:55:101 hr ago1776131710IN
0x74480eC0...EDFAcA86F
0 BNB0.000010860.065
Claim924019552026-04-14 1:53:161 hr ago1776131596IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924016682026-04-14 1:51:071 hr ago1776131467IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924015242026-04-14 1:50:021 hr ago1776131402IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
Claim924014122026-04-14 1:49:111 hr ago1776131351IN
0x74480eC0...EDFAcA86F
0 BNB0.000009480.065
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To
770788072026-01-24 4:53:1379 days ago1769230393
0x74480eC0...EDFAcA86F
 Contract Creation0 BNB
Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xa408Fa8E...eF480bd36
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
MOSLPSSDPOOL

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
Yes with 200 runs

Other Settings:
prague EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.30;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IMosLpPool} from "./interface/IMosLpPool.sol";
import {TokenLock} from "./lock.sol";

contract MOSLPSSDPOOL {
    enum opreate {
        stake,
        unStake,
        claim
    }

    struct StakedInfo {
        uint index;
        uint stakedAmount;
        uint updateTime;
        uint available;
        uint accruedReward;
    }

    StakedInfo public globalStakedInfo;
    mapping(address => StakedInfo) public userStakedInfos;
    uint public startTime;
    uint public yearHalfCount;
    uint public yearHalfAmount = 3000000e18;
    uint public subHalfTime = 800 days;

    address public owner;
    IERC20 public ssd;
    address public lock;
    IMosLpPool public mosLpPool;

    constructor(address _mosLpPool, address _ssd) {
        owner = msg.sender;
        ssd = IERC20(_ssd);
        lock = address(new TokenLock(_ssd));
        mosLpPool = IMosLpPool(_mosLpPool);
        IERC20(ssd).approve(address(lock), type(uint).max);
    }

    function setOwner(address _owner) external {
        require(msg.sender == owner, "Not owner");
        owner = _owner;
    }

    function setSubHalfTime(uint _time) external {
        require(msg.sender == owner, "No owner to set the time");
        subHalfTime = _time;
    }

    function sync() public {
        address sender = msg.sender;
        _sync(sender);
    }
    function _sync(address sender) internal {
        uint newAmount = IMosLpPool(mosLpPool).balanceOf(sender);
        uint temp;
        StakedInfo memory userInfo = userStakedInfos[sender];

        if (newAmount == userInfo.stakedAmount) return;

        if (newAmount > userInfo.stakedAmount) {
            temp = newAmount - userInfo.stakedAmount;
            updateIndex(opreate.stake, temp);
            updateUserIndex(sender, opreate.stake, temp);
        }
        if (newAmount < userInfo.stakedAmount) {
            temp = userInfo.stakedAmount - newAmount;
            updateIndex(opreate.unStake, temp);
            updateUserIndex(sender, opreate.unStake, temp);
        }
    }

    function halfYear() internal returns (uint) {
        require(subHalfTime > 0, "SubHalf time error");
        startTime = startTime == 0 ? block.timestamp : startTime;
        uint yearCount = (block.timestamp - startTime) / subHalfTime;
        uint value;
        if (yearHalfCount <= yearCount) {
            yearHalfCount = yearCount + 1;
            yearHalfAmount = yearHalfAmount / 2;
        }
        value = yearHalfAmount;
        return value / subHalfTime;
    }

    function getHalfYear() internal view returns (uint) {
        if (yearHalfAmount == 0) {
            return 0;
        }
        uint value = yearHalfAmount;
        return value / subHalfTime;
    }

    function claim() public {
        address sender = msg.sender;
        _sync(sender);
        updateIndex(opreate.claim, 0);
        updateUserIndex(sender, opreate.claim, 0);
        StakedInfo storage userStakedInfo = userStakedInfos[sender];

        if (userStakedInfo.available > 0) {
            uint temp = userStakedInfo.available;
            IERC20(ssd).transfer(sender, (temp * 30) / 100);
            TokenLock(lock).locking(sender, (temp * 70) / 100);
            userStakedInfo.accruedReward += temp;
            userStakedInfo.available = 0;
        }
    }

    function updateIndex(opreate _oprea, uint lpAmount) internal {
        StakedInfo storage info = globalStakedInfo;
        if (info.updateTime == 0 || info.stakedAmount == 0) {
            info.updateTime = block.timestamp;
            info.stakedAmount += lpAmount;
            halfYear();
            return;
        }
        uint release = halfYear();

        release = release * (block.timestamp - info.updateTime);

        release = release * 1e18;

        release = release / info.stakedAmount;

        info.index += release;

        if (_oprea == opreate.stake) {
            info.stakedAmount += lpAmount;
        }
        if (_oprea == opreate.unStake) {
            info.stakedAmount -= lpAmount;
        }
        if (release > 0) {
            info.updateTime = block.timestamp;
        }
    }

    function awaitGetAmount(address user) external view returns (uint) {
        StakedInfo memory infoGlo = globalStakedInfo;
        StakedInfo memory infoUser = userStakedInfos[user];

        uint secRelease = getHalfYear();

        if (infoGlo.stakedAmount == 0) return 0;

        uint _time = block.timestamp - infoGlo.updateTime;

        uint _amount = _time * secRelease;

        _amount = _amount * 1e18;

        _amount = _amount / infoGlo.stakedAmount;

        uint _gloIndex = infoGlo.index + _amount;

        uint value = _gloIndex - infoUser.index;

        value = value * infoUser.stakedAmount;
        value = value / 1e18;
        value = value + infoUser.available;

        return value;
    }

    function updateUserIndex(
        address user,
        opreate _oprea,
        uint lpAmount
    ) internal {
        StakedInfo storage info = userStakedInfos[user];

        info.updateTime = block.timestamp;
        uint value = info.stakedAmount * (globalStakedInfo.index - info.index);

        value = value / 1e18;

        if (value > 0) {
            info.available += value;
        }

        if (_oprea == opreate.stake) {
            info.stakedAmount += lpAmount;
        }
        if (_oprea == opreate.unStake) {
            info.stakedAmount -= lpAmount;
        }

        info.index = globalStakedInfo.index;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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);
}

// SPDX-License-Identifier: MIT
interface IMosLpPool {
    function balanceOf(address _account) external returns (uint);
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

contract TokenLock {
    using SafeERC20 for IERC20;

    uint256 public UPGRADE_LOCK_DURATION;

    mapping(address => LockedToken) public upgradeLockedTokens;

    IERC20 public lockToken;
    address public oldLock;
    address public owner;
    address public locker;

    struct LockedToken {
        uint256 locked;
        uint256 lockTime;
        int256 unlocked;
    }

    event Locking(address indexed user, uint256 amount);
    event Withdraw(address indexed user, uint256 amount);

    constructor(address _lockToken) {
        lockToken = IERC20(_lockToken);
        UPGRADE_LOCK_DURATION = 360 days;
        owner = msg.sender;
        locker = msg.sender;
    }
    function locking(address account, uint256 _lock) external {
        require(msg.sender == locker, "only locker");
        lockToken.safeTransferFrom(msg.sender, address(this), _lock);
        LockedToken storage lt = upgradeLockedTokens[account];
        uint256 _now = block.timestamp;
        if (_now < lt.lockTime + UPGRADE_LOCK_DURATION) {
            uint256 amount = (lt.locked * (_now - lt.lockTime)) /
                UPGRADE_LOCK_DURATION;
            lt.locked = lt.locked - amount + _lock;
            lt.unlocked += int256(amount);
        } else {
            lt.unlocked += int256(lt.locked);
            lt.locked = _lock;
        }
        lt.lockTime = _now;

        emit Locking(account, _lock);
    }

    function withdraw() external {
        LockedToken storage lt = upgradeLockedTokens[msg.sender];
        int256 unlocked = lt.unlocked;
        uint256 _now = block.timestamp;

        if (_now < lt.lockTime + UPGRADE_LOCK_DURATION) {
            unlocked += int256(
                (lt.locked * (_now - lt.lockTime)) / UPGRADE_LOCK_DURATION
            );
        } else {
            unlocked += int256(lt.locked);
        }

        require(unlocked > 0, "no token available");

        lt.unlocked -= unlocked;

        lockToken.safeTransfer(msg.sender, uint256(unlocked));

        emit Withdraw(msg.sender, uint256(unlocked));
    }

    function available(address _account) public view returns (uint256) {
        LockedToken memory lt = upgradeLockedTokens[_account];
        int256 unlocked = lt.unlocked;
        uint256 _now = block.timestamp;

        if (_now < lt.lockTime + UPGRADE_LOCK_DURATION) {
            unlocked += int256(
                (lt.locked * (_now - lt.lockTime)) / UPGRADE_LOCK_DURATION
            );
        } else {
            unlocked += int256(lt.locked);
        }
        return uint256(unlocked);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

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

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 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 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        if (!_safeTransfer(token, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        if (!_safeTransferFrom(token, from, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _safeTransfer(token, to, value, false);
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _safeTransferFrom(token, from, to, value, false);
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        if (!_safeApprove(token, spender, value, false)) {
            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));
            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity `token.transfer(to, value)` call, 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 to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.transfer.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(to, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }

    /**
     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, 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 from The sender of the tokens
     * @param to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value,
        bool bubble
    ) private returns (bool success) {
        bytes4 selector = IERC20.transferFrom.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(from, shr(96, not(0))))
            mstore(0x24, and(to, shr(96, not(0))))
            mstore(0x44, value)
            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
            mstore(0x60, 0)
        }
    }

    /**
     * @dev Imitates a Solidity `token.approve(spender, value)` call, 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 spender The spender of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.approve.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(spender, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)

pragma solidity >=0.6.2;

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

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 7 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)

pragma solidity >=0.4.16;

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

File 8 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)

pragma solidity >=0.4.16;

import {IERC165} from "../utils/introspection/IERC165.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/openzeppelin-contracts/lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "prague",
  "viaIR": false
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_mosLpPool","type":"address"},{"internalType":"address","name":"_ssd","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"awaitGetAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"globalStakedInfo","outputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"internalType":"uint256","name":"updateTime","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"},{"internalType":"uint256","name":"accruedReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mosLpPool","outputs":[{"internalType":"contract IMosLpPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"setSubHalfTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ssd","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"subHalfTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userStakedInfos","outputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"internalType":"uint256","name":"updateTime","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"},{"internalType":"uint256","name":"accruedReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yearHalfAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yearHalfCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

0x60806040526a027b46536c66c8e300000060085563041eb000600955348015610026575f5ffd5b5060405161152638038061152683398101604081905261004591610170565b600a8054336001600160a01b031991821617909155600b80549091166001600160a01b038316179055604051819061007c90610148565b6001600160a01b039091168152602001604051809103905ff0801580156100a5573d5f5f3e3d5ffd5b50600c80546001600160a01b03199081166001600160a01b03938416908117909255600d8054909116858416179055600b5460405163095ea7b360e01b815260048101929092525f1960248301529091169063095ea7b3906044016020604051808303815f875af115801561011c573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061014091906101a1565b5050506101c7565b6107fa80610d2c83390190565b80516001600160a01b038116811461016b575f5ffd5b919050565b5f5f60408385031215610181575f5ffd5b61018a83610155565b915061019860208401610155565b90509250929050565b5f602082840312156101b1575f5ffd5b815180151581146101c0575f5ffd5b9392505050565b610b58806101d45f395ff3fe608060405234801561000f575f5ffd5b50600436106100f0575f3560e01c8063c6d8929a11610093578063deef5ecb11610063578063deef5ecb146101bf578063f03ef45214610200578063f83d08ba1461023c578063fff6cae91461024f575f5ffd5b8063c6d8929a1461017d578063c7ae907914610190578063cb8a6efb14610199578063cf46d17d146101ac575f5ffd5b80634e71d92d116100ce5780634e71d92d1461013857806378e97925146101405780638da5cb5b14610149578063b649c8bd14610174575f5ffd5b806313af4035146100f4578063384ea8d8146101095780634c66777314610125575b5f5ffd5b610107610102366004610a1e565b610257565b005b61011260075481565b6040519081526020015b60405180910390f35b610107610133366004610a4b565b6102c4565b610107610323565b61011260065481565b600a5461015c906001600160a01b031681565b6040516001600160a01b03909116815260200161011c565b61011260085481565b600d5461015c906001600160a01b031681565b61011260095481565b6101126101a7366004610a1e565b6104a6565b600b5461015c906001600160a01b031681565b5f546001546002546003546004546101d8949392919085565b604080519586526020860194909452928401919091526060830152608082015260a00161011c565b6101d861020e366004610a1e565b60056020525f9081526040902080546001820154600283015460038401546004909401549293919290919085565b600c5461015c906001600160a01b031681565b6101076105f9565b600a546001600160a01b031633146102a25760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b60448201526064015b60405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316331461031e5760405162461bcd60e51b815260206004820152601860248201527f4e6f206f776e657220746f20736574207468652074696d6500000000000000006044820152606401610299565b600955565b3361032d81610606565b61033860025f610742565b6103448160025f61085e565b6001600160a01b0381165f9081526005602052604090206003810154156104a2576003810154600b546001600160a01b031663a9059cbb84606461038985601e610a76565b6103939190610a93565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af11580156103db573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ff9190610ab2565b50600c546001600160a01b03166311ecde2c84606461041f856046610a76565b6104299190610a93565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b15801561046c575f5ffd5b505af115801561047e573d5f5f3e3d5ffd5b5050505080826004015f8282546104959190610ad1565b90915550505f6003830155505b5050565b6040805160a080820183525f8054835260018054602080860191909152600280548688015260038054606080890191909152600480546080808b01919091526001600160a01b038c168852600586528a88208b51998a018c5280548a529687015495890195909552928501549887019890985283015496850196909652940154938201939093528261053661093d565b905082602001515f0361054d57505f949350505050565b5f83604001514261055e9190610ae4565b90505f61056b8383610a76565b905061057f81670de0b6b3a7640000610a76565b90508460200151816105919190610a93565b90505f81865f01516105a39190610ad1565b85519091505f906105b49083610ae4565b90508560200151816105c69190610a76565b90506105da670de0b6b3a764000082610a93565b90508560600151816105ec9190610ad1565b9998505050505050505050565b3361060381610606565b50565b600d546040516370a0823160e01b81526001600160a01b0383811660048301525f9216906370a08231906024016020604051808303815f875af115801561064f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106739190610af7565b6001600160a01b0383165f908152600560209081526040808320815160a0810183528154815260018201549381018490526002820154928101929092526003810154606083015260040154608082015292935090919083036106d55750505050565b80602001518311156107075760208101516106f09084610ae4565b91506106fc5f83610742565b610707845f8461085e565b806020015183101561073c578281602001516107239190610ae4565b9150610730600183610742565b61073c8460018461085e565b50505050565b6002545f90158061075557506001810154155b156107845742816002018190555081816001015f8282546107769190610ad1565b9091555061073c9050610962565b5f61078d610962565b905081600201544261079f9190610ae4565b6107a99082610a76565b90506107bd81670de0b6b3a7640000610a76565b90508160010154816107cf9190610a93565b905080825f015f8282546107e39190610ad1565b909155505f90508460028111156107fc576107fc610b0e565b0361081a5782826001015f8282546108149190610ad1565b90915550505b600184600281111561082e5761082e610b0e565b0361084c5782826001015f8282546108469190610ae4565b90915550505b801561073c5742600283015550505050565b6001600160a01b0383165f9081526005602052604081204260028201558054825491929161088c9190610ae4565b826001015461089b9190610a76565b90506108af670de0b6b3a764000082610a93565b905080156108d05780826003015f8282546108ca9190610ad1565b90915550505b5f8460028111156108e3576108e3610b0e565b036109015782826001015f8282546108fb9190610ad1565b90915550505b600184600281111561091557610915610b0e565b036109335782826001015f82825461092d9190610ae4565b90915550505b505f549055505050565b5f6008545f0361094c57505f90565b60085460095461095c9082610a93565b91505090565b5f5f600954116109a95760405162461bcd60e51b815260206004820152601260248201527129bab12430b633103a34b6b29032b93937b960711b6044820152606401610299565b600654156109b9576006546109bb565b425b60068190556009545f916109cf9042610ae4565b6109d99190610a93565b90505f8160075411610a06576109f0826001610ad1565b600755600854610a0290600290610a93565b6008555b50600854600954610a179082610a93565b9250505090565b5f60208284031215610a2e575f5ffd5b81356001600160a01b0381168114610a44575f5ffd5b9392505050565b5f60208284031215610a5b575f5ffd5b5035919050565b634e487b7160e01b5f52601160045260245ffd5b8082028115828204841417610a8d57610a8d610a62565b92915050565b5f82610aad57634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215610ac2575f5ffd5b81518015158114610a44575f5ffd5b80820180821115610a8d57610a8d610a62565b81810381811115610a8d57610a8d610a62565b5f60208284031215610b07575f5ffd5b5051919050565b634e487b7160e01b5f52602160045260245ffdfea2646970667358221220100b23210ff985481ef718ce86307b6a0ae2fa59480b84c8f1679132ff7a20f164736f6c634300081e00336080604052348015600e575f5ffd5b506040516107fa3803806107fa833981016040819052602b91606b565b600280546001600160a01b039092166001600160a01b03199283161790556301da9c005f5560048054821633908117909155600580549092161790556096565b5f60208284031215607a575f5ffd5b81516001600160a01b0381168114608f575f5ffd5b9392505050565b610757806100a35f395ff3fe608060405234801561000f575f5ffd5b5060043610610090575f3560e01c80638da5cb5b116100635780638da5cb5b1461011f5780639bd250181461014a578063a72e4b231461015d578063bca7a9e214610165578063d7b96d4e14610178575f5ffd5b806310098ad51461009457806311ecde2c146100ba5780633ccfd60b146100cf5780636b1da066146100d7575b5f5ffd5b6100a76100a2366004610616565b61018b565b6040519081526020015b60405180910390f35b6100cd6100c8366004610636565b61022a565b005b6100cd610391565b6101046100e5366004610616565b600160208190525f918252604090912080549181015460029091015483565b604080519384526020840192909252908201526060016100b1565b600454610132906001600160a01b031681565b6040516001600160a01b0390911681526020016100b1565b600354610132906001600160a01b031681565b6100a75f5481565b600254610132906001600160a01b031681565b600554610132906001600160a01b031681565b6001600160a01b0381165f90815260016020818152604080842081516060810183528154815293810154928401839052600201549083018190528354909142916101d491610672565b811015610213575f5460208401516101ec908361068b565b84516101f8919061069e565b61020291906106b5565b61020c90836106d4565b9150610222565b825161021f90836106d4565b91505b509392505050565b6005546001600160a01b031633146102775760405162461bcd60e51b815260206004820152600b60248201526a37b7363c903637b1b5b2b960a91b60448201526064015b60405180910390fd5b60025461028f906001600160a01b03163330846104b6565b6001600160a01b0382165f908152600160208190526040822091549082015442916102b991610672565b811015610328575f805460018401546102d2908461068b565b84546102de919061069e565b6102e891906106b5565b90508381845f01546102fa919061068b565b6103049190610672565b83556002830180548291905f9061031c9084906106d4565b90915550610346915050565b81546002830180545f9061033d9084906106d4565b90915550508282555b600182018190556040518381526001600160a01b038516907f531120edf08e24fe8c5ae9076b200afcb0fec08623f81d325b7a5dd5fbf3f4b79060200160405180910390a250505050565b335f9081526001602081905260408220600281015492549181015490929142916103bb9190610672565b8110156103fa575f5460018401546103d3908361068b565b84546103df919061069e565b6103e991906106b5565b6103f390836106d4565b9150610409565b825461040690836106d4565b91505b5f821361044d5760405162461bcd60e51b81526020600482015260126024820152716e6f20746f6b656e20617661696c61626c6560701b604482015260640161026e565b81836002015f82825461046091906106fb565b909155505060025461047c906001600160a01b031633846104f2565b60405182815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a2505050565b6104c484848484600161052c565b6104ec57604051635274afe760e01b81526001600160a01b038516600482015260240161026e565b50505050565b6104ff8383836001610599565b61052757604051635274afe760e01b81526001600160a01b038416600482015260240161026e565b505050565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f5114831661058857838315161561057c573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f511483166105ef5783831516156105e3573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b80356001600160a01b0381168114610611575f5ffd5b919050565b5f60208284031215610626575f5ffd5b61062f826105fb565b9392505050565b5f5f60408385031215610647575f5ffd5b610650836105fb565b946020939093013593505050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156106855761068561065e565b92915050565b818103818111156106855761068561065e565b80820281158282048414176106855761068561065e565b5f826106cf57634e487b7160e01b5f52601260045260245ffd5b500490565b8082018281125f8312801582168215821617156106f3576106f361065e565b505092915050565b8181035f83128015838313168383128216171561071a5761071a61065e565b509291505056fea26469706673582212206a41e4b0928f9f6df7ecbda47de8cc9f655d5ba156a641d98b68c327e4d47b2c64736f6c634300081e0033000000000000000000000000f132f2f99aac890e3f9fde180d87b81062ac8636000000000000000000000000b47ce8344b0cc64ae85491c74076b583fe5b7940

Deployed Bytecode

0x608060405234801561000f575f5ffd5b50600436106100f0575f3560e01c8063c6d8929a11610093578063deef5ecb11610063578063deef5ecb146101bf578063f03ef45214610200578063f83d08ba1461023c578063fff6cae91461024f575f5ffd5b8063c6d8929a1461017d578063c7ae907914610190578063cb8a6efb14610199578063cf46d17d146101ac575f5ffd5b80634e71d92d116100ce5780634e71d92d1461013857806378e97925146101405780638da5cb5b14610149578063b649c8bd14610174575f5ffd5b806313af4035146100f4578063384ea8d8146101095780634c66777314610125575b5f5ffd5b610107610102366004610a1e565b610257565b005b61011260075481565b6040519081526020015b60405180910390f35b610107610133366004610a4b565b6102c4565b610107610323565b61011260065481565b600a5461015c906001600160a01b031681565b6040516001600160a01b03909116815260200161011c565b61011260085481565b600d5461015c906001600160a01b031681565b61011260095481565b6101126101a7366004610a1e565b6104a6565b600b5461015c906001600160a01b031681565b5f546001546002546003546004546101d8949392919085565b604080519586526020860194909452928401919091526060830152608082015260a00161011c565b6101d861020e366004610a1e565b60056020525f9081526040902080546001820154600283015460038401546004909401549293919290919085565b600c5461015c906001600160a01b031681565b6101076105f9565b600a546001600160a01b031633146102a25760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b60448201526064015b60405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316331461031e5760405162461bcd60e51b815260206004820152601860248201527f4e6f206f776e657220746f20736574207468652074696d6500000000000000006044820152606401610299565b600955565b3361032d81610606565b61033860025f610742565b6103448160025f61085e565b6001600160a01b0381165f9081526005602052604090206003810154156104a2576003810154600b546001600160a01b031663a9059cbb84606461038985601e610a76565b6103939190610a93565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af11580156103db573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ff9190610ab2565b50600c546001600160a01b03166311ecde2c84606461041f856046610a76565b6104299190610a93565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b15801561046c575f5ffd5b505af115801561047e573d5f5f3e3d5ffd5b5050505080826004015f8282546104959190610ad1565b90915550505f6003830155505b5050565b6040805160a080820183525f8054835260018054602080860191909152600280548688015260038054606080890191909152600480546080808b01919091526001600160a01b038c168852600586528a88208b51998a018c5280548a529687015495890195909552928501549887019890985283015496850196909652940154938201939093528261053661093d565b905082602001515f0361054d57505f949350505050565b5f83604001514261055e9190610ae4565b90505f61056b8383610a76565b905061057f81670de0b6b3a7640000610a76565b90508460200151816105919190610a93565b90505f81865f01516105a39190610ad1565b85519091505f906105b49083610ae4565b90508560200151816105c69190610a76565b90506105da670de0b6b3a764000082610a93565b90508560600151816105ec9190610ad1565b9998505050505050505050565b3361060381610606565b50565b600d546040516370a0823160e01b81526001600160a01b0383811660048301525f9216906370a08231906024016020604051808303815f875af115801561064f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106739190610af7565b6001600160a01b0383165f908152600560209081526040808320815160a0810183528154815260018201549381018490526002820154928101929092526003810154606083015260040154608082015292935090919083036106d55750505050565b80602001518311156107075760208101516106f09084610ae4565b91506106fc5f83610742565b610707845f8461085e565b806020015183101561073c578281602001516107239190610ae4565b9150610730600183610742565b61073c8460018461085e565b50505050565b6002545f90158061075557506001810154155b156107845742816002018190555081816001015f8282546107769190610ad1565b9091555061073c9050610962565b5f61078d610962565b905081600201544261079f9190610ae4565b6107a99082610a76565b90506107bd81670de0b6b3a7640000610a76565b90508160010154816107cf9190610a93565b905080825f015f8282546107e39190610ad1565b909155505f90508460028111156107fc576107fc610b0e565b0361081a5782826001015f8282546108149190610ad1565b90915550505b600184600281111561082e5761082e610b0e565b0361084c5782826001015f8282546108469190610ae4565b90915550505b801561073c5742600283015550505050565b6001600160a01b0383165f9081526005602052604081204260028201558054825491929161088c9190610ae4565b826001015461089b9190610a76565b90506108af670de0b6b3a764000082610a93565b905080156108d05780826003015f8282546108ca9190610ad1565b90915550505b5f8460028111156108e3576108e3610b0e565b036109015782826001015f8282546108fb9190610ad1565b90915550505b600184600281111561091557610915610b0e565b036109335782826001015f82825461092d9190610ae4565b90915550505b505f549055505050565b5f6008545f0361094c57505f90565b60085460095461095c9082610a93565b91505090565b5f5f600954116109a95760405162461bcd60e51b815260206004820152601260248201527129bab12430b633103a34b6b29032b93937b960711b6044820152606401610299565b600654156109b9576006546109bb565b425b60068190556009545f916109cf9042610ae4565b6109d99190610a93565b90505f8160075411610a06576109f0826001610ad1565b600755600854610a0290600290610a93565b6008555b50600854600954610a179082610a93565b9250505090565b5f60208284031215610a2e575f5ffd5b81356001600160a01b0381168114610a44575f5ffd5b9392505050565b5f60208284031215610a5b575f5ffd5b5035919050565b634e487b7160e01b5f52601160045260245ffd5b8082028115828204841417610a8d57610a8d610a62565b92915050565b5f82610aad57634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215610ac2575f5ffd5b81518015158114610a44575f5ffd5b80820180821115610a8d57610a8d610a62565b81810381811115610a8d57610a8d610a62565b5f60208284031215610b07575f5ffd5b5051919050565b634e487b7160e01b5f52602160045260245ffdfea2646970667358221220100b23210ff985481ef718ce86307b6a0ae2fa59480b84c8f1679132ff7a20f164736f6c634300081e0033

Block Transaction Gas Used Reward
view all blocks produced
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
View All Validatorset

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  ]
[ 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.