# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nept.finance/develop/contracts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
