Struct gauge::EpochGaugeVote [−][src]
pub struct EpochGaugeVote {
pub allocated_power: u64,
}
Expand description
An EpochGaugeVote is a user’s committed votes for a given Gauge at a given epoch.
Seeds:
[
b"EpochGaugeVote",
gauge_vote.key().as_ref(),
voting_epoch.to_le_bytes().as_ref(),
];
Fields
allocated_power: u64
The rewards share used to vote for the derived epoch. This is calculated from:
vote_power_at_expiry * (weight / total_weight)
Implementations
Finds the address of an EpochGaugeVote for a given GaugeVote and voting epoch.
Trait Implementations
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a Mint
account into a token
Account
. Read more
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for EpochGaugeVote
impl Send for EpochGaugeVote
impl Sync for EpochGaugeVote
impl Unpin for EpochGaugeVote
impl UnwindSafe for EpochGaugeVote
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more