Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 55 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Enter | 12999463 | 1284 days ago | IN | 0 ETH | 0.05527992 | ||||
Exit | 12996659 | 1285 days ago | IN | 0 ETH | 0.01223718 | ||||
Set Cap | 12996578 | 1285 days ago | IN | 0 ETH | 0.0034491 | ||||
Upgrade To | 12996280 | 1285 days ago | IN | 0 ETH | 0.00190615 | ||||
Upgrade To | 12996128 | 1285 days ago | IN | 0 ETH | 0.00144824 | ||||
Upgrade To | 12996126 | 1285 days ago | IN | 0 ETH | 0.00156304 | ||||
Exit | 12996117 | 1285 days ago | IN | 0 ETH | 0.02260495 | ||||
Enter | 12996111 | 1285 days ago | IN | 0 ETH | 0.02656307 | ||||
Enter | 12996057 | 1285 days ago | IN | 0 ETH | 0.01562876 | ||||
Enter | 12995911 | 1285 days ago | IN | 0 ETH | 0.0390672 | ||||
Enter | 12995824 | 1285 days ago | IN | 0 ETH | 0.02235713 | ||||
Enter | 12995780 | 1285 days ago | IN | 0 ETH | 0.02073415 | ||||
Enter | 12995649 | 1285 days ago | IN | 0 ETH | 0.03304846 | ||||
Enter | 12995491 | 1285 days ago | IN | 0 ETH | 0.02096644 | ||||
Enter | 12995488 | 1285 days ago | IN | 0 ETH | 0.02719644 | ||||
Enter | 12995467 | 1285 days ago | IN | 0 ETH | 0.00438723 | ||||
Enter | 12995429 | 1285 days ago | IN | 0 ETH | 0.01887203 | ||||
Enter | 12995423 | 1285 days ago | IN | 0 ETH | 0.02815044 | ||||
Enter | 12995423 | 1285 days ago | IN | 0 ETH | 0.03117424 | ||||
Enter | 12995367 | 1285 days ago | IN | 0 ETH | 0.02805724 | ||||
Enter | 12995274 | 1285 days ago | IN | 0 ETH | 0.02769797 | ||||
Enter | 12995268 | 1285 days ago | IN | 0 ETH | 0.00162967 | ||||
Enter | 12995268 | 1285 days ago | IN | 0 ETH | 0.02891154 | ||||
Enter | 12995064 | 1285 days ago | IN | 0 ETH | 0.0285906 | ||||
Exit | 12994929 | 1285 days ago | IN | 0 ETH | 0.02062418 |
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
Contract Source Code (Solidity Standard Json-Input format)
// 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 ) } } }
// 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; } }
// 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 { } }
// 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); } } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 500 }, "evmVersion": "byzantium", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.