defituna-staking 1.0.16

Rust client to interact with DefiTuna's Staking on-chain program.
Documentation
1
2
3
4
5
6
7
8
9
10
use solana_pubkey::{pubkey, Pubkey};

pub const TUNA_MINT_ADDRESS: Pubkey = pubkey!("TUNAfXDZEdQizTMTh3uEvNvYqJmqFHZbEJt8joP4cyx");
pub const TUNA_TREASURY_ADDRESS: Pubkey = pubkey!("G9XfJoY81n8A9bZKaJFhJYomRrcvFkuJ22em2g8rZuCh");

pub const REWARD_PER_SHARE_FRAC_BITS: u32 = 48;

pub const TREASURY_FLAGS_STAKING_ENABLED: u32 = 1;
pub const TREASURY_FLAGS_UNSTAKING_ENABLED: u32 = 1 << 1;
pub const TREASURY_FLAGS_WITHDRAW_ENABLED: u32 = 1 << 2;