UNPKG

@bandz/protocol-js

Version:

Bandz protocol data aggregation tool

15 lines (14 loc) 1.32 kB
import { SmartBCHTransactionTypeExtended } from '../../types'; import { LPBorrowParamsType, LPDepositParamsType, LPLiquidationCall, LPRepayParamsType, LPRepayWithCollateral, LPSetUsageAsCollateral, LPSwapBorrowRateMode, LPSwapCollateral, LPWithdrawParamsType, LPFlashLiquidation } from '../../types/LendingPoolMethodTypes'; export default interface LendingPoolInterface { deposit: (args: LPDepositParamsType) => Promise<SmartBCHTransactionTypeExtended[]>; withdraw: (args: LPWithdrawParamsType) => Promise<SmartBCHTransactionTypeExtended[]>; borrow: (args: LPBorrowParamsType) => Promise<SmartBCHTransactionTypeExtended[]>; repay: (args: LPRepayParamsType) => Promise<SmartBCHTransactionTypeExtended[]>; swapBorrowRateMode: (args: LPSwapBorrowRateMode) => Promise<SmartBCHTransactionTypeExtended[]>; setUsageAsCollateral: (args: LPSetUsageAsCollateral) => Promise<SmartBCHTransactionTypeExtended[]>; liquidationCall: (args: LPLiquidationCall) => Promise<SmartBCHTransactionTypeExtended[]>; swapCollateral: (args: LPSwapCollateral) => Promise<SmartBCHTransactionTypeExtended[]>; repayWithCollateral: (args: LPRepayWithCollateral) => Promise<SmartBCHTransactionTypeExtended[]>; flashLiquidation(args: LPFlashLiquidation): Promise<SmartBCHTransactionTypeExtended[]>; }