carbon-sharky-decoder 2.0.0

Sharky Decoder
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! This code was AUTOGENERATED using the Codama library.
use {
    crate::types::{LoanTerms, APY},
    solana_pubkey::Pubkey,
};
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, borsh::BorshSerialize, borsh::BorshDeserialize, PartialEq)]
pub struct TakenLoan {
    pub nft_collateral_mint: Pubkey,
    pub lender_note_mint: Pubkey,
    pub borrower_note_mint: Pubkey,
    /// Thousandths of a percent (allows to have 3 decimal points of precision)
    pub apy: APY,
    pub terms: LoanTerms,
    pub is_collateral_frozen: u8,
}