//! 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,
}