Struct lido::metrics::Metrics [−][src]
#[repr(C)]pub struct Metrics {
pub fee_treasury_sol_total: Lamports,
pub fee_validation_sol_total: Lamports,
pub fee_developer_sol_total: Lamports,
pub st_sol_appreciation_sol_total: Lamports,
pub fee_treasury_st_sol_total: StLamports,
pub fee_validation_st_sol_total: StLamports,
pub fee_developer_st_sol_total: StLamports,
pub deposit_amount: LamportsHistogram,
pub withdraw_amount: WithdrawMetric,
}Fields
fee_treasury_sol_total: LamportsFees paid to the treasury, in total since we started tracking, before conversion to stSOL.
Note: rewards are paid in stSOL, so the treasury did not actually receive this SOL; it is the SOL that the treasury would have, if it could convert its fees into SOL immediately after receiving them.
fee_validation_sol_total: LamportsFees paid to validators, in total since we started tracking, before conversion to stSOL.
fee_developer_sol_total: LamportsFees paid to the developer, in total since we started tracking, before conversion to stSOL.
st_sol_appreciation_sol_total: LamportsTotal rewards that benefited stSOL holders, in total, since we started tracking.
fee_treasury_st_sol_total: StLamportsFees paid to the treasury, in total since we started tracking.
The current value of this stSOL will be different than the value at the
time the fees were paid; [fee_treasury_sol_total] tracks the SOL at the
time the fees were paid.
fee_validation_st_sol_total: StLamportsFees paid to validators, in total since we started tracking.
The current value of this stSOL will be different than the value at the
time the fees were paid; [fee_validation_sol_total] tracks the SOL at the
time the fees were paid.
fee_developer_st_sol_total: StLamportsFees paid to the developer, in total since we started tracking.
The current value of this stSOL will be different than the value at the
time the fees were paid; [fee_developer_sol_total] tracks the SOL at the
time the fees were paid.
deposit_amount: LamportsHistogramHistogram of deposits, including the total amount deposited since we started tracking.
withdraw_amount: WithdrawMetricTotal amount withdrawn since the beginning.
Implementations
pub fn observe_fee_treasury(
&mut self,
amount_sol: Lamports,
amount_st_sol: StLamports
) -> Result<()>
pub fn observe_fee_validation(
&mut self,
amount_sol: Lamports,
amount_st_sol: StLamports
) -> Result<()>
pub fn observe_fee_developer(
&mut self,
amount_sol: Lamports,
amount_st_sol: StLamports
) -> Result<()>
pub fn observe_withdrawal(
&mut self,
st_sol_amount: StLamports,
sol_amount: Lamports
) -> Result<()>
Trait Implementations
impl BorshDeserialize for Metrics where
Lamports: BorshDeserialize,
Lamports: BorshDeserialize,
Lamports: BorshDeserialize,
Lamports: BorshDeserialize,
StLamports: BorshDeserialize,
StLamports: BorshDeserialize,
StLamports: BorshDeserialize,
LamportsHistogram: BorshDeserialize,
WithdrawMetric: BorshDeserialize,
impl BorshDeserialize for Metrics where
Lamports: BorshDeserialize,
Lamports: BorshDeserialize,
Lamports: BorshDeserialize,
Lamports: BorshDeserialize,
StLamports: BorshDeserialize,
StLamports: BorshDeserialize,
StLamports: BorshDeserialize,
LamportsHistogram: BorshDeserialize,
WithdrawMetric: BorshDeserialize,
Get the name of the type without brackets.
Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.
Auto Trait Implementations
impl RefUnwindSafe for Metrics
impl UnwindSafe for Metrics
Blanket Implementations
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn example() -> T
Mutably borrows from an owned value. Read more