Source Code
Latest 5 from a total of 5 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 24427014 | 24 days ago | IN | 0.01319 ETH | 0.00000235 | ||||
| Transfer | 24108771 | 68 days ago | IN | 0.00374402 ETH | 0.00000069 | ||||
| Transfer | 23559546 | 145 days ago | IN | 0.00846907 ETH | 0.00000278 | ||||
| Transfer | 22882810 | 240 days ago | IN | 0.02524358 ETH | 0.00007767 | ||||
| Transfer | 22527981 | 290 days ago | IN | 0.01454121 ETH | 0.00001275 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Dispatch | 24599995 | 9 hrs ago | 0.0164253 ETH | ||||
| Dispatch | 24551667 | 7 days ago | 0.11114115 ETH | ||||
| Dispatch | 24361399 | 33 days ago | 0.0168173 ETH | ||||
| Dispatch | 24358057 | 34 days ago | 0.03389802 ETH | ||||
| Dispatch | 24183438 | 58 days ago | 0.01727355 ETH | ||||
| Dispatch | 24130860 | 65 days ago | 0.10296852 ETH | ||||
| Dispatch | 23936798 | 93 days ago | 0.01765119 ETH | ||||
| Dispatch | 23902263 | 97 days ago | 0.05265918 ETH | ||||
| Dispatch | 23698240 | 126 days ago | 0.10981823 ETH | ||||
| Dispatch | 23494341 | 155 days ago | 0.018368 ETH | ||||
| Dispatch | 23476955 | 157 days ago | 0.05612126 ETH | ||||
| Dispatch | 23260129 | 187 days ago | 0.05739059 ETH | ||||
| Dispatch | 23041963 | 218 days ago | 0.01928325 ETH | ||||
| Dispatch | 22958612 | 229 days ago | 0.01918706 ETH | ||||
| Dispatch | 22938176 | 232 days ago | 0.09114115 ETH | ||||
| Dispatch | 22824865 | 248 days ago | 0.01901468 ETH | ||||
| Dispatch | 22821101 | 249 days ago | 0.05683986 ETH | ||||
| Dispatch | 22605124 | 279 days ago | 0.11817138 ETH | ||||
| Dispatch | 22386001 | 310 days ago | 0.05752263 ETH | ||||
| Dispatch | 22170619 | 340 days ago | 0.05671925 ETH | ||||
| Dispatch | 21962729 | 369 days ago | 0.07586331 ETH | ||||
| Dispatch | 21748759 | 399 days ago | 0.05719386 ETH | ||||
| Dispatch | 21526457 | 430 days ago | 0.05758364 ETH | ||||
| Dispatch | 21304878 | 460 days ago | 0.03855614 ETH | ||||
| Dispatch | 21197412 | 475 days ago | 0.03833767 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Withdrawals
Latest 25 from a total of 63 withdrawals (1.394983258 ETH withdrawn)
| Validator Index | Block | Amount | |
|---|---|---|---|
| 1540058 | 24599849 | 9 hrs ago | 0.016425308 ETH |
| 1540058 | 24540477 | 8 days ago | 0.016460594 ETH |
| 1540058 | 24480994 | 16 days ago | 0.064796148 ETH |
| 1540058 | 24421127 | 25 days ago | 0.016694401 ETH |
| 1540058 | 24361023 | 33 days ago | 0.016817306 ETH |
| 1540058 | 24300961 | 42 days ago | 0.01689986 ETH |
| 1540058 | 24240717 | 50 days ago | 0.016998169 ETH |
| 1540058 | 24180366 | 58 days ago | 0.017273554 ETH |
| 1540058 | 24119398 | 67 days ago | 0.064272957 ETH |
| 1540058 | 24057719 | 76 days ago | 0.017541994 ETH |
| 1540058 | 23995913 | 84 days ago | 0.017409553 ETH |
| 1540058 | 23934119 | 93 days ago | 0.01765119 ETH |
| 1540058 | 23871686 | 102 days ago | 0.017566322 ETH |
| 1540058 | 23809577 | 110 days ago | 0.017560029 ETH |
| 1540058 | 23747579 | 119 days ago | 0.017532837 ETH |
| 1540058 | 23685380 | 128 days ago | 0.017840762 ETH |
| 1540058 | 23622030 | 137 days ago | 0.065209374 ETH |
| 1540058 | 23558067 | 146 days ago | 0.018299028 ETH |
| 1540058 | 23493221 | 155 days ago | 0.018368002 ETH |
| 1540058 | 23428285 | 164 days ago | 0.01851259 ETH |
| 1540058 | 23362936 | 173 days ago | 0.018618847 ETH |
| 1540058 | 23296787 | 182 days ago | 0.018989825 ETH |
| 1540058 | 23229527 | 192 days ago | 0.019062769 ETH |
| 1540058 | 23161936 | 201 days ago | 0.019125273 ETH |
| 1540058 | 23094008 | 210 days ago | 0.019202551 ETH |
Loading...
Loading
Minimal Proxy Contract for 0xfe1b6a789e2bd96a69c49a14353e51116b48107f
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x933fBfeb...e6fc875C6 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
FeeRecipient
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.10;
import "./interfaces/IFeeDispatcher.sol";
contract FeeRecipient {
/// @notice Constructor replay prevention
bool internal initialized;
/// @notice Address where funds are sent to be dispatched
IFeeDispatcher internal dispatcher;
/// @notice Public Key root assigned to this receiver
bytes32 internal publicKeyRoot;
error AlreadyInitialized();
/// @notice Initializes the receiver
/// @param _dispatcher Address that will handle the fee dispatching
/// @param _publicKeyRoot Public Key root assigned to this receiver
function init(address _dispatcher, bytes32 _publicKeyRoot) external {
if (initialized) {
revert AlreadyInitialized();
}
initialized = true;
dispatcher = IFeeDispatcher(_dispatcher);
publicKeyRoot = _publicKeyRoot;
}
/// @notice Empty calldata fallback
receive() external payable {}
/// @notice Non-empty calldata fallback
fallback() external payable {}
/// @notice Triggers a withdrawal by sending its funds + its public key root to the dispatcher
/// @dev Can be called by any wallet as recipients are not parameters
function withdraw() external {
dispatcher.dispatch{value: address(this).balance}(publicKeyRoot);
}
/// @notice Retrieve the assigned public key root
function getPublicKeyRoot() external view returns (bytes32) {
return publicKeyRoot;
}
/// @notice retrieve the assigned withdrawer
function getWithdrawer() external view returns (address) {
return dispatcher.getWithdrawer(publicKeyRoot);
}
}//SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.10;
import "./libs/DispatchersStorageLib.sol";
import "./interfaces/IStakingContractFeeDetails.sol";
import "./interfaces/IFeeDispatcher.sol";
/// @title Consensus Layer Fee Recipient
/// @author Kiln
/// @notice This contract can be used to receive fees from a validator and split them with a node operator
contract ConsensusLayerFeeDispatcher is IFeeDispatcher {
using DispatchersStorageLib for bytes32;
event Withdrawal(
address indexed withdrawer,
address indexed feeRecipient,
bytes32 pubKeyRoot,
uint256 rewards,
uint256 nodeOperatorFee,
uint256 treasuryFee
);
error TreasuryReceiveError(bytes errorData);
error FeeRecipientReceiveError(bytes errorData);
error WithdrawerReceiveError(bytes errorData);
error ZeroBalanceWithdrawal();
error AlreadyInitialized();
error InvalidCall();
error NotImplemented();
bytes32 internal constant STAKING_CONTRACT_ADDRESS_SLOT =
keccak256("ConsensusLayerFeeRecipient.stakingContractAddress");
uint256 internal constant BASIS_POINTS = 10_000;
bytes32 internal constant VERSION_SLOT = keccak256("ConsensusLayerFeeRecipient.version");
/// @notice Ensures an initialisation call has been called only once per _version value
/// @param _version The current initialisation value
modifier init(uint256 _version) {
if (_version != VERSION_SLOT.getUint256() + 1) {
revert AlreadyInitialized();
}
VERSION_SLOT.setUint256(_version);
_;
}
/// @notice Constructor method allowing us to prevent calls to initCLFR by setting the appropriate version
constructor(uint256 _version) {
VERSION_SLOT.setUint256(_version);
}
/// @notice Initialize the contract by storing the staking contract
/// @param _stakingContract Address of the Staking Contract
function initCLD(address _stakingContract) external init(1) {
STAKING_CONTRACT_ADDRESS_SLOT.setAddress(_stakingContract);
}
/// @notice Performs a withdrawal on this contract's balance
function dispatch(bytes32) external payable {
revert NotImplemented();
/*
uint256 balance = address(this).balance; // this has taken into account msg.value
if (balance == 0) {
revert ZeroBalanceWithdrawal();
}
IStakingContractFeeDetails stakingContract = IStakingContractFeeDetails(
STAKING_CONTRACT_ADDRESS_SLOT.getAddress()
);
address withdrawer = stakingContract.getWithdrawerFromPublicKeyRoot(_publicKeyRoot);
address operator = stakingContract.getOperatorFeeRecipient(_publicKeyRoot);
address treasury = stakingContract.getTreasury();
uint256 globalFee;
if (balance >= 32 ether) {
// withdrawing a healthy & exited validator
globalFee = ((balance - 32 ether) * stakingContract.getGlobalFee()) / BASIS_POINTS;
} else if (balance <= 16 ether) {
// withdrawing from what looks like skimming
globalFee = (balance * stakingContract.getGlobalFee()) / BASIS_POINTS;
}
uint256 operatorFee = (globalFee * stakingContract.getOperatorFee()) / BASIS_POINTS;
(bool status, bytes memory data) = withdrawer.call{value: balance - globalFee}("");
if (status == false) {
revert WithdrawerReceiveError(data);
}
if (globalFee > 0) {
(status, data) = treasury.call{value: globalFee - operatorFee}("");
if (status == false) {
revert FeeRecipientReceiveError(data);
}
}
if (operatorFee > 0) {
(status, data) = operator.call{value: operatorFee}("");
if (status == false) {
revert TreasuryReceiveError(data);
}
}
emit Withdrawal(withdrawer, operator, balance - globalFee, operatorFee, globalFee - operatorFee);
*/
}
/// @notice Retrieve the staking contract address
function getStakingContract() external view returns (address) {
return STAKING_CONTRACT_ADDRESS_SLOT.getAddress();
}
/// @notice Retrieve the assigned withdrawer for the given public key root
/// @param _publicKeyRoot Public key root to get the owner
function getWithdrawer(bytes32 _publicKeyRoot) external view returns (address) {
IStakingContractFeeDetails stakingContract = IStakingContractFeeDetails(
STAKING_CONTRACT_ADDRESS_SLOT.getAddress()
);
return stakingContract.getWithdrawerFromPublicKeyRoot(_publicKeyRoot);
}
receive() external payable {
revert InvalidCall();
}
fallback() external payable {
revert InvalidCall();
}
}//SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
library DispatchersStorageLib {
function getUint256(bytes32 position) internal view returns (uint256 data) {
assembly {
data := sload(position)
}
}
function setUint256(bytes32 position, uint256 data) internal {
assembly {
sstore(position, data)
}
}
function getAddress(bytes32 position) internal view returns (address data) {
assembly {
data := sload(position)
}
}
function setAddress(bytes32 position, address data) internal {
assembly {
sstore(position, data)
}
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
interface IStakingContractFeeDetails {
function getWithdrawerFromPublicKeyRoot(bytes32 _publicKeyRoot) external view returns (address);
function getTreasury() external view returns (address);
function getOperatorFeeRecipient(bytes32 pubKeyRoot) external view returns (address);
function getGlobalFee() external view returns (uint256);
function getOperatorFee() external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
interface IFeeDispatcher {
function dispatch(bytes32 _publicKeyRoot) external payable;
function getWithdrawer(bytes32 _publicKeyRoot) external view returns (address);
}//SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.10;
import "./libs/DispatchersStorageLib.sol";
import "./interfaces/IStakingContractFeeDetails.sol";
import "./interfaces/IFeeDispatcher.sol";
/// @title Execution Layer Fee Recipient
/// @author Kiln
/// @notice This contract can be used to receive fees from a validator and split them with a node operator
contract ExecutionLayerFeeDispatcher is IFeeDispatcher {
using DispatchersStorageLib for bytes32;
event Withdrawal(
address indexed withdrawer,
address indexed feeRecipient,
bytes32 pubKeyRoot,
uint256 rewards,
uint256 nodeOperatorFee,
uint256 treasuryFee
);
error TreasuryReceiveError(bytes errorData);
error FeeRecipientReceiveError(bytes errorData);
error WithdrawerReceiveError(bytes errorData);
error ZeroBalanceWithdrawal();
error AlreadyInitialized();
error InvalidCall();
bytes32 internal constant STAKING_CONTRACT_ADDRESS_SLOT =
keccak256("ExecutionLayerFeeRecipient.stakingContractAddress");
uint256 internal constant BASIS_POINTS = 10_000;
bytes32 internal constant VERSION_SLOT = keccak256("ExecutionLayerFeeRecipient.version");
/// @notice Ensures an initialisation call has been called only once per _version value
/// @param _version The current initialisation value
modifier init(uint256 _version) {
if (_version != VERSION_SLOT.getUint256() + 1) {
revert AlreadyInitialized();
}
VERSION_SLOT.setUint256(_version);
_;
}
/// @notice Constructor method allowing us to prevent calls to initCLFR by setting the appropriate version
constructor(uint256 _version) {
VERSION_SLOT.setUint256(_version);
}
/// @notice Initialize the contract by storing the staking contract and the public key in storage
/// @param _stakingContract Address of the Staking Contract
function initELD(address _stakingContract) external init(1) {
STAKING_CONTRACT_ADDRESS_SLOT.setAddress(_stakingContract);
}
/// @notice Performs a withdrawal on this contract's balance
function dispatch(bytes32 _publicKeyRoot) external payable {
uint256 balance = address(this).balance;
if (balance == 0) {
revert ZeroBalanceWithdrawal();
}
IStakingContractFeeDetails stakingContract = IStakingContractFeeDetails(
STAKING_CONTRACT_ADDRESS_SLOT.getAddress()
);
address withdrawer = stakingContract.getWithdrawerFromPublicKeyRoot(_publicKeyRoot);
address operator = stakingContract.getOperatorFeeRecipient(_publicKeyRoot);
address treasury = stakingContract.getTreasury();
uint256 globalFee = (balance * stakingContract.getGlobalFee()) / BASIS_POINTS;
uint256 operatorFee = (globalFee * stakingContract.getOperatorFee()) / BASIS_POINTS;
(bool status, bytes memory data) = withdrawer.call{value: balance - globalFee}("");
if (status == false) {
revert WithdrawerReceiveError(data);
}
if (globalFee > 0) {
(status, data) = treasury.call{value: globalFee - operatorFee}("");
if (status == false) {
revert FeeRecipientReceiveError(data);
}
}
if (operatorFee > 0) {
(status, data) = operator.call{value: operatorFee}("");
if (status == false) {
revert TreasuryReceiveError(data);
}
}
emit Withdrawal(
withdrawer,
operator,
_publicKeyRoot,
balance - globalFee,
operatorFee,
globalFee - operatorFee
);
}
/// @notice Retrieve the staking contract address
function getStakingContract() external view returns (address) {
return STAKING_CONTRACT_ADDRESS_SLOT.getAddress();
}
/// @notice Retrieve the assigned withdrawer for the given public key root
/// @param _publicKeyRoot Public key root to get the owner
function getWithdrawer(bytes32 _publicKeyRoot) external view returns (address) {
IStakingContractFeeDetails stakingContract = IStakingContractFeeDetails(
STAKING_CONTRACT_ADDRESS_SLOT.getAddress()
);
return stakingContract.getWithdrawerFromPublicKeyRoot(_publicKeyRoot);
}
receive() external payable {
revert InvalidCall();
}
fallback() external payable {
revert InvalidCall();
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
}
}Contract ABI
API[{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"getPublicKeyRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_dispatcher","type":"address"},{"internalType":"bytes32","name":"_publicKeyRoot","type":"bytes32"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.