Individual Smart Contract

Deposit ETH to Node Operator

function depositToFigment(
       bytes[] calldata pubkeys,
       bytes[] calldata withdrawal_credentials,
       bytes[] calldata signatures,
       bytes32[] calldata deposit_data_roots
   ) external onlyMasterOwner {
       require(
           address(figmentDepositor) != address(0),
           "Figment depositor address not set"
       );
       uint256 depositAmount = 32 ether;
       require(
           address(this).balance >= depositAmount,
           "Insufficient balance for deposit"
       );
       figmentDepositor.deposit{value: depositAmount}(
           pubkeys,
           withdrawal_credentials,
           signatures,
           deposit_data_roots
       );
 }
  1. The Admin of the MSC can direct it to deposit the ETH to Node Operators Smart Contract address.

  2. Deposit in the multiples of 32 is only made. The params take the public key of the validator for which the deposit is being made.

Last updated