> For the complete documentation index, see [llms.txt](https://docs.nept.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nept.finance/develop/contracts.md).

# Contracts

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:** [inj1nc7gjkf2mhp34a6gquhurg8qahnw5kxs5u3s4u](https://injscan.com/contract/inj1nc7gjkf2mhp34a6gquhurg8qahnw5kxs5u3s4u/)

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

### Interest Model Contract

**Address:** [inj1ftech0pdjrjawltgejlmpx57cyhsz6frdx2dhq](https://injscan.com/contract/inj1ftech0pdjrjawltgejlmpx57cyhsz6frdx2dhq/)

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

### Token Contract

**Address:** [inj1v3a4zznudwpukpr8y987pu5gnh4xuf7v36jhva](https://injscan.com/contract/inj1v3a4zznudwpukpr8y987pu5gnh4xuf7v36jhva)

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

### Oracle Contract

**Address:** [inj1u6cclz0qh5tep9m2qayry9k97dm46pnlqf8nre](https://injscan.com/contract/inj1u6cclz0qh5tep9m2qayry9k97dm46pnlqf8nre/)

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

### Querier Contract

**Address:** [inj1kfjff5f0xjy7gece36watkqtscpycv666tqq7t](https://injscan.com/contract/inj1kfjff5f0xjy7gece36watkqtscpycv666tqq7t/)

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

### Flashloan Receiver Contract

**Address:** [inj1wmtzan6tgzg0zyauknuxdnnfjwn350yewjf6fq](https://injscan.com/contract/inj1wmtzan6tgzg0zyauknuxdnnfjwn350yewjf6fq/)

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

See the [nToken documentation](/develop/contracts/ntoken.md) for a complete list of deployed nToken contracts.

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