Contract
0xe06d0b1752e60687c0ea5abbe006d3368fdcdcc1
2
Contract Overview
My Name Tag:
Not Available, login to update
Latest 16 internal transactions
[ Download CSV Export ]
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Minimal Proxy Contract for 0x0a0a82d2f86b9e46ae60e22fce4e8b916f858ddc
Contract Name:
InstaAccountV2
Compiler Version
v0.7.0+commit.9e61f92b
Contract Source Code (Solidity)
/** *Submitted for verification at snowtrace.io on 2021-11-21 */ // SPDX-License-Identifier: MIT pragma solidity ^0.7.0; interface AccountImplementations { function getImplementation(bytes4 _sig) external view returns (address); } /** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. */ contract InstaAccountV2 { AccountImplementations public immutable implementations; constructor(address _implementations) { implementations = AccountImplementations(_implementations); } /** * @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 { // 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 Delegates the current call to the address returned by Implementations registry. * * This function does not return to its internall call site, it will return directly to the external caller. */ function _fallback(bytes4 _sig) internal { address _implementation = implementations.getImplementation(_sig); require(_implementation != address(0), "InstaAccountV2: Not able to find _implementation"); _delegate(_implementation); } /** * @dev Fallback function that delegates calls to the address returned by Implementations registry. */ fallback () external payable { _fallback(msg.sig); } /** * @dev Fallback function that delegates calls to the address returned by Implementations registry. */ receive () external payable { if (msg.sig != 0x00000000) { _fallback(msg.sig); } } }
[{"inputs":[{"internalType":"address","name":"_implementations","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementations","outputs":[{"internalType":"contract AccountImplementations","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.