RevShareRouterProxy
0x3073042ee292d56ace7732569a98bc6fe4b95957
Verification
Verified
v0.8.30+commit.73712a01
Type
Contract
181 bytes
ABI entries
3
0 read · 0 write
License
none
Contract information
- Address
- 0x3073042ee292d56ace7732569a98bc6fe4b95957
- Chain
- Robinhood Chain (4663)
- Compiler
- v0.8.30+commit.73712a01
- Optimization
- Enabled
- Creator
- 0x540Ef2956C…614476c1A6
- Creation tx
- 0x91a51ce5c5…0ef548de94
Token
Not a token
This contract does not expose ERC-20 metadata.
Read contract (0)
No read functions
The ABI is unavailable or exposes no view functions.
ABI
[
{
"inputs": [
{
"internalType": "address",
"name": "implementation",
"type": "address"
},
{
"internalType": "bytes",
"name": "initializationData",
"type": "bytes"
}
],
"stateMutability": "payable",
"type": "constructor"
},
{
"stateMutability": "payable",
"type": "fallback"
},
{
"stateMutability": "payable",
"type": "receive"
}
]Source code
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.30;
/// @notice Minimal ERC-1967 proxy for RevShareRouter.
contract RevShareRouterProxy {
bytes32 internal constant IMPLEMENTATION_SLOT =
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
constructor(address implementation, bytes memory initializationData) payable {
if (implementation.code.length == 0) revert();
assembly {
sstore(IMPLEMENTATION_SLOT, implementation)
}
if (initializationData.length != 0) {
(bool success, bytes memory returndata) = implementation.delegatecall(initializationData);
if (!success) {
assembly {
revert(add(returndata, 32), mload(returndata))
}
}
}
}
fallback() external payable {
_delegate();
}
receive() external payable {
_delegate();
}
function _delegate() private {
assembly {
let implementation := sload(IMPLEMENTATION_SLOT)
calldatacopy(0, 0, calldatasize())
let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
returndatacopy(0, 0, returndatasize())
switch result
case 0 { revert(0, returndatasize()) }
default { return(0, returndatasize()) }
}
}
}
Chain explorer2563msChain node74ms