ETH Price: $3,469.20 (+2.99%)

Contract

0x20c166a17263E5E6Ee0211023538c626edD0974A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Staking Mint168323432023-03-15 9:14:35650 days ago1678871675IN
0x20c166a1...6edD0974A
0 ETH0.0039218821.23875848
Staking Mint168323392023-03-15 9:13:47650 days ago1678871627IN
0x20c166a1...6edD0974A
0 ETH0.0043274723.43520168
Staking Mint168323352023-03-15 9:12:59650 days ago1678871579IN
0x20c166a1...6edD0974A
0 ETH0.0039911121.61506167
Staking Mint168323162023-03-15 9:08:59650 days ago1678871339IN
0x20c166a1...6edD0974A
0 ETH0.0033323720.23189136
Staking Mint168181652023-03-13 9:25:11652 days ago1678699511IN
0x20c166a1...6edD0974A
0 ETH0.0037969420.56481604
Staking Mint167907812023-03-09 12:54:35656 days ago1678366475IN
0x20c166a1...6edD0974A
0 ETH0.0050675827.44503399
Staking Mint167907782023-03-09 12:53:59656 days ago1678366439IN
0x20c166a1...6edD0974A
0 ETH0.0050424227.30873935
Staking Mint167907742023-03-09 12:53:11656 days ago1678366391IN
0x20c166a1...6edD0974A
0 ETH0.0054020429.25827094
Staking Mint167907692023-03-09 12:51:59656 days ago1678366319IN
0x20c166a1...6edD0974A
0 ETH0.0046044127.9548574
New Staking Impl...167907622023-03-09 12:50:35656 days ago1678366235IN
0x20c166a1...6edD0974A
0 ETH0.0008563828.15392335

Latest 9 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
168323432023-03-15 9:14:35650 days ago1678871675
0x20c166a1...6edD0974A
 Contract Creation0 ETH
168323392023-03-15 9:13:47650 days ago1678871627
0x20c166a1...6edD0974A
 Contract Creation0 ETH
168323352023-03-15 9:12:59650 days ago1678871579
0x20c166a1...6edD0974A
 Contract Creation0 ETH
168323162023-03-15 9:08:59650 days ago1678871339
0x20c166a1...6edD0974A
 Contract Creation0 ETH
168181652023-03-13 9:25:11652 days ago1678699511
0x20c166a1...6edD0974A
 Contract Creation0 ETH
167907812023-03-09 12:54:35656 days ago1678366475
0x20c166a1...6edD0974A
 Contract Creation0 ETH
167907782023-03-09 12:53:59656 days ago1678366439
0x20c166a1...6edD0974A
 Contract Creation0 ETH
167907742023-03-09 12:53:11656 days ago1678366391
0x20c166a1...6edD0974A
 Contract Creation0 ETH
167907692023-03-09 12:51:59656 days ago1678366319
0x20c166a1...6edD0974A
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingRewardsFactory

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : StakingRewardsFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma experimental ABIEncoderV2;

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

/// @author YFLOW Team
/// @title StakingRewardsFactory
/// @notice Factory contract to create new instances
contract StakingRewardsFactory {
    using CloneLibrary for address;

    event NewStaking(address staking, address client);
    event FactoryOwnerChanged(address newowner);
    event NewStakingImplementation(address newstaking);

    address public factoryOwner;
    address public stakingImplementation;


    constructor(
        address _stakingImplementation
    )
    {
        require(_stakingImplementation != address(0), "No zero address for _stakingImplementation");

        factoryOwner = msg.sender;
        stakingImplementation = _stakingImplementation;

        emit FactoryOwnerChanged(factoryOwner);
        emit NewStakingImplementation(stakingImplementation);
    }

    function stakingMint(
        address _owner,
        address _rewardsDistribution,
        address _stakingToken,
        address _rewardToken,
        uint256 _lockTime
    )
    external
    returns(address staking)
    {
        staking = stakingImplementation.createClone();

        emit NewStaking(staking, msg.sender);

        IStakingRewardsImplementation(staking).initialize(
                _owner,
                _rewardsDistribution,
                _stakingToken,
                _rewardToken,
                _lockTime
        );
    }

    /**
     * @dev lets the owner change the current polygon implementation
     *
     * @param staking_ the address of the new implementation
    */
    function newStakingImplementation(address staking_) external {
        require(msg.sender == factoryOwner, "Only factory owner");
        require(staking_ != address(0), "No zero address for vesting_");

        stakingImplementation = staking_;
        emit NewStakingImplementation(staking_);
    }


    /**
     * @dev lets the owner change the ownership to another address
     *
     * @param newOwner the address of the new owner
    */
    function newFactoryOwner(address payable newOwner) external {
        require(msg.sender == factoryOwner, "Only factory owner");
        require(newOwner != address(0), "No zero address for newOwner");

        factoryOwner = newOwner;
        emit FactoryOwnerChanged(factoryOwner);
    }

    /**
     * receive function to receive funds
    */
    receive() external payable {}
}

interface IStakingRewardsImplementation {
    function initialize(
        address _owner,
        address _rewardsDistribution,
        address _stakingToken,
        address _rewardsToken,
        uint256 _lockTime
    ) external;
}

File 2 of 6 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 4 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

File 5 of 6 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 6 of 6 : CloneLibrary.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.6;

/*
The MIT License (MIT)
Copyright (c) 2018 Murray Software, LLC.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
//solhint-disable max-line-length
//solhint-disable no-inline-assembly


/**
 * EIP 1167 Proxy Deployment
 * Originally from https://github.com/optionality/clone-factory/
 */
library CloneLibrary {

    function createClone(address target) internal returns (address result) {
        // Reserve 55 bytes for the deploy code + 17 bytes as a buffer to prevent overwriting
        // other memory in the final mstore
        bytes memory cloneBuffer = new bytes(72);
        assembly {
            let clone := add(cloneBuffer, 32)
            mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(clone, 0x14), shl(96, target))
            mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            result := create(0, clone, 0x37)
        }
    }


    function isClone(address target, address query) internal view returns (bool result) {
        assembly {
            let clone := mload(0x40)
            mstore(clone, 0x363d3d373d3d3d363d7300000000000000000000000000000000000000000000)
            mstore(add(clone, 0xa), shl(96, target))
            mstore(add(clone, 0x1e), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)

            let other := add(clone, 0x40)
            extcodecopy(query, other, 0, 0x2d)
            result := and(
            eq(mload(clone), mload(other)),
            eq(mload(add(clone, 0xd)), mload(add(other, 0xd)))
            )
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stakingImplementation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newowner","type":"address"}],"name":"FactoryOwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staking","type":"address"},{"indexed":false,"internalType":"address","name":"client","type":"address"}],"name":"NewStaking","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newstaking","type":"address"}],"name":"NewStakingImplementation","type":"event"},{"inputs":[],"name":"factoryOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"newOwner","type":"address"}],"name":"newFactoryOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staking_","type":"address"}],"name":"newStakingImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_rewardsDistribution","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_lockTime","type":"uint256"}],"name":"stakingMint","outputs":[{"internalType":"address","name":"staking","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162000dcd38038062000dcd83398181016040528101906200003791906200024f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000a9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a09062000308565b60405180910390fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa678fcf08d9cdc9b47b42c20a6bd0ac7d1a4f40ba502c452fe1ed0c12dbb070360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516200017b91906200033b565b60405180910390a17f6c4896b6652ad30c37b60abf238ec4b98d82a2d50719735974d03f01f07b3689600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051620001d691906200033b565b60405180910390a15062000358565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200021782620001ea565b9050919050565b62000229816200020a565b81146200023557600080fd5b50565b60008151905062000249816200021e565b92915050565b600060208284031215620002685762000267620001e5565b5b6000620002788482850162000238565b91505092915050565b600082825260208201905092915050565b7f4e6f207a65726f206164647265737320666f72205f7374616b696e67496d706c60008201527f656d656e746174696f6e00000000000000000000000000000000000000000000602082015250565b6000620002f0602a8362000281565b9150620002fd8262000292565b604082019050919050565b600060208201905081810360008301526200032381620002e1565b9050919050565b62000335816200020a565b82525050565b60006020820190506200035260008301846200032a565b92915050565b610a6580620003686000396000f3fe60806040526004361061004e5760003560e01c80634273601c1461005a5780637e315e0b14610085578063b03aefc5146100ae578063cf60b669146100d7578063e19f8d241461011457610055565b3661005557005b600080fd5b34801561006657600080fd5b5061006f61013f565b60405161007c919061068b565b60405180910390f35b34801561009157600080fd5b506100ac60048036038101906100a791906106e9565b610163565b005b3480156100ba57600080fd5b506100d560048036038101906100d09190610742565b6102fa565b005b3480156100e357600080fd5b506100fe60048036038101906100f991906107a5565b610472565b60405161010b919061068b565b60405180910390f35b34801561012057600080fd5b5061012961056c565b604051610136919061068b565b60405180910390f35b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101e89061087d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610260576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610257906108e9565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa678fcf08d9cdc9b47b42c20a6bd0ac7d1a4f40ba502c452fe1ed0c12dbb070360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516102ef919061068b565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037f9061087d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036103f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ee90610955565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f6c4896b6652ad30c37b60abf238ec4b98d82a2d50719735974d03f01f07b368981604051610467919061068b565b60405180910390a150565b60006104b5600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610592565b90507f1670225398b7c267d85ba0ff79619a3e9d41ceab77073bb4a0c8ee48ddb20adf81336040516104e8929190610975565b60405180910390a18073ffffffffffffffffffffffffffffffffffffffff1663f7013ef687878787876040518663ffffffff1660e01b81526004016105319594939291906109ad565b600060405180830381600087803b15801561054b57600080fd5b505af115801561055f573d6000803e3d6000fd5b5050505095945050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080604867ffffffffffffffff8111156105b0576105af610a00565b5b6040519080825280601f01601f1916602001820160405280156105e25781602001600182028036833780820191505090505b509050602081017f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f092505050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006106758261064a565b9050919050565b6106858161066a565b82525050565b60006020820190506106a0600083018461067c565b92915050565b600080fd5b60006106b68261064a565b9050919050565b6106c6816106ab565b81146106d157600080fd5b50565b6000813590506106e3816106bd565b92915050565b6000602082840312156106ff576106fe6106a6565b5b600061070d848285016106d4565b91505092915050565b61071f8161066a565b811461072a57600080fd5b50565b60008135905061073c81610716565b92915050565b600060208284031215610758576107576106a6565b5b60006107668482850161072d565b91505092915050565b6000819050919050565b6107828161076f565b811461078d57600080fd5b50565b60008135905061079f81610779565b92915050565b600080600080600060a086880312156107c1576107c06106a6565b5b60006107cf8882890161072d565b95505060206107e08882890161072d565b94505060406107f18882890161072d565b93505060606108028882890161072d565b925050608061081388828901610790565b9150509295509295909350565b600082825260208201905092915050565b7f4f6e6c7920666163746f7279206f776e65720000000000000000000000000000600082015250565b6000610867601283610820565b915061087282610831565b602082019050919050565b600060208201905081810360008301526108968161085a565b9050919050565b7f4e6f207a65726f206164647265737320666f72206e65774f776e657200000000600082015250565b60006108d3601c83610820565b91506108de8261089d565b602082019050919050565b60006020820190508181036000830152610902816108c6565b9050919050565b7f4e6f207a65726f206164647265737320666f722076657374696e675f00000000600082015250565b600061093f601c83610820565b915061094a82610909565b602082019050919050565b6000602082019050818103600083015261096e81610932565b9050919050565b600060408201905061098a600083018561067c565b610997602083018461067c565b9392505050565b6109a78161076f565b82525050565b600060a0820190506109c2600083018861067c565b6109cf602083018761067c565b6109dc604083018661067c565b6109e9606083018561067c565b6109f6608083018461099e565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea26469706673582212209014027417287031a5a79b2ba2eceba084318e691c2d80822e9dd5fb5210fb0964736f6c63430008110033000000000000000000000000a5940da70f68afca24b38f6595e5d556da7fed88

Deployed Bytecode

0x60806040526004361061004e5760003560e01c80634273601c1461005a5780637e315e0b14610085578063b03aefc5146100ae578063cf60b669146100d7578063e19f8d241461011457610055565b3661005557005b600080fd5b34801561006657600080fd5b5061006f61013f565b60405161007c919061068b565b60405180910390f35b34801561009157600080fd5b506100ac60048036038101906100a791906106e9565b610163565b005b3480156100ba57600080fd5b506100d560048036038101906100d09190610742565b6102fa565b005b3480156100e357600080fd5b506100fe60048036038101906100f991906107a5565b610472565b60405161010b919061068b565b60405180910390f35b34801561012057600080fd5b5061012961056c565b604051610136919061068b565b60405180910390f35b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101e89061087d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610260576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610257906108e9565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa678fcf08d9cdc9b47b42c20a6bd0ac7d1a4f40ba502c452fe1ed0c12dbb070360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516102ef919061068b565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037f9061087d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036103f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ee90610955565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f6c4896b6652ad30c37b60abf238ec4b98d82a2d50719735974d03f01f07b368981604051610467919061068b565b60405180910390a150565b60006104b5600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610592565b90507f1670225398b7c267d85ba0ff79619a3e9d41ceab77073bb4a0c8ee48ddb20adf81336040516104e8929190610975565b60405180910390a18073ffffffffffffffffffffffffffffffffffffffff1663f7013ef687878787876040518663ffffffff1660e01b81526004016105319594939291906109ad565b600060405180830381600087803b15801561054b57600080fd5b505af115801561055f573d6000803e3d6000fd5b5050505095945050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080604867ffffffffffffffff8111156105b0576105af610a00565b5b6040519080825280601f01601f1916602001820160405280156105e25781602001600182028036833780820191505090505b509050602081017f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f092505050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006106758261064a565b9050919050565b6106858161066a565b82525050565b60006020820190506106a0600083018461067c565b92915050565b600080fd5b60006106b68261064a565b9050919050565b6106c6816106ab565b81146106d157600080fd5b50565b6000813590506106e3816106bd565b92915050565b6000602082840312156106ff576106fe6106a6565b5b600061070d848285016106d4565b91505092915050565b61071f8161066a565b811461072a57600080fd5b50565b60008135905061073c81610716565b92915050565b600060208284031215610758576107576106a6565b5b60006107668482850161072d565b91505092915050565b6000819050919050565b6107828161076f565b811461078d57600080fd5b50565b60008135905061079f81610779565b92915050565b600080600080600060a086880312156107c1576107c06106a6565b5b60006107cf8882890161072d565b95505060206107e08882890161072d565b94505060406107f18882890161072d565b93505060606108028882890161072d565b925050608061081388828901610790565b9150509295509295909350565b600082825260208201905092915050565b7f4f6e6c7920666163746f7279206f776e65720000000000000000000000000000600082015250565b6000610867601283610820565b915061087282610831565b602082019050919050565b600060208201905081810360008301526108968161085a565b9050919050565b7f4e6f207a65726f206164647265737320666f72206e65774f776e657200000000600082015250565b60006108d3601c83610820565b91506108de8261089d565b602082019050919050565b60006020820190508181036000830152610902816108c6565b9050919050565b7f4e6f207a65726f206164647265737320666f722076657374696e675f00000000600082015250565b600061093f601c83610820565b915061094a82610909565b602082019050919050565b6000602082019050818103600083015261096e81610932565b9050919050565b600060408201905061098a600083018561067c565b610997602083018461067c565b9392505050565b6109a78161076f565b82525050565b600060a0820190506109c2600083018861067c565b6109cf602083018761067c565b6109dc604083018661067c565b6109e9606083018561067c565b6109f6608083018461099e565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea26469706673582212209014027417287031a5a79b2ba2eceba084318e691c2d80822e9dd5fb5210fb0964736f6c63430008110033

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

000000000000000000000000a5940da70f68afca24b38f6595e5d556da7fed88

-----Decoded View---------------
Arg [0] : _stakingImplementation (address): 0xA5940da70f68aFcA24b38F6595E5d556DA7fEd88

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.