NAVI Protocol Developer Docs
  • đŸ–Ĩī¸Build with NAVI Protocol
  • 📖Smart Contract Overview
    • 1ī¸Lending Core
    • 2ī¸Flash Loan
    • 3ī¸Calculator
    • 4ī¸Dynamic Calculator
    • 5ī¸Storage
  • 🕓Decentralized Oracle
    • đŸ’ŊOracle Interface
  • đŸ—ēī¸Contract Configuration
    • 1ī¸âƒŖGet the Latest Package ID
    • 2ī¸âƒŖGet Pools Config and Oracle Price Feeds
    • 3ī¸âƒŖGet Flashloan Config
  • đŸ›Šī¸NAVI SDK
    • 1ī¸Getting Started
    • 2ī¸Retrieve Info & Data
    • 3ī¸Interactions With NAVI
    • 4ī¸PTB Functions
    • 5ī¸Other Ways to Interact with NAVI
    • 6ī¸Demo
  • 📲NAVI UI SDK
    • ⭐Getting Started
    • đŸ…°ī¸Aggregator Components
  • 🎧Contract Integration with NAVI
    • 1ī¸âƒŖRetrieve Pools Info inside Contract
    • 2ī¸âƒŖIntegration with Account Cap
    • 3ī¸âƒŖDemo
  • 🏅NAVI Aggregator
    • 1ī¸âƒŖGetting Started
    • 2ī¸âƒŖAggregator SDK
    • 3ī¸âƒŖAggregator API
    • 🛜Contact Page
  • NAVI Bridge
    • 🚀Quick Start
    • 📄Bridge SDK
  • 📊NAVI Uptime Status Page
  • 📚NAVI API Collection
    • NAVI API
    • afSui, haSui, vSui API
  • ❓FAQ
Powered by GitBook
On this page
  1. Contract Configuration

Get Flashloan Config

Get Flashloan Config from NAVI SDK

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)
PreviousGet Pools Config and Oracle Price FeedsNextNAVI SDK

Last updated 7 months ago

đŸ—ēī¸
3ī¸âƒŖ