For the complete documentation index, see llms.txt. This page is also available as Markdown.

3️⃣Get Flashloan Config

Get Flashloan Config from NAVI Lending SDK

This code snippet demonstrates how to retrieve the configuration for a flashloan using the NAVI Lending SDK, focusing on the pool configuration for the USDC coin.

import { getAllFlashLoanAssets } from '@naviprotocol/lending'

const flashLoanAssets = await getAllFlashLoanAssets()

const usdcAsset = flashLoanAssets.filter((asset) => {
    return asset.coinType === '0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC'
})

Last updated