TokenLendingProgram.setLendingMarketOwner constructor

TokenLendingProgram.setLendingMarketOwner({
  1. required SolAddress lendingMarket,
  2. required SolAddress currentOwner,
  3. 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);
}