* move Account to solana-sdk (#13198)
(cherry picked from commit c458d4b213
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com>
23 lines
543 B
Rust
23 lines
543 B
Rust
//! DEPRECATED: This sysvar can be removed once the pico-inflation feature is enabled
|
|
//!
|
|
use crate::sysvar::Sysvar;
|
|
|
|
crate::declare_sysvar_id!("SysvarRewards111111111111111111111111111111", Rewards);
|
|
|
|
#[repr(C)]
|
|
#[derive(Serialize, Deserialize, Debug, Default, PartialEq)]
|
|
pub struct Rewards {
|
|
pub validator_point_value: f64,
|
|
pub unused: f64,
|
|
}
|
|
impl Rewards {
|
|
pub fn new(validator_point_value: f64) -> Self {
|
|
Self {
|
|
validator_point_value,
|
|
unused: 0.0,
|
|
}
|
|
}
|
|
}
|
|
|
|
impl Sysvar for Rewards {}
|