pub fn init_lending_market(
    program_id: Pubkey,
    lending_market_pubkey: Pubkey,
    lending_market_owner: Pubkey,
    quote_token_mint: Pubkey,
) -> Instruction {
    Instruction {
        program_id,
        accounts: vec![
            AccountMeta::new(lending_market_pubkey, false),
            AccountMeta::new_readonly(quote_token_mint, false),
            AccountMeta::new_readonly(sysvar::rent::id(), false),
            AccountMeta::new_readonly(spl_token::id(), false),
        ],
        data: LendingInstruction::InitLendingMarket {
            market_owner: lending_market_owner,
        }
        .pack(),
    }
}
/// Creates an 'InitLendingMarket' instruction.
Creates an 'InitLendingMarket' instruction.
Creates an ' InitLendingMarket ' instruction .
pub fn init_lending_market(
    program_id: Pubkey,
    lending_market_pubkey: Pubkey,
    lending_market_owner: Pubkey,
    quote_token_mint: Pubkey,
) -> Instruction {
    Instruction {
        program_id,
        accounts: vec![
            AccountMeta::new(lending_market_pubkey, false),
            AccountMeta::new_readonly(quote_token_mint, false),
            AccountMeta::new_readonly(sysvar::rent::id(), false),
            AccountMeta::new_readonly(spl_token::id(), false),
        ],
        data: LendingInstruction::InitLendingMarket {
            market_owner: lending_market_owner,
        }
        .pack(),
    }
}
pub fn init_lending_market ( program_id : Pubkey , lending_market_pubkey : Pubkey , lending_market_owner : Pubkey , quote_token_mint : Pubkey , ) -> Instruction { Instruction { program_id , accounts : vec ! [ AccountMeta new ( lending_market_pubkey false ) AccountMeta new_readonly ( quote_token_mint false ) AccountMeta new_readonly ( sysvar rent id ( ) false ) AccountMeta new_readonly ( spl_token id ( ) false ) ] , data : LendingInstruction :: InitLendingMarket { market_owner : lending_market_owner , } . pack ( ) , } }
Creates an 'InitLendingMarket' instruction.
Creates an ' InitLendingMarket ' instruction .
program_id
Pubkey
lending_market_pubkey
Pubkey
lending_market_owner
Pubkey
quote_token_mint
Pubkey