ETH Price: $2,691.20 (-1.60%)

Contract

0x669AbcbE9119Df3bf718bC7F16bB697c5B9A99a3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Enter129994632021-08-10 19:53:471284 days ago1628625227IN
0x669AbcbE...c5B9A99a3
0 ETH0.0552799271.92802293
Exit129966592021-08-10 9:48:401285 days ago1628588920IN
0x669AbcbE...c5B9A99a3
0 ETH0.0122371840.68402417
Set Cap129965782021-08-10 9:27:531285 days ago1628587673IN
0x669AbcbE...c5B9A99a3
0 ETH0.003449138
Upgrade To129962802021-08-10 8:25:101285 days ago1628583910IN
0x669AbcbE...c5B9A99a3
0 ETH0.0019061550
Upgrade To129961282021-08-10 7:45:521285 days ago1628581552IN
0x669AbcbE...c5B9A99a3
0 ETH0.0014482441
Upgrade To129961262021-08-10 7:45:341285 days ago1628581534IN
0x669AbcbE...c5B9A99a3
0 ETH0.0015630441
Exit129961172021-08-10 7:43:251285 days ago1628581405IN
0x669AbcbE...c5B9A99a3
0 ETH0.0226049544
Enter129961112021-08-10 7:41:331285 days ago1628581293IN
0x669AbcbE...c5B9A99a3
0 ETH0.0265630735
Enter129960572021-08-10 7:30:591285 days ago1628580659IN
0x669AbcbE...c5B9A99a3
0 ETH0.0156287633
Enter129959112021-08-10 6:59:131285 days ago1628578753IN
0x669AbcbE...c5B9A99a3
0 ETH0.039067250
Enter129958242021-08-10 6:39:131285 days ago1628577553IN
0x669AbcbE...c5B9A99a3
0 ETH0.0223571329.45723763
Enter129957802021-08-10 6:29:291285 days ago1628576969IN
0x669AbcbE...c5B9A99a3
0 ETH0.0207341527.31883861
Enter129956492021-08-10 6:01:101285 days ago1628575270IN
0x669AbcbE...c5B9A99a3
0 ETH0.0330484643
Enter129954912021-08-10 5:21:391285 days ago1628572899IN
0x669AbcbE...c5B9A99a3
0 ETH0.0209664444
Enter129954882021-08-10 5:20:411285 days ago1628572841IN
0x669AbcbE...c5B9A99a3
0 ETH0.0271964434.89605112
Enter129954672021-08-10 5:16:241285 days ago1628572584IN
0x669AbcbE...c5B9A99a3
0 ETH0.0043872337
Enter129954292021-08-10 5:08:351285 days ago1628572115IN
0x669AbcbE...c5B9A99a3
0 ETH0.0188720339.82291471
Enter129954232021-08-10 5:07:481285 days ago1628572068IN
0x669AbcbE...c5B9A99a3
0 ETH0.0281504438.57404167
Enter129954232021-08-10 5:07:481285 days ago1628572068IN
0x669AbcbE...c5B9A99a3
0 ETH0.0311742440
Enter129953672021-08-10 4:53:451285 days ago1628571225IN
0x669AbcbE...c5B9A99a3
0 ETH0.0280572436
Enter129952742021-08-10 4:32:521285 days ago1628569972IN
0x669AbcbE...c5B9A99a3
0 ETH0.0276979736.49420988
Enter129952682021-08-10 4:32:131285 days ago1628569933IN
0x669AbcbE...c5B9A99a3
0 ETH0.0016296737.11568812
Enter129952682021-08-10 4:32:131285 days ago1628569933IN
0x669AbcbE...c5B9A99a3
0 ETH0.0289115438.09318743
Enter129950642021-08-10 3:46:051285 days ago1628567165IN
0x669AbcbE...c5B9A99a3
0 ETH0.028590660
Exit129949292021-08-10 3:18:011285 days ago1628565481IN
0x669AbcbE...c5B9A99a3
0 ETH0.0206241838.85132613
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

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

Contract Name:
ForgeProxy

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 500 runs

Other Settings:
byzantium EvmVersion
File 1 of 4 : ForgeProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.9.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/proxy/Proxy.sol";
import "./OwnableStorage.sol";

contract ForgeProxy is Proxy{

    event Upgraded(address indexed implementation);

    bytes32 private constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
    bytes32 private constant _OWNABLE_STORAGE_SLOT = 0xb39836d625a4efe66fcfaa81a972ba97548a953a597399c161cd7df952bcf2e8;
    bytes32 private constant _INITIALIZE_SLOT = 0x5995627934808137c9bf9d6f83d56749658ca23d1b6461c2a912ee34403ccd6a;

    modifier isInitializer(){
        require( getInitialize() != 1, "Initializable: contract is already initialized");
        _;
    }

    modifier CheckAdmin(){
        require( OwnableStorage( _storage() ).isAdmin(msg.sender), "OWNABLE: 0x0" );
        _;
    }

    function initialize( address storage_, address implAddress ) public isInitializer{
        require(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
        require(_OWNABLE_STORAGE_SLOT == bytes32(uint256(keccak256("forge.proxy.ownablestrage")) - 1));
        require(_INITIALIZE_SLOT == bytes32(uint256(keccak256("forge.proxy.initialize")) - 1));

        _setImplementation(implAddress);
        _setStorage( storage_ );
        _setInitialize( );
    }

    function _setStorage( address storage_ ) internal {
        bytes32 slot = _OWNABLE_STORAGE_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, storage_)
        }
    }

    function _storage() internal view returns( address storageAddr ){
        bytes32 slot = _OWNABLE_STORAGE_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            storageAddr := sload(slot)
        }
    }

    function _implementation() internal view override returns (address impl) {
        bytes32 slot = _IMPLEMENTATION_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            impl := sload(slot)
        }
    }

    function upgradeTo(address newImplementation) public CheckAdmin {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    function _setImplementation(address newImplementation) private {
        require(Address.isContract(newImplementation), "ERC1967Proxy: new implementation is not a contract");

        bytes32 slot = _IMPLEMENTATION_SLOT;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, newImplementation)
        }
    }

    function _setInitialize( ) internal {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(_INITIALIZE_SLOT, 1)
        }
    }

    function getInitialize( ) private view returns (uint256 str) {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            str := sload( _INITIALIZE_SLOT )
        }
    }

}

File 2 of 4 : OwnableStorage.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.9.0;

contract OwnableStorage {

    address public _admin;
    address public _governance;

    constructor() payable {
        _admin = msg.sender;
        _governance = msg.sender;
    }

    function setAdmin( address account ) public {
        require( isAdmin( msg.sender ));
        _admin = account;
    }

    function setGovernance( address account ) public {
        require( isAdmin( msg.sender ) || isGovernance( msg.sender ));
        _admin = account;
    }

    function isAdmin( address account ) public view returns( bool ) {
        return account == _admin;
    }

    function isGovernance( address account ) public view returns( bool ) {
        return account == _admin;
    }

}

File 3 of 4 : Proxy.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 { revert(0, returndatasize()) }
            default { return(0, returndatasize()) }
        }
    }

    /**
     * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback () external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive () external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overriden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {
    }
}

File 4 of 4 : 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": 500
  },
  "evmVersion": "byzantium",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"storage_","type":"address"},{"internalType":"address","name":"implAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x608060405260043610610049577c010000000000000000000000000000000000000000000000000000000060003504633659cfe68114610060578063485cc9551461008057610058565b36610058576100566100a0565b005b6100566100a0565b34801561006c57600080fd5b5061005661007b36600461055c565b6100d2565b34801561008c57600080fd5b5061005661009b36600461057e565b61024b565b6100d06100cb7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b61045d565b565b7fb39836d625a4efe66fcfaa81a972ba97548a953a597399c161cd7df952bcf2e8546040517f24d7806c00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff91909116906324d7806c9060240160206040518083038186803b15801561015b57600080fd5b505afa15801561016f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019391906105b1565b6101fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4f574e41424c453a20307830000000000000000000000000000000000000000060448201526064015b60405180910390fd5b61020781610481565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7f5995627934808137c9bf9d6f83d56749658ca23d1b6461c2a912ee34403ccd6a54600114156102fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016101f5565b61032860017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd6105d3565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc1461035357600080fd5b61037e60017fb39836d625a4efe66fcfaa81a972ba97548a953a597399c161cd7df952bcf2e96105d3565b7fb39836d625a4efe66fcfaa81a972ba97548a953a597399c161cd7df952bcf2e8146103a957600080fd5b6103d460017f5995627934808137c9bf9d6f83d56749658ca23d1b6461c2a912ee34403ccd6b6105d3565b7f5995627934808137c9bf9d6f83d56749658ca23d1b6461c2a912ee34403ccd6a146103ff57600080fd5b61040881610481565b610430827fb39836d625a4efe66fcfaa81a972ba97548a953a597399c161cd7df952bcf2e855565b61045960017f5995627934808137c9bf9d6f83d56749658ca23d1b6461c2a912ee34403ccd6a55565b5050565b3660008037600080366000845af43d6000803e80801561047c573d6000f35b3d6000fd5b803b61050f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433139363750726f78793a206e657720696d706c656d656e746174696f6e60448201527f206973206e6f74206120636f6e7472616374000000000000000000000000000060648201526084016101f5565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b803573ffffffffffffffffffffffffffffffffffffffff8116811461055757600080fd5b919050565b60006020828403121561056e57600080fd5b61057782610533565b9392505050565b6000806040838503121561059157600080fd5b61059a83610533565b91506105a860208401610533565b90509250929050565b6000602082840312156105c357600080fd5b8151801515811461057757600080fd5b60008282101561060c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50039056fea26469706673582212208ea42bed55aaafd879935c1846c17d70eaae4b6eb14144a9221499685445aed564736f6c63430008060033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.