Skip to content
docs

ILendingProtocol

Defined in: protocols/lending.ts:25

The lending interface every lending and vault module implements. Vault modules (Morpho vaults, Mellow, Kamino Earn) support supply and withdraw; borrowing exists where the market allows it, otherwise it throws.

borrow(options): Promise<LendingResult>

Defined in: protocols/lending.ts:35

Borrow against collateral.

BorrowOptions

Promise<LendingResult>


quoteBorrow(options): Promise<LendingQuote>

Defined in: protocols/lending.ts:37

Network fee of borrow.

BorrowOptions

Promise<LendingQuote>


quoteRepay(options): Promise<LendingQuote>

Defined in: protocols/lending.ts:41

Network fee of repay.

RepayOptions

Promise<LendingQuote>


quoteSupply(options): Promise<LendingQuote>

Defined in: protocols/lending.ts:29

Network fee of supply.

SupplyOptions

Promise<LendingQuote>


quoteWithdraw(options): Promise<LendingQuote>

Defined in: protocols/lending.ts:33

Network fee of withdraw.

WithdrawOptions

Promise<LendingQuote>


repay(options): Promise<LendingResult>

Defined in: protocols/lending.ts:39

Repay a borrow.

RepayOptions

Promise<LendingResult>


supply(options): Promise<LendingResult>

Defined in: protocols/lending.ts:27

Deposit into the market or vault. Sends an approval first when needed.

SupplyOptions

Promise<LendingResult>


withdraw(options): Promise<LendingResult>

Defined in: protocols/lending.ts:31

Withdraw a deposit.

WithdrawOptions

Promise<LendingResult>