Function prepareKlendRefreshIxns
- prepareKlendRefreshIxns(
authority: PublicKey,
reserve: PublicKey,
reserveFarmState: PublicKey,
lendingMarket: PublicKey,
assetPythOracle: PublicKey,
scopePrices: PublicKey,
depositReservesWithOracle: { pythOracle: PublicKey; reserve: PublicKey }[],
borrowReservesWithOracle: { pythOracle: PublicKey; reserve: PublicKey }[],
obligation: PublicKey,
lendingMarketAuthority: PublicKey,
obligationFarm: PublicKey,
): {
postIxns: web3.TransactionInstruction[];
preIxns: web3.TransactionInstruction[];
refreshObligationRemainingAccounts: web3.AccountMeta[];
} Parameters
- authority: PublicKey
- reserve: PublicKey
- reserveFarmState: PublicKey
- lendingMarket: PublicKey
- assetPythOracle: PublicKey
- scopePrices: PublicKey
- depositReservesWithOracle: { pythOracle: PublicKey; reserve: PublicKey }[]
- borrowReservesWithOracle: { pythOracle: PublicKey; reserve: PublicKey }[]
- obligation: PublicKey
- lendingMarketAuthority: PublicKey
- obligationFarm: PublicKey
Returns {
postIxns: web3.TransactionInstruction[];
preIxns: web3.TransactionInstruction[];
refreshObligationRemainingAccounts: web3.AccountMeta[];
}