LogoLogo
  • Overview
  • Learn
    • Lend
    • Borrow
    • Interest Rate
    • Liquidate
    • Flash Loans
    • NEPT Token
    • Risks
  • Develop
    • Contracts
      • Market
      • Interest Model
      • Token
      • Oracle
      • Querier
      • Flashloan Reciever
      • nToken
    • Token Addresses
  • User Guides
    • How to Lend on Neptune
    • How to Borrow on Neptune
    • How to Stake with the Neptune Validator
    • How to bridge TIA to Injective
  • Socials and Media
  • Audits
Powered by GitBook
On this page
  • Core Contracts
  • Market Contract
  • Interest Model Contract
  • Token Contract
  • Oracle Contract
  • Querier Contract
  • Flashloan Receiver Contract
  • Receipt Tokens (nTokens)
  1. Develop

Contracts

PreviousDevelopNextMarket

Last updated 2 months ago

The Neptune Protocol consists of several core smart contracts that work together to provide lending, borrowing, and other DeFi functionality:

Core Contracts

Market Contract

Address:

Core component responsible for handling lending, borrowing, collateral management, flash loans and liquidations.

Interest Model Contract

Address:

Manages and computes interest rates using a configurable PID controller based on market utilization.

Token Contract

Address:

Manages the NEPT token, including minting, bonding, unbonding, and staking functionality.

Oracle Contract

Address:

Provides accurate and timely asset pricing data by aggregating from multiple sources like Pyth, Ojo, and on-chain feeds.

Querier Contract

Quality of life service that provides simplified protocol queries by aggregating data from various contracts.

Flashloan Receiver Contract

Base contract for implementing flashloan receivers that can borrow assets from the protocol and repay them within the same transaction.

Receipt Tokens (nTokens)

nTokens are CW20-compliant tokens issued to lenders representing their share of the lending pool. They:

  • Automatically accumulate lending yields

  • Can be used as collateral

  • Can be transferred while maintaining the underlying position

Each contract's detailed documentation can be found in its respective markdown file in this directory.

Address:

Address:

See the for a complete list of deployed nToken contracts.

inj1nc7gjkf2mhp34a6gquhurg8qahnw5kxs5u3s4u
inj1ftech0pdjrjawltgejlmpx57cyhsz6frdx2dhq
inj1v3a4zznudwpukpr8y987pu5gnh4xuf7v36jhva
inj1u6cclz0qh5tep9m2qayry9k97dm46pnlqf8nre
inj1kfjff5f0xjy7gece36watkqtscpycv666tqq7t
inj1wmtzan6tgzg0zyauknuxdnnfjwn350yewjf6fq
nToken documentation