POL Price: $0.682349 (-2.97%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
438988832023-06-14 10:18:48542 days ago1686737928
0xB425aB12...B113DB12E
 Contract Creation0 POL
438895892023-06-14 4:36:38543 days ago1686717398
0xB425aB12...B113DB12E
 Contract Creation0 POL
410591482023-04-02 14:06:40615 days ago1680444400
0xB425aB12...B113DB12E
 Contract Creation0 POL
404296142023-03-16 23:32:28632 days ago1679009548
0xB425aB12...B113DB12E
 Contract Creation0 POL
368341272022-12-14 20:43:36724 days ago1671050616
0xB425aB12...B113DB12E
 Contract Creation0 POL
368335842022-12-14 20:21:50724 days ago1671049310
0xB425aB12...B113DB12E
 Contract Creation0 POL
368323062022-12-14 19:34:49724 days ago1671046489
0xB425aB12...B113DB12E
 Contract Creation0 POL
360980872022-11-26 16:54:36742 days ago1669481676
0xB425aB12...B113DB12E
 Contract Creation0 POL
356191942022-11-15 1:51:27754 days ago1668477087
0xB425aB12...B113DB12E
 Contract Creation0 POL
355950192022-11-14 11:54:09754 days ago1668426849
0xB425aB12...B113DB12E
 Contract Creation0 POL
355326582022-11-12 23:37:34756 days ago1668296254
0xB425aB12...B113DB12E
 Contract Creation0 POL
355323362022-11-12 23:26:30756 days ago1668295590
0xB425aB12...B113DB12E
 Contract Creation0 POL
353049842022-11-07 7:14:55762 days ago1667805295
0xB425aB12...B113DB12E
 Contract Creation0 POL
352957902022-11-07 1:58:47762 days ago1667786327
0xB425aB12...B113DB12E
 Contract Creation0 POL
349478462022-10-29 13:55:19770 days ago1667051719
0xB425aB12...B113DB12E
 Contract Creation0 POL
344102282022-10-16 9:05:47783 days ago1665911147
0xB425aB12...B113DB12E
 Contract Creation0 POL
341973512022-10-11 5:35:24789 days ago1665466524
0xB425aB12...B113DB12E
 Contract Creation0 POL
333994142022-09-21 21:56:01808 days ago1663797361
0xB425aB12...B113DB12E
 Contract Creation0 POL
332432922022-09-18 2:30:43812 days ago1663468243
0xB425aB12...B113DB12E
 Contract Creation0 POL
328576792022-09-08 19:18:45821 days ago1662664725
0xB425aB12...B113DB12E
 Contract Creation0 POL
311928832022-07-27 10:13:33864 days ago1658916813
0xB425aB12...B113DB12E
 Contract Creation0 POL
307013572022-07-14 3:43:29878 days ago1657770209
0xB425aB12...B113DB12E
 Contract Creation0 POL
306529592022-07-12 19:44:24879 days ago1657655064
0xB425aB12...B113DB12E
 Contract Creation0 POL
305963732022-07-11 8:40:11881 days ago1657528811
0xB425aB12...B113DB12E
 Contract Creation0 POL
300421042022-06-27 2:04:05895 days ago1656295445
0xB425aB12...B113DB12E
 Contract Creation0 POL
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ERC20StakingModuleFactory

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 9 : ERC20StakingModuleFactory.sol
/*
ERC20StakingModuleFactory

https://github.com/gysr-io/core

SPDX-License-Identifier: MIT
*/

pragma solidity 0.8.4;

import "./interfaces/IModuleFactory.sol";
import "./ERC20StakingModule.sol";

/**
 * @title ERC20 staking module factory
 *
 * @notice this factory contract handles deployment for the
 * ERC20StakingModule contract
 *
 * @dev it is called by the parent PoolFactory and is responsible
 * for parsing constructor arguments before creating a new contract
 */
contract ERC20StakingModuleFactory is IModuleFactory {
    /**
     * @inheritdoc IModuleFactory
     */
    function createModule(bytes calldata data)
        external
        override
        returns (address)
    {
        // validate
        require(data.length == 32, "smf1");

        // parse staking token
        address token;
        assembly {
            token := calldataload(68)
        }

        // create module
        ERC20StakingModule module =
            new ERC20StakingModule(token, address(this));
        module.transferOwnership(msg.sender);

        // output
        emit ModuleCreated(msg.sender, address(module));
        return address(module);
    }
}

File 2 of 9 : ERC20StakingModule.sol
/*
ERC20StakingModule

https://github.com/gysr-io/core

SPDX-License-Identifier: MIT
*/

pragma solidity 0.8.4;

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

import "./interfaces/IStakingModule.sol";

/**
 * @title ERC20 staking module
 *
 * @notice this staking module allows users to deposit an amount of ERC20 token
 * in exchange for shares credited to their address. When the user
 * unstakes, these shares will be burned and a reward will be distributed.
 */
contract ERC20StakingModule is IStakingModule {
    using SafeERC20 for IERC20;

    // constant
    uint256 public constant INITIAL_SHARES_PER_TOKEN = 10**6;

    // members
    IERC20 private immutable _token;
    address private immutable _factory;

    mapping(address => uint256) public shares;
    uint256 public totalShares;

    /**
     * @param token_ the token that will be rewarded
     */
    constructor(address token_, address factory_) {
        _token = IERC20(token_);
        _factory = factory_;
    }

    /**
     * @inheritdoc IStakingModule
     */
    function tokens()
        external
        view
        override
        returns (address[] memory tokens_)
    {
        tokens_ = new address[](1);
        tokens_[0] = address(_token);
    }

    /**
     * @inheritdoc IStakingModule
     */
    function balances(address user)
        external
        view
        override
        returns (uint256[] memory balances_)
    {
        balances_ = new uint256[](1);
        balances_[0] = _balance(user);
    }

    /**
     * @inheritdoc IStakingModule
     */
    function factory() external view override returns (address) {
        return _factory;
    }

    /**
     * @inheritdoc IStakingModule
     */
    function totals()
        external
        view
        override
        returns (uint256[] memory totals_)
    {
        totals_ = new uint256[](1);
        totals_[0] = _token.balanceOf(address(this));
    }

    /**
     * @inheritdoc IStakingModule
     */
    function stake(
        address user,
        uint256 amount,
        bytes calldata
    ) external override onlyOwner returns (address, uint256) {
        // validate
        require(amount > 0, "sm1");

        // transfer
        uint256 total = _token.balanceOf(address(this));
        _token.safeTransferFrom(user, address(this), amount);
        uint256 actual = _token.balanceOf(address(this)) - total;

        // mint staking shares at current rate
        uint256 minted =
            (totalShares > 0)
                ? (totalShares * actual) / total
                : actual * INITIAL_SHARES_PER_TOKEN;
        require(minted > 0, "sm2");

        // update user staking info
        shares[user] += minted;

        // add newly minted shares to global total
        totalShares += minted;

        emit Staked(user, address(_token), amount, minted);

        return (user, minted);
    }

    /**
     * @inheritdoc IStakingModule
     */
    function unstake(
        address user,
        uint256 amount,
        bytes calldata
    ) external override onlyOwner returns (address, uint256) {
        // validate and get shares
        uint256 burned = _shares(user, amount);

        // burn shares
        totalShares -= burned;
        shares[user] -= burned;

        // unstake
        _token.safeTransfer(user, amount);

        emit Unstaked(user, address(_token), amount, burned);

        return (user, burned);
    }

    /**
     * @inheritdoc IStakingModule
     */
    function claim(
        address user,
        uint256 amount,
        bytes calldata
    ) external override onlyOwner returns (address, uint256) {
        uint256 s = _shares(user, amount);
        emit Claimed(user, address(_token), amount, s);
        return (user, s);
    }

    /**
     * @inheritdoc IStakingModule
     */
    function update(address) external override {}

    /**
     * @inheritdoc IStakingModule
     */
    function clean() external override {}

    /**
     * @dev internal helper to get user balance
     * @param user address of interest
     */
    function _balance(address user) private view returns (uint256) {
        if (totalShares == 0) {
            return 0;
        }
        return (_token.balanceOf(address(this)) * shares[user]) / totalShares;
    }

    /**
     * @dev internal helper to validate and convert user stake amount to shares
     * @param user address of user
     * @param amount number of tokens to consider
     * @return shares_ equivalent number of shares
     */
    function _shares(address user, uint256 amount)
        private
        view
        returns (uint256 shares_)
    {
        // validate
        require(amount > 0, "sm3");
        require(totalShares > 0, "sm4");

        // convert token amount to shares
        shares_ = (totalShares * amount) / _token.balanceOf(address(this));

        require(shares_ > 0, "sm5");
        require(shares[user] >= shares_, "sm6");
    }
}

File 3 of 9 : OwnerController.sol
/*
OwnerController

https://github.com/gysr-io/core

SPDX-License-Identifier: MIT
*/

pragma solidity 0.8.4;

/**
 * @title Owner controller
 *
 * @notice this base contract implements an owner-controller access model.
 *
 * @dev the contract is an adapted version of the OpenZeppelin Ownable contract.
 * It allows the owner to designate an additional account as the controller to
 * perform restricted operations.
 *
 * Other changes include supporting role verification with a require method
 * in addition to the modifier option, and removing some unneeded functionality.
 *
 * Original contract here:
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
 */
contract OwnerController {
    address private _owner;
    address private _controller;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    event ControlTransferred(
        address indexed previousController,
        address indexed newController
    );

    constructor() {
        _owner = msg.sender;
        _controller = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
        emit ControlTransferred(address(0), _owner);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Returns the address of the current controller.
     */
    function controller() public view returns (address) {
        return _controller;
    }

    /**
     * @dev Modifier that throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == msg.sender, "oc1");
        _;
    }

    /**
     * @dev Modifier that throws if called by any account other than the controller.
     */
    modifier onlyController() {
        require(_controller == msg.sender, "oc2");
        _;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    function requireOwner() internal view {
        require(_owner == msg.sender, "oc1");
    }

    /**
     * @dev Throws if called by any account other than the controller.
     */
    function requireController() internal view {
        require(_controller == msg.sender, "oc2");
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`). This can
     * include renouncing ownership by transferring to the zero address.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual {
        requireOwner();
        require(newOwner != address(0), "oc3");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }

    /**
     * @dev Transfers control of the contract to a new account (`newController`).
     * Can only be called by the owner.
     */
    function transferControl(address newController) public virtual {
        requireOwner();
        require(newController != address(0), "oc4");
        emit ControlTransferred(_controller, newController);
        _controller = newController;
    }
}

File 4 of 9 : IEvents.sol
/*
IEvents

https://github.com/gysr-io/core

SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.4;

/**
 * @title GYSR event system
 *
 * @notice common interface to define GYSR event system
 */
interface IEvents {
    // staking
    event Staked(
        address indexed user,
        address indexed token,
        uint256 amount,
        uint256 shares
    );
    event Unstaked(
        address indexed user,
        address indexed token,
        uint256 amount,
        uint256 shares
    );
    event Claimed(
        address indexed user,
        address indexed token,
        uint256 amount,
        uint256 shares
    );

    // rewards
    event RewardsDistributed(
        address indexed user,
        address indexed token,
        uint256 amount,
        uint256 shares
    );
    event RewardsFunded(
        address indexed token,
        uint256 amount,
        uint256 shares,
        uint256 timestamp
    );
    event RewardsUnlocked(address indexed token, uint256 shares);
    event RewardsExpired(
        address indexed token,
        uint256 amount,
        uint256 shares,
        uint256 timestamp
    );

    // gysr
    event GysrSpent(address indexed user, uint256 amount);
    event GysrVested(address indexed user, uint256 amount);
    event GysrWithdrawn(uint256 amount);
}

File 5 of 9 : IModuleFactory.sol
/*
IModuleFactory

https://github.com/gysr-io/core

SPDX-License-Identifier: MIT
*/

pragma solidity 0.8.4;

/**
 * @title Module factory interface
 *
 * @notice this defines the common module factory interface used by the
 * main factory to create the staking and reward modules for a new Pool.
 */
interface IModuleFactory {
    // events
    event ModuleCreated(address indexed user, address module);

    /**
     * @notice create a new Pool module
     * @param data binary encoded construction parameters
     * @return address of newly created module
     */
    function createModule(bytes calldata data) external returns (address);
}

File 6 of 9 : IStakingModule.sol
/*
IStakingModule

https://github.com/gysr-io/core

SPDX-License-Identifier: MIT
*/

pragma solidity 0.8.4;

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

import "./IEvents.sol";

import "../OwnerController.sol";

/**
 * @title Staking module interface
 *
 * @notice this contract defines the common interface that any staking module
 * must implement to be compatible with the modular Pool architecture.
 */
abstract contract IStakingModule is OwnerController, IEvents {
    // constants
    uint256 public constant DECIMALS = 18;

    /**
     * @return array of staking tokens
     */
    function tokens() external view virtual returns (address[] memory);

    /**
     * @notice get balance of user
     * @param user address of user
     * @return balances of each staking token
     */
    function balances(address user)
        external
        view
        virtual
        returns (uint256[] memory);

    /**
     * @return address of module factory
     */
    function factory() external view virtual returns (address);

    /**
     * @notice get total staked amount
     * @return totals for each staking token
     */
    function totals() external view virtual returns (uint256[] memory);

    /**
     * @notice stake an amount of tokens for user
     * @param user address of user
     * @param amount number of tokens to stake
     * @param data additional data
     * @return address of staking account
     * @return number of shares minted for stake
     */
    function stake(
        address user,
        uint256 amount,
        bytes calldata data
    ) external virtual returns (address, uint256);

    /**
     * @notice unstake an amount of tokens for user
     * @param user address of user
     * @param amount number of tokens to unstake
     * @param data additional data
     * @return address of staking account
     * @return number of shares burned for unstake
     */
    function unstake(
        address user,
        uint256 amount,
        bytes calldata data
    ) external virtual returns (address, uint256);

    /**
     * @notice quote the share value for an amount of tokens without unstaking
     * @param user address of user
     * @param amount number of tokens to claim with
     * @param data additional data
     * @return address of staking account
     * @return number of shares that the claim amount is worth
     */
    function claim(
        address user,
        uint256 amount,
        bytes calldata data
    ) external virtual returns (address, uint256);

    /**
     * @notice method called by anyone to update accounting
     * @param user address of user for update
     * @dev will only be called ad hoc and should not contain essential logic
     */
    function update(address user) external virtual;

    /**
     * @notice method called by owner to clean up and perform additional accounting
     * @dev will only be called ad hoc and should not contain any essential logic
     */
    function clean() external virtual;
}

File 7 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

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

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

File 8 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 9 of 9 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"module","type":"address"}],"name":"ModuleCreated","type":"event"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"createModule","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50611cb5806100206000396000f3fe608060405234801561001057600080fd5b506004361061002a5760003560e01c8062ee8fe51461002f575b600080fd5b61004261003d36600461021c565b61006b565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000602082146100e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100d99060208082526004908201527f736d663100000000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390fd5b60006044359050600081306040516100f99061020f565b73ffffffffffffffffffffffffffffffffffffffff928316815291166020820152604001604051809103906000f080158015610139573d6000803e3d6000fd5b506040517ff2fde38b00000000000000000000000000000000000000000000000000000000815233600482015290915073ffffffffffffffffffffffffffffffffffffffff82169063f2fde38b90602401600060405180830381600087803b1580156101a457600080fd5b505af11580156101b8573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841681523392507ff708942ec477396a151a5285651961dcab8e8a82ea4f5b31a5236f92f6c92710915060200160405180910390a2949350505050565b6119f68061028a83390190565b6000806020838503121561022e578182fd5b823567ffffffffffffffff80821115610245578384fd5b818501915085601f830112610258578384fd5b813581811115610266578485fd5b866020828501011115610277578485fd5b6020929092019691955090935050505056fe60c06040523480156200001157600080fd5b50604051620019f6380380620019f68339810160408190526200003491620000f5565b60008054336001600160a01b0319918216811783556001805490921681179091556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600080546040516001600160a01b0390911691907fa06677f7b64342b4bcbde423684dbdb5356acfe41ad0285b6ecbe6dc4bf427f2908290a36001600160601b0319606092831b8116608052911b1660a0526200012c565b80516001600160a01b0381168114620000f057600080fd5b919050565b6000806040838503121562000108578182fd5b6200011383620000d8565b91506200012360208401620000d8565b90509250929050565b60805160601c60a05160601c6118586200019e6000396000610251015260008181610436015281816104e101528181610551015281816106d7015281816108a70152818161096301528181610a4a01528181610c0601528181610c2f01528181610e1f01526110cd01526118586000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c80639d63848a116100b2578063ce7c2ac211610081578063f2fde38b11610066578063f2fde38b1461029f578063f77c4791146102b2578063fc4333cd1461013157600080fd5b8063ce7c2ac214610275578063dc16ceb91461029557600080fd5b80639d63848a1461021f578063c038a38e14610234578063c4113b881461023c578063c45a01551461024f57600080fd5b80633e12170f116100ee5780633e12170f1461017b5780636d16fa41146101ba5780638da5cb5b146101cd5780638f0bc1521461020c57600080fd5b80631c1b87721461012057806327e235e3146101335780632e0f26251461015c5780633a98ef3914610172575b600080fd5b61013161012e36600461154f565b50565b005b61014661014136600461154f565b6102d0565b6040516101539190611699565b60405180910390f35b610164601281565b604051908152602001610153565b61016460035481565b61018e610189366004611569565b610346565b6040805173ffffffffffffffffffffffffffffffffffffffff9093168352602083019190915201610153565b6101316101c836600461154f565b610734565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610153565b61018e61021a366004611569565b61082d565b61022761093f565b604051610153919061163f565b6101466109f9565b61018e61024a366004611569565b610b22565b7f00000000000000000000000000000000000000000000000000000000000000006101e7565b61016461028336600461154f565b60026020526000908152604090205481565b610164620f424081565b6101316102ad36600461154f565b610cb5565b60015473ffffffffffffffffffffffffffffffffffffffff166101e7565b604080516001808252818301909252606091602080830190803683370190505090506102fb82610daf565b81600081518110610335577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050919050565b60008054819073ffffffffffffffffffffffffffffffffffffffff1633146103b55760405162461bcd60e51b815260206004820152600360248201527f6f6331000000000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600085116104055760405162461bcd60e51b815260206004820152600360248201527f736d31000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561048d57600080fd5b505afa1580156104a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c5919061160b565b905061050973ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016883089610eb3565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090829073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561059357600080fd5b505afa1580156105a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cb919061160b565b6105d591906117b0565b9050600080600354116105f4576105ef620f424083611773565b61060d565b82826003546106039190611773565b61060d919061173a565b90506000811161065f5760405162461bcd60e51b815260206004820152600360248201527f736d32000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b73ffffffffffffffffffffffffffffffffffffffff891660009081526002602052604081208054839290610694908490611722565b9250508190555080600360008282546106ad9190611722565b9091555050604080518981526020810183905273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811692908c16917f6c86f3fd5118b3aa8bb4f389a617046de0a3d3d477de1a1673d227f802f616dc910160405180910390a397989650505050505050565b61073c610f95565b73ffffffffffffffffffffffffffffffffffffffff811661079f5760405162461bcd60e51b815260206004820152600360248201527f6f6334000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907fa06677f7b64342b4bcbde423684dbdb5356acfe41ad0285b6ecbe6dc4bf427f290600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008054819073ffffffffffffffffffffffffffffffffffffffff1633146108975760405162461bcd60e51b815260206004820152600360248201527f6f6331000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b60006108a38787610ffc565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f2f6639d24651730c7bf57c95ddbf96d66d11477e4ec626876f92c22e5f365e68888460405161092d929190918252602082015260400190565b60405180910390a39596945050505050565b604080516001808252818301909252606091602080830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106109bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505090565b60408051600180825281830190925260609160208083019080368337019050506040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015610aa157600080fd5b505afa158015610ab5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad9919061160b565b81600081518110610b13577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505090565b60008054819073ffffffffffffffffffffffffffffffffffffffff163314610b8c5760405162461bcd60e51b815260206004820152600360248201527f6f6331000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b6000610b988787610ffc565b90508060036000828254610bac91906117b0565b909155505073ffffffffffffffffffffffffffffffffffffffff871660009081526002602052604081208054839290610be69084906117b0565b90915550610c2d905073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016888861123b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f06cc7e90b4f2b554a9614b0caa84f909f3498c820ae47c731f490c28c07f7d3b888460405161092d929190918252602082015260400190565b610cbd610f95565b73ffffffffffffffffffffffffffffffffffffffff8116610d205760405162461bcd60e51b815260206004820152600360248201527f6f6333000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b565b600060035460001415610dc457506000919050565b60035473ffffffffffffffffffffffffffffffffffffffff838116600090815260026020526040908190205490517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290917f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610e6157600080fd5b505afa158015610e75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e99919061160b565b610ea39190611773565b610ead919061173a565b92915050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610f8f9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611296565b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610dad5760405162461bcd60e51b815260206004820152600360248201527f6f6331000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b600080821161104d5760405162461bcd60e51b815260206004820152600360248201527f736d33000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b60006003541161109f5760405162461bcd60e51b815260206004820152600360248201527f736d34000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561112457600080fd5b505afa158015611138573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115c919061160b565b8260035461116a9190611773565b611174919061173a565b9050600081116111c65760405162461bcd60e51b815260206004820152600360248201527f736d35000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260026020526040902054811115610ead5760405162461bcd60e51b815260206004820152600360248201527f736d36000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526112919084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610f0d565b505050565b60006112f8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166113889092919063ffffffff16565b805190915015611291578080602001905181019061131691906115eb565b6112915760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016103ac565b606061139784846000856113a1565b90505b9392505050565b6060824710156114195760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016103ac565b843b6114675760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103ac565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114909190611623565b60006040518083038185875af1925050503d80600081146114cd576040519150601f19603f3d011682016040523d82523d6000602084013e6114d2565b606091505b50915091506114e28282866114ed565b979650505050505050565b606083156114fc57508161139a565b82511561150c5782518084602001fd5b8160405162461bcd60e51b81526004016103ac91906116d1565b803573ffffffffffffffffffffffffffffffffffffffff8116811461154a57600080fd5b919050565b600060208284031215611560578081fd5b61139a82611526565b6000806000806060858703121561157e578283fd5b61158785611526565b935060208501359250604085013567ffffffffffffffff808211156115aa578384fd5b818701915087601f8301126115bd578384fd5b8135818111156115cb578485fd5b8860208285010111156115dc578485fd5b95989497505060200194505050565b6000602082840312156115fc578081fd5b8151801515811461139a578182fd5b60006020828403121561161c578081fd5b5051919050565b600082516116358184602087016117c7565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b8181101561168d57835173ffffffffffffffffffffffffffffffffffffffff168352928401929184019160010161165b565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561168d578351835292840192918401916001016116b5565b60208152600082518060208401526116f08160408501602087016117c7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008219821115611735576117356117f3565b500190565b60008261176e577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156117ab576117ab6117f3565b500290565b6000828210156117c2576117c26117f3565b500390565b60005b838110156117e25781810151838201526020016117ca565b83811115610f8f5750506000910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea2646970667358221220d36d6ba247a507f50fd4079551fa1add4aabf0d9e3f2c3ced5ef48b30e8bfdea64736f6c63430008040033a2646970667358221220c492aa4a0494dfaea670befc02b65ae63aadd76ed1fd32ed7e0995bf29e8fb8f64736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002a5760003560e01c8062ee8fe51461002f575b600080fd5b61004261003d36600461021c565b61006b565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000602082146100e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100d99060208082526004908201527f736d663100000000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390fd5b60006044359050600081306040516100f99061020f565b73ffffffffffffffffffffffffffffffffffffffff928316815291166020820152604001604051809103906000f080158015610139573d6000803e3d6000fd5b506040517ff2fde38b00000000000000000000000000000000000000000000000000000000815233600482015290915073ffffffffffffffffffffffffffffffffffffffff82169063f2fde38b90602401600060405180830381600087803b1580156101a457600080fd5b505af11580156101b8573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841681523392507ff708942ec477396a151a5285651961dcab8e8a82ea4f5b31a5236f92f6c92710915060200160405180910390a2949350505050565b6119f68061028a83390190565b6000806020838503121561022e578182fd5b823567ffffffffffffffff80821115610245578384fd5b818501915085601f830112610258578384fd5b813581811115610266578485fd5b866020828501011115610277578485fd5b6020929092019691955090935050505056fe60c06040523480156200001157600080fd5b50604051620019f6380380620019f68339810160408190526200003491620000f5565b60008054336001600160a01b0319918216811783556001805490921681179091556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600080546040516001600160a01b0390911691907fa06677f7b64342b4bcbde423684dbdb5356acfe41ad0285b6ecbe6dc4bf427f2908290a36001600160601b0319606092831b8116608052911b1660a0526200012c565b80516001600160a01b0381168114620000f057600080fd5b919050565b6000806040838503121562000108578182fd5b6200011383620000d8565b91506200012360208401620000d8565b90509250929050565b60805160601c60a05160601c6118586200019e6000396000610251015260008181610436015281816104e101528181610551015281816106d7015281816108a70152818161096301528181610a4a01528181610c0601528181610c2f01528181610e1f01526110cd01526118586000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c80639d63848a116100b2578063ce7c2ac211610081578063f2fde38b11610066578063f2fde38b1461029f578063f77c4791146102b2578063fc4333cd1461013157600080fd5b8063ce7c2ac214610275578063dc16ceb91461029557600080fd5b80639d63848a1461021f578063c038a38e14610234578063c4113b881461023c578063c45a01551461024f57600080fd5b80633e12170f116100ee5780633e12170f1461017b5780636d16fa41146101ba5780638da5cb5b146101cd5780638f0bc1521461020c57600080fd5b80631c1b87721461012057806327e235e3146101335780632e0f26251461015c5780633a98ef3914610172575b600080fd5b61013161012e36600461154f565b50565b005b61014661014136600461154f565b6102d0565b6040516101539190611699565b60405180910390f35b610164601281565b604051908152602001610153565b61016460035481565b61018e610189366004611569565b610346565b6040805173ffffffffffffffffffffffffffffffffffffffff9093168352602083019190915201610153565b6101316101c836600461154f565b610734565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610153565b61018e61021a366004611569565b61082d565b61022761093f565b604051610153919061163f565b6101466109f9565b61018e61024a366004611569565b610b22565b7f00000000000000000000000000000000000000000000000000000000000000006101e7565b61016461028336600461154f565b60026020526000908152604090205481565b610164620f424081565b6101316102ad36600461154f565b610cb5565b60015473ffffffffffffffffffffffffffffffffffffffff166101e7565b604080516001808252818301909252606091602080830190803683370190505090506102fb82610daf565b81600081518110610335577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050919050565b60008054819073ffffffffffffffffffffffffffffffffffffffff1633146103b55760405162461bcd60e51b815260206004820152600360248201527f6f6331000000000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600085116104055760405162461bcd60e51b815260206004820152600360248201527f736d31000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561048d57600080fd5b505afa1580156104a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c5919061160b565b905061050973ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016883089610eb3565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090829073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561059357600080fd5b505afa1580156105a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cb919061160b565b6105d591906117b0565b9050600080600354116105f4576105ef620f424083611773565b61060d565b82826003546106039190611773565b61060d919061173a565b90506000811161065f5760405162461bcd60e51b815260206004820152600360248201527f736d32000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b73ffffffffffffffffffffffffffffffffffffffff891660009081526002602052604081208054839290610694908490611722565b9250508190555080600360008282546106ad9190611722565b9091555050604080518981526020810183905273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811692908c16917f6c86f3fd5118b3aa8bb4f389a617046de0a3d3d477de1a1673d227f802f616dc910160405180910390a397989650505050505050565b61073c610f95565b73ffffffffffffffffffffffffffffffffffffffff811661079f5760405162461bcd60e51b815260206004820152600360248201527f6f6334000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907fa06677f7b64342b4bcbde423684dbdb5356acfe41ad0285b6ecbe6dc4bf427f290600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008054819073ffffffffffffffffffffffffffffffffffffffff1633146108975760405162461bcd60e51b815260206004820152600360248201527f6f6331000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b60006108a38787610ffc565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f2f6639d24651730c7bf57c95ddbf96d66d11477e4ec626876f92c22e5f365e68888460405161092d929190918252602082015260400190565b60405180910390a39596945050505050565b604080516001808252818301909252606091602080830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106109bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505090565b60408051600180825281830190925260609160208083019080368337019050506040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015610aa157600080fd5b505afa158015610ab5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad9919061160b565b81600081518110610b13577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505090565b60008054819073ffffffffffffffffffffffffffffffffffffffff163314610b8c5760405162461bcd60e51b815260206004820152600360248201527f6f6331000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b6000610b988787610ffc565b90508060036000828254610bac91906117b0565b909155505073ffffffffffffffffffffffffffffffffffffffff871660009081526002602052604081208054839290610be69084906117b0565b90915550610c2d905073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016888861123b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f06cc7e90b4f2b554a9614b0caa84f909f3498c820ae47c731f490c28c07f7d3b888460405161092d929190918252602082015260400190565b610cbd610f95565b73ffffffffffffffffffffffffffffffffffffffff8116610d205760405162461bcd60e51b815260206004820152600360248201527f6f6333000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b565b600060035460001415610dc457506000919050565b60035473ffffffffffffffffffffffffffffffffffffffff838116600090815260026020526040908190205490517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290917f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610e6157600080fd5b505afa158015610e75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e99919061160b565b610ea39190611773565b610ead919061173a565b92915050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610f8f9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611296565b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610dad5760405162461bcd60e51b815260206004820152600360248201527f6f6331000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b600080821161104d5760405162461bcd60e51b815260206004820152600360248201527f736d33000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b60006003541161109f5760405162461bcd60e51b815260206004820152600360248201527f736d34000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561112457600080fd5b505afa158015611138573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115c919061160b565b8260035461116a9190611773565b611174919061173a565b9050600081116111c65760405162461bcd60e51b815260206004820152600360248201527f736d35000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260026020526040902054811115610ead5760405162461bcd60e51b815260206004820152600360248201527f736d36000000000000000000000000000000000000000000000000000000000060448201526064016103ac565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526112919084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610f0d565b505050565b60006112f8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166113889092919063ffffffff16565b805190915015611291578080602001905181019061131691906115eb565b6112915760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016103ac565b606061139784846000856113a1565b90505b9392505050565b6060824710156114195760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016103ac565b843b6114675760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103ac565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114909190611623565b60006040518083038185875af1925050503d80600081146114cd576040519150601f19603f3d011682016040523d82523d6000602084013e6114d2565b606091505b50915091506114e28282866114ed565b979650505050505050565b606083156114fc57508161139a565b82511561150c5782518084602001fd5b8160405162461bcd60e51b81526004016103ac91906116d1565b803573ffffffffffffffffffffffffffffffffffffffff8116811461154a57600080fd5b919050565b600060208284031215611560578081fd5b61139a82611526565b6000806000806060858703121561157e578283fd5b61158785611526565b935060208501359250604085013567ffffffffffffffff808211156115aa578384fd5b818701915087601f8301126115bd578384fd5b8135818111156115cb578485fd5b8860208285010111156115dc578485fd5b95989497505060200194505050565b6000602082840312156115fc578081fd5b8151801515811461139a578182fd5b60006020828403121561161c578081fd5b5051919050565b600082516116358184602087016117c7565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b8181101561168d57835173ffffffffffffffffffffffffffffffffffffffff168352928401929184019160010161165b565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561168d578351835292840192918401916001016116b5565b60208152600082518060208401526116f08160408501602087016117c7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008219821115611735576117356117f3565b500190565b60008261176e577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156117ab576117ab6117f3565b500290565b6000828210156117c2576117c26117f3565b500390565b60005b838110156117e25781810151838201526020016117ca565b83811115610f8f5750506000910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea2646970667358221220d36d6ba247a507f50fd4079551fa1add4aabf0d9e3f2c3ced5ef48b30e8bfdea64736f6c63430008040033a2646970667358221220c492aa4a0494dfaea670befc02b65ae63aadd76ed1fd32ed7e0995bf29e8fb8f64736f6c63430008040033

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.