S Price: $0.561302 (-5.97%)

Contract

0x4629CaEE16428cFb192D988bBcA39386679d8deb

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Burn Shroom And ...116125692025-03-04 12:46:336 hrs ago1741092393IN
0x4629CaEE...6679d8deb
0 S0.0091650955

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShroomTreasury

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at SonicScan.org on 2025-02-25
*/

// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

// File: @openzeppelin/contracts/interfaces/IERC20.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;


// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

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

// File: @openzeppelin/contracts/interfaces/IERC165.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;


// File: @openzeppelin/contracts/interfaces/IERC1363.sol


// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;



/**
 * @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: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;



/**
 * @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 {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @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 {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @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 {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @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 rely 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 rely 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}.
     * Opposedly, 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 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).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

// File: ShroomTreasury_org.sol


pragma solidity ^0.8.0;



/// @notice A fully autonomous treasury that burns SHR tokens and refunds $S proportionally, with no owner control to ensure fairness.
/// @dev The refund math calculates $S to distribute based on the ratio of treasury $S to circulating SHR. 
///      Circulation is defined as total SHR supply minus the SHR balance held by the tradingAddress (Shroom Trading account), 
///      ensuring that only user-held SHR impacts the refund rate. SHR burned is sent to deadAddress if total supply exceeds 10B, 
///      otherwise back to tradingAddress for the liquidity range reserve. No funds can be withdrawn, locking all excess $S and SHR for refunds only.
contract ShroomTreasury is ReentrancyGuard {
    using SafeERC20 for IERC20;

    address public immutable shrToken = 0x5D0393b0655D483E63Fe1F5a85AE37d67dE6f356;
    address public immutable sToken = 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38;
    address public immutable tradingAddress = 0xDFd600C7683246E2866596958a751C90bf7bCCe6;
    address public immutable deadAddress = 0x000000000000000000000000000000000000dEaD;
    uint256 public constant TOTAL_SUPPLY_LIMIT = 10_000_000_000 * 10**18; // 10B SHR

    event TokensBurned(address indexed user, uint256 shrAmount, address destination);
    event RefundIssued(address indexed user, uint256 sAmount);

    constructor() ReentrancyGuard() {
        // Explicitly call ReentrancyGuard constructor
    }

    function burnShroomAndRefundS(uint256 amount) external nonReentrant {
        require(amount > 0, "Amount must be greater than zero");
        IERC20(shrToken).safeTransferFrom(msg.sender, address(this), amount);
        uint256 currentSupply = IERC20(shrToken).totalSupply();
        address destination = (currentSupply > TOTAL_SUPPLY_LIMIT) ? deadAddress : tradingAddress;
        IERC20(shrToken).safeTransfer(destination, amount);
        emit TokensBurned(msg.sender, amount, destination);

        uint256 circulation = currentSupply - IERC20(shrToken).balanceOf(tradingAddress);
        require(circulation > 0, "Circulation is zero, cannot calculate refund");
        uint256 treasuryS = IERC20(sToken).balanceOf(address(this)) - 10 * 10**18;
        uint256 refundRatio = treasuryS / circulation;
        uint256 refundAmount = amount * refundRatio;

        require(refundAmount <= IERC20(sToken).balanceOf(address(this)), "Insufficient $S");
        IERC20(sToken).safeTransfer(msg.sender, refundAmount);
        emit RefundIssued(msg.sender, refundAmount);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"sAmount","type":"uint256"}],"name":"RefundIssued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"shrAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"destination","type":"address"}],"name":"TokensBurned","type":"event"},{"inputs":[],"name":"TOTAL_SUPPLY_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnShroomAndRefundS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shrToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

610100604052735d0393b0655d483e63fe1f5a85ae37d67de6f35660805273039e2fb66102314ce7b64ce5ce3e5183bc94ad3860a05273dfd600c7683246e2866596958a751c90bf7bcce660c05261dead60e05234801561005f57600080fd5b50600160005560805160a05160c05160e0516108a46100e16000396000818160b001526102ab015260008181606c01528181610285015261035b01526000818160ec0152818161048e0152818161053701526105f8015260008181610113015281816101c0015281816101ec015281816102da015261038601526108a46000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631db787e81461006757806327c8f835146100ab57806382881833146100d25780639ebdf12c146100e7578063b290ae061461010e578063cc3bde3d14610135575b600080fd5b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6100e56100e03660046107d4565b610156565b005b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6101486b204fce5e3e2502611000000081565b6040519081526020016100a2565b61015e610667565b600081116101b35760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f60448201526064015b60405180910390fd5b6101e86001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846106c0565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610248573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026c91906107ed565b905060006b204fce5e3e2502611000000082116102a9577f00000000000000000000000000000000000000000000000000000000000000006102cb565b7f00000000000000000000000000000000000000000000000000000000000000005b90506103016001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016828561072d565b604080518481526001600160a01b038316602082015233917f08009940fb138ae33fbb70c10b643e840c71f1654344cc173975a815e117e687910160405180910390a26040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa1580156103cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f391906107ed565b6103fd908461081c565b9050600081116104645760405162461bcd60e51b815260206004820152602c60248201527f43697263756c6174696f6e206973207a65726f2c2063616e6e6f742063616c6360448201526b1d5b185d19481c99599d5b9960a21b60648201526084016101aa565b6040516370a0823160e01b8152306004820152600090678ac7230489e80000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156104d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f991906107ed565b610503919061081c565b905060006105118383610835565b9050600061051f8288610857565b6040516370a0823160e01b81523060048201529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105aa91906107ed565b8111156105eb5760405162461bcd60e51b815260206004820152600f60248201526e496e73756666696369656e7420245360881b60448201526064016101aa565b61061f6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361072d565b60405181815233907fa171b6942063c6f2800ce40a780edce37baa2b618571b11eedd1e69e626e7d769060200160405180910390a25050505050506106646001600055565b50565b6002600054036106b95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101aa565b6002600055565b6040516001600160a01b0384811660248301528381166044830152606482018390526107279186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610763565b50505050565b6040516001600160a01b0383811660248301526044820183905261075e91859182169063a9059cbb906064016106f5565b505050565b600080602060008451602086016000885af180610786576040513d6000823e3d81fd5b50506000513d9150811561079e5780600114156107ab565b6001600160a01b0384163b155b1561072757604051635274afe760e01b81526001600160a01b03851660048201526024016101aa565b6000602082840312156107e657600080fd5b5035919050565b6000602082840312156107ff57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561082f5761082f610806565b92915050565b60008261085257634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761082f5761082f61080656fea26469706673582212203401599c028a838bb62f66419da1be58683e0d4e53dea9f8ff480d55694ef42364736f6c634300081a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c80631db787e81461006757806327c8f835146100ab57806382881833146100d25780639ebdf12c146100e7578063b290ae061461010e578063cc3bde3d14610135575b600080fd5b61008e7f000000000000000000000000dfd600c7683246e2866596958a751c90bf7bcce681565b6040516001600160a01b0390911681526020015b60405180910390f35b61008e7f000000000000000000000000000000000000000000000000000000000000dead81565b6100e56100e03660046107d4565b610156565b005b61008e7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3881565b61008e7f0000000000000000000000005d0393b0655d483e63fe1f5a85ae37d67de6f35681565b6101486b204fce5e3e2502611000000081565b6040519081526020016100a2565b61015e610667565b600081116101b35760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f60448201526064015b60405180910390fd5b6101e86001600160a01b037f0000000000000000000000005d0393b0655d483e63fe1f5a85ae37d67de6f356163330846106c0565b60007f0000000000000000000000005d0393b0655d483e63fe1f5a85ae37d67de6f3566001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610248573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026c91906107ed565b905060006b204fce5e3e2502611000000082116102a9577f000000000000000000000000dfd600c7683246e2866596958a751c90bf7bcce66102cb565b7f000000000000000000000000000000000000000000000000000000000000dead5b90506103016001600160a01b037f0000000000000000000000005d0393b0655d483e63fe1f5a85ae37d67de6f35616828561072d565b604080518481526001600160a01b038316602082015233917f08009940fb138ae33fbb70c10b643e840c71f1654344cc173975a815e117e687910160405180910390a26040516370a0823160e01b81526001600160a01b037f000000000000000000000000dfd600c7683246e2866596958a751c90bf7bcce6811660048301526000917f0000000000000000000000005d0393b0655d483e63fe1f5a85ae37d67de6f356909116906370a0823190602401602060405180830381865afa1580156103cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f391906107ed565b6103fd908461081c565b9050600081116104645760405162461bcd60e51b815260206004820152602c60248201527f43697263756c6174696f6e206973207a65726f2c2063616e6e6f742063616c6360448201526b1d5b185d19481c99599d5b9960a21b60648201526084016101aa565b6040516370a0823160e01b8152306004820152600090678ac7230489e80000906001600160a01b037f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3816906370a0823190602401602060405180830381865afa1580156104d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f991906107ed565b610503919061081c565b905060006105118383610835565b9050600061051f8288610857565b6040516370a0823160e01b81523060048201529091507f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b0316906370a0823190602401602060405180830381865afa158015610586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105aa91906107ed565b8111156105eb5760405162461bcd60e51b815260206004820152600f60248201526e496e73756666696369656e7420245360881b60448201526064016101aa565b61061f6001600160a01b037f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3816338361072d565b60405181815233907fa171b6942063c6f2800ce40a780edce37baa2b618571b11eedd1e69e626e7d769060200160405180910390a25050505050506106646001600055565b50565b6002600054036106b95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101aa565b6002600055565b6040516001600160a01b0384811660248301528381166044830152606482018390526107279186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610763565b50505050565b6040516001600160a01b0383811660248301526044820183905261075e91859182169063a9059cbb906064016106f5565b505050565b600080602060008451602086016000885af180610786576040513d6000823e3d81fd5b50506000513d9150811561079e5780600114156107ab565b6001600160a01b0384163b155b1561072757604051635274afe760e01b81526001600160a01b03851660048201526024016101aa565b6000602082840312156107e657600080fd5b5035919050565b6000602082840312156107ff57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561082f5761082f610806565b92915050565b60008261085257634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761082f5761082f61080656fea26469706673582212203401599c028a838bb62f66419da1be58683e0d4e53dea9f8ff480d55694ef42364736f6c634300081a0033

Deployed Bytecode Sourcemap

22179:1872:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22432:84;;;;;;;;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;22432:84:0;;;;;;;;22523:81;;;;;22956:1092;;;;;;:::i;:::-;;:::i;:::-;;22349:76;;;;;22264:78;;;;;22611:68;;22656:23;22611:68;;;;;553:25:1;;;541:2;526:18;22611:68:0;407:177:1;22956:1092:0;20559:21;:19;:21::i;:::-;23052:1:::1;23043:6;:10;23035:55;;;::::0;-1:-1:-1;;;23035:55:0;;791:2:1;23035:55:0::1;::::0;::::1;773:21:1::0;;;810:18;;;803:30;869:34;849:18;;;842:62;921:18;;23035:55:0::1;;;;;;;;;23101:68;-1:-1:-1::0;;;;;23108:8:0::1;23101:33;23135:10;23155:4;23162:6:::0;23101:33:::1;:68::i;:::-;23180:21;23211:8;-1:-1:-1::0;;;;;23204:28:0::1;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23180:54;;23245:19;22656:23;23268:13;:34;23267:67;;23320:14;23267:67;;;23306:11;23267:67;23245:89:::0;-1:-1:-1;23345:50:0::1;-1:-1:-1::0;;;;;23352:8:0::1;23345:29;23245:89:::0;23388:6;23345:29:::1;:50::i;:::-;23411:45;::::0;;1313:25:1;;;-1:-1:-1;;;;;1374:32:1;;1369:2;1354:18;;1347:60;23424:10:0::1;::::0;23411:45:::1;::::0;1286:18:1;23411:45:0::1;;;;;;;23507:42;::::0;-1:-1:-1;;;23507:42:0;;-1:-1:-1;;;;;23534:14:0::1;178:32:1::0;;23507:42:0::1;::::0;::::1;160:51:1::0;-1:-1:-1;;23514:8:0::1;23507:26:::0;;::::1;::::0;::::1;::::0;133:18:1;;23507:42:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23491:58;::::0;:13;:58:::1;:::i;:::-;23469:80;;23582:1;23568:11;:15;23560:72;;;::::0;-1:-1:-1;;;23560:72:0;;1885:2:1;23560:72:0::1;::::0;::::1;1867:21:1::0;1924:2;1904:18;;;1897:30;1963:34;1943:18;;;1936:62;-1:-1:-1;;;2014:18:1;;;2007:42;2066:19;;23560:72:0::1;1683:408:1::0;23560:72:0::1;23663:39;::::0;-1:-1:-1;;;23663:39:0;;23696:4:::1;23663:39;::::0;::::1;160:51:1::0;23643:17:0::1;::::0;23705:11:::1;::::0;-1:-1:-1;;;;;23670:6:0::1;23663:24;::::0;::::1;::::0;133:18:1;;23663:39:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;;;;:::i;:::-;23643:73:::0;-1:-1:-1;23727:19:0::1;23749:23;23761:11:::0;23643:73;23749:23:::1;:::i;:::-;23727:45:::0;-1:-1:-1;23783:20:0::1;23806;23727:45:::0;23806:6;:20:::1;:::i;:::-;23863:39;::::0;-1:-1:-1;;;23863:39:0;;23896:4:::1;23863:39;::::0;::::1;160:51:1::0;23783:43:0;;-1:-1:-1;23870:6:0::1;-1:-1:-1::0;;;;;23863:24:0::1;::::0;::::1;::::0;133:18:1;;23863:39:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23847:12;:55;;23839:83;;;::::0;-1:-1:-1;;;23839:83:0;;2693:2:1;23839:83:0::1;::::0;::::1;2675:21:1::0;2732:2;2712:18;;;2705:30;-1:-1:-1;;;2751:18:1;;;2744:45;2806:18;;23839:83:0::1;2491:339:1::0;23839:83:0::1;23933:53;-1:-1:-1::0;;;;;23940:6:0::1;23933:27;23961:10;23973:12:::0;23933:27:::1;:53::i;:::-;24002:38;::::0;553:25:1;;;24015:10:0::1;::::0;24002:38:::1;::::0;541:2:1;526:18;24002:38:0::1;;;;;;;23024:1024;;;;;;20603:20:::0;19997:1;21123:7;:22;20940:213;20603:20;22956:1092;:::o;20639:293::-;20041:1;20773:7;;:19;20765:63;;;;-1:-1:-1;;;20765:63:0;;3037:2:1;20765:63:0;;;3019:21:1;3076:2;3056:18;;;3049:30;3115:33;3095:18;;;3088:61;3166:18;;20765:63:0;2835:355:1;20765:63:0;20041:1;20906:7;:18;20639:293::o;10281:190::-;10409:53;;-1:-1:-1;;;;;3415:32:1;;;10409:53:0;;;3397:51:1;3484:32;;;3464:18;;;3457:60;3533:18;;;3526:34;;;10382:81:0;;10402:5;;10424:18;;;;;3370::1;;10409:53:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10409:53:0;;;;;;;;;;;10382:19;:81::i;:::-;10281:190;;;;:::o;9874:162::-;9984:43;;-1:-1:-1;;;;;3763:32:1;;;9984:43:0;;;3745:51:1;3812:18;;;3805:34;;;9957:71:0;;9977:5;;9999:14;;;;;3718:18:1;;9984:43:0;3571:274:1;9957:71:0;9874:162;;;:::o;16467:738::-;16548:18;16577:19;16717:4;16714:1;16707:4;16701:11;16694:4;16688;16684:15;16681:1;16674:5;16667;16662:60;16776:7;16766:180;;16821:4;16815:11;16867:16;16864:1;16859:3;16844:40;16914:16;16909:3;16902:29;16766:180;-1:-1:-1;;17025:1:0;17019:8;16974:16;;-1:-1:-1;17054:15:0;;:68;;17106:11;17121:1;17106:16;;17054:68;;;-1:-1:-1;;;;;17072:26:0;;;:31;17054:68;17050:148;;;17146:40;;-1:-1:-1;;;17146:40:0;;-1:-1:-1;;;;;178:32:1;;17146:40:0;;;160:51:1;133:18;;17146:40:0;14:203:1;222:180;281:6;334:2;322:9;313:7;309:23;305:32;302:52;;;350:1;347;340:12;302:52;-1:-1:-1;373:23:1;;222:180;-1:-1:-1;222:180:1:o;950:184::-;1020:6;1073:2;1061:9;1052:7;1048:23;1044:32;1041:52;;;1089:1;1086;1079:12;1041:52;-1:-1:-1;1112:16:1;;950:184;-1:-1:-1;950:184:1:o;1418:127::-;1479:10;1474:3;1470:20;1467:1;1460:31;1510:4;1507:1;1500:15;1534:4;1531:1;1524:15;1550:128;1617:9;;;1638:11;;;1635:37;;;1652:18;;:::i;:::-;1550:128;;;;:::o;2096:217::-;2136:1;2162;2152:132;;2206:10;2201:3;2197:20;2194:1;2187:31;2241:4;2238:1;2231:15;2269:4;2266:1;2259:15;2152:132;-1:-1:-1;2298:9:1;;2096:217::o;2318:168::-;2391:9;;;2422;;2439:15;;;2433:22;;2419:37;2409:71;;2460:18;;:::i

Swarm Source

ipfs://3401599c028a838bb62f66419da1be58683e0d4e53dea9f8ff480d55694ef423

Block Transaction 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
[ 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.