Verified contractExactMIT
Proxy
Address0x6b110b6c11ef3f216530dfd736ba5d4c19b94f54
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.8.17
- Same code
3,517 more contracts
Details
- Compiler
- solc 0.8.17+commit.8df45f5f
- Language
- solidity
- Optimization
- Yes, 800 runs
- EVM version
- london
- Via IR
- yes
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 24,592,833
- Creation transaction
- 0x3039f9fcc4…430f94d71b
- Main copy (most transactions)
- 0xe9cd56e8…a17e21d5
contracts/smart-account/Proxy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
/**
* @title Proxy // This is the user's Smart Account
* @notice Basic proxy that delegates all calls to a fixed implementation contract.
* @dev Implementation address is stored in the slot defined by the Proxy's address
*/
contract Proxy {
constructor(address _implementation) {
require(
_implementation != address(0),
"Invalid implementation address"
);
assembly {
sstore(address(), _implementation)
}
}
fallback() external payable {
address target;
assembly {
target := sload(address())
calldatacopy(0, 0, calldatasize())
let result := delegatecall(gas(), target, 0, calldatasize(), 0, 0)
returndatacopy(0, 0, returndatasize())
switch result
case 0 {
revert(0, returndatasize())
}
default {
return(0, returndatasize())
}
}
}
}
Compiler settingsShow
{
"viaIR": true,
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"libraries": {},
"optimizer": {
"runs": 800,
"enabled": true
},
"evmVersion": "london",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.