NAVI Lending Vault — Developer Guide
Find the original numbered sections in the integration, accounting, interface and TypeScript guides.
Interface specification and integration reference for the NAVI Vault contract on Sui.
Scope. This document covers the on-chain module navi_vault::navi_vault and its event module navi_vault::events. It is intended for wallets, aggregators, frontends, indexers, automation services, and teams operating a vault.
The described interface is identical at VAULT_VERSION 1 and 2: the two differ only in the version constant itself, which gates the migration described in §9. Every signature, error code, event and behaviour specified here applies to both.
§1.3 lists the mainnet identifiers an integration requires. The call-target package changes on every upgrade; re-confirm it before integrating.
Integrate a lending vault
- 1. Overview
- 1.1 Object model
- 1.2 Accounting units and scaling
- 1.3 Identifiers
- 4. Object discovery
- 4.1 Markets
- 4.2 Reward rules
- 4.3 RewardFund objects
- 4.4 Objects held as configuration
- 5. Transaction construction
- 5.1 Deposit
- 5.2 Withdrawal
- 5.3 Reward claim
- 5.4 Allocation and deallocation
- 5.5 Fee claim
- 5.6 Verified block shapes
- 11. Integration requirements
Shares, snapshots and fees
- 2. Share accounting
- 3. Snapshot accounting and same-PTB preconditions
- 3.1 Precondition matrix
- 3.2 Conditions that invalidate a synchronization
- 3.3 External preconditions imposed by the lending protocol
- 3.4 External precondition: lending package version coupling
- 6. State queries
- 6.1 Snapshot staleness
- 6.2 Reward query staleness
- 6.3 Query index
- 7. Fees
- 8. Governance
- 9. Pause and versioning
Move interface reference
- 10. Interface reference
- 10.1 Objects
- 10.2 Constants
- 10.3 Depositor entrypoints
- 10.4 Block support entrypoints
- 10.5 View functions
- 10.6 Operator entrypoints
- 10.7 Error codes
- 10.8 Events