This code snippet demonstrates how to retrieve the configuration for a flashloan using the NAVI SDK, focusing on the pool configuration for the USDC coin.
import { pool, USDC } from 'navi-sdk/dist/address'; // Importing the pool and USDC object from the NAVI SDK
const loanPoolConfig: PoolConfig = pool[USDC.symbol as keyof Pool]; // Fetching the configuration for the USDC pool
const [balance, receipt] = await flashloan(txb, loanPoolConfig, 1e6); // Initiating a flashloan PTB Function for 1 USDC (1e6 in base units)