use {anchor_lang::prelude::*, hpl_utils::traits::*};
/// The staking_pool multiplier state account
/// PDA: ['staker', wallet, staking_pool]
/// Category: staker_state
#[account]
#[derive(Debug, PartialEq, Eq)]
pub struct Staker {
pub bump: u8,
/// The staking_pool this multiplier is associated with
pub staking_pool: Pubkey,
/// The wallet that owns this staker account
pub wallet: Pubkey,
/// The total amount of tokens staked
pub total_staked: u64,
}
impl Default for Staker {
const LEN: usize = 8 + 80;
fn set_defaults(&mut self) {
self.bump = 0;
self.staking_pool = Pubkey::default();
self.wallet = Pubkey::default();
self.total_staked = 0;
}
}