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: Lamports

Fees 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: Lamports

Fees paid to validators, in total since we started tracking, before conversion to stSOL.

fee_developer_sol_total: Lamports

Fees paid to the developer, in total since we started tracking, before conversion to stSOL.

st_sol_appreciation_sol_total: Lamports

Total rewards that benefited stSOL holders, in total, since we started tracking.

fee_treasury_st_sol_total: StLamports

Fees 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: StLamports

Fees 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: StLamports

Fees 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: LamportsHistogram

Histogram of deposits, including the total amount deposited since we started tracking.

withdraw_amount: WithdrawMetric

Total amount withdrawn since the beginning.

Implementations

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

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

Helper method to add a single type definition to the map.

Serialize this instance into a vector of bytes.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.