Crate lido[][src]

Modules

A type that stores a map (dictionary) from public key to some value T.

Contains a utility macro that makes it safer to work with lists of accounts.

Logic for keeping the stake pool balanced.

Error types

Data structures for tracking metrics on-chain.

Program state processor

Utilities for dealing with stake accounts.

State transition types

Types to make working with token balances safer.

Macros

Generates two structs for passing accounts by name.

Implementation detail of accounts_struct.

Constants

The maximum number of unstake accounts that a validator can have simultaneously.

The minimum amount to put in a stake account (1 SOL).

Mint authority, mints StSol.

Seed for reserve account that holds SOL.

Authority responsible for withdrawing the stake rewards.

Seed for managing the stake.

Additional seed for active/activating validator stake accounts.

Additional seed for inactive/deactivating validator stake accounts.

Functions

Finds the public key and bump seed for a given authority. Since this function can take some time to run, it’s preferred to use Pubkey::create_program_address(seeds, program_id) inside programs.