Function findCollateralAddress
- findCollateralAddress(program: Program<Idl>, reserve: PublicKey, obligation: PublicKey, wallet: PublicKey): Promise<[collateralPubkey: PublicKey, collateralBump: number]>
-
Parameters
-
program: Program<Idl>
-
reserve: PublicKey
-
obligation: PublicKey
-
wallet: PublicKey
Returns Promise<[collateralPubkey: PublicKey, collateralBump: number]>
Find collateral account for the reserve, obligation and wallet.