@aave/protocol-js
Version:
Aave protocol data aggregation tool
15 lines (14 loc) • 1.32 kB
TypeScript
import { EthereumTransactionTypeExtended } from '../../types';
import { LPBorrowParamsType, LPDepositParamsType, LPLiquidationCall, LPRepayParamsType, LPRepayWithCollateral, LPSetUsageAsCollateral, LPSwapBorrowRateMode, LPSwapCollateral, LPWithdrawParamsType, LPFlashLiquidation } from '../../types/LendingPoolMethodTypes';
export default interface LendingPoolInterface {
deposit: (args: LPDepositParamsType) => Promise<EthereumTransactionTypeExtended[]>;
withdraw: (args: LPWithdrawParamsType) => Promise<EthereumTransactionTypeExtended[]>;
borrow: (args: LPBorrowParamsType) => Promise<EthereumTransactionTypeExtended[]>;
repay: (args: LPRepayParamsType) => Promise<EthereumTransactionTypeExtended[]>;
swapBorrowRateMode: (args: LPSwapBorrowRateMode) => Promise<EthereumTransactionTypeExtended[]>;
setUsageAsCollateral: (args: LPSetUsageAsCollateral) => Promise<EthereumTransactionTypeExtended[]>;
liquidationCall: (args: LPLiquidationCall) => Promise<EthereumTransactionTypeExtended[]>;
swapCollateral: (args: LPSwapCollateral) => Promise<EthereumTransactionTypeExtended[]>;
repayWithCollateral: (args: LPRepayWithCollateral) => Promise<EthereumTransactionTypeExtended[]>;
flashLiquidation(args: LPFlashLiquidation): Promise<EthereumTransactionTypeExtended[]>;
}