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

Contract Integration with NAVI

PreviousAggregator ComponentsNextRetrieve Pools Info inside Contract

Last updated 7 months ago

To interact with the NAVI Protocol, external contracts must use a specific mechanism called the Account Cap. This mechanism allows contracts to seamlessly integrate with NAVI’s ecosystem, enabling operations such as supplying and borrowing assets, checking rewards, and more.

Key Interaction Components:

  • Account Cap: The Account Cap is a non-fungible token (NFT) that serves as a key, granting external contracts the ability to interact with NAVI’s smart contracts. It must be stored within the external contract as a wrapped object and passed into relevant functions (e.g., supplying tokens) for transactions to occur.

  • Oracle Update: Oracle data ensures that NAVI maintains accurate and up-to-date asset prices, which are critical for external contracts to perform correct valuations and liquidations.

By using the Account Cap, external contracts can fully access and interact with NAVI’s core functionalities, allowing them to participate in and benefit from NAVI's lending, borrowing, and reward systems. The contract integration page provides detailed guidance for writing logic in smart contracts.

🎧
1️⃣Retrieve Pools Info inside Contract
2️⃣Integration with Account Cap
3️⃣Demo