TokenLendingProgram.setLendingMarketOwner constructor
TokenLendingProgram.setLendingMarketOwner({
- required SolAddress lendingMarket,
- required SolAddress currentOwner,
- required TokenLendingSetLendingMarketOwnerLayout layout,
Sets the new owner of a lending market.
Implementation
factory TokenLendingProgram.setLendingMarketOwner({
/// Lending market account.
required SolAddress lendingMarket,
/// Current owner.
required SolAddress currentOwner,
required TokenLendingSetLendingMarketOwnerLayout layout,
}) {
return TokenLendingProgram(keys: [
lendingMarket.toWritable(),
currentOwner.toSigner(),
], programId: TokenLendingProgramConst.lendingProgramId, layout: layout);
}