Module lido::processor [−][src]
Expand description
Program state processor
Structs
Enums
Functions
Checks that the derived_stake_account_address
corresponds to the
provided_stake_account
. Returns the number of Lamports in the stake
account or errors if the derived address is different.
Processes Instruction.
Collects the validator fee from the validator vote account and distributes
this fee across the specified participants. It transfers the collected
Lamports to the reserve account, where they can be re-staked.
This function can only be called after the exchange rate is updated with
process_update_exchange_rate
.
This function is permissionless and can be called by anyone.
Program state handler.
Unstakes from a validator, the funds are moved to the stake defined by the validator’s unstake seed. Caller must be a maintainer.
Splits a stake account from a validator’s stake account.
This function can only be called after the exchange rate is updated with
process_update_exchange_rate
.
Recover any inactive balance from the validator’s stake/unstake accounts to the reserve account. Updates the validator’s balance. This function is permissionless and can be called by anyone.
Withdraw amount
from withdraw_excess_opts.stake_account
.