> For the complete documentation index, see [llms.txt](https://naviprotocol.gitbook.io/navi-protocol-developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://naviprotocol.gitbook.io/navi-protocol-developer-docs/smart-contract-overview.md).

# Smart Contract Overview

This guide outlines key modules that support essential functions such as lending, borrowing, repaying, rewards distribution, and flashloan. Each module is broken down with detailed descriptions of its use cases and key functions, providing developers a clear understanding of how NAVI’s system operates.

The functions within this module are categorized into two types: **entry** and **non-entry functions**.

* **Entry Functions**:
  * Directly invoke the underlying base function.
  * Automatically return the token object to the function sender.
* **Non-Entry Functions**:
  * Also invoke the underlying base function.
  * Return the coin object without handling it.
  * Require the caller—typically a developer or transaction builder—to manage the token object manually. Failure to do so will result in a reverted transaction.

Non-entry functions provide greater flexibility, enabling developers to improve interoperability and compatibility with other protocols.

## Modules covered include:

{% content-ref url="/pages/vGNkCIXYYd53VSiehBui" %}
[Lending Core](/navi-protocol-developer-docs/smart-contract-overview/lending-core.md)
{% endcontent-ref %}

{% content-ref url="/pages/qB6nNnfnRSJSiG4pYLex" %}
[Flash Loan](/navi-protocol-developer-docs/smart-contract-overview/flash-loan.md)
{% endcontent-ref %}

{% content-ref url="/pages/wfcZ58YaF2v8S8nMUlgZ" %}
[Calculator](/navi-protocol-developer-docs/smart-contract-overview/calculator.md)
{% endcontent-ref %}

{% content-ref url="/pages/gUUa0Bd53JuNTrm4KQB3" %}
[Dynamic Calculator](/navi-protocol-developer-docs/smart-contract-overview/dynamic-calculator.md)
{% endcontent-ref %}

{% content-ref url="/pages/Fxzr4kqsYu6avApSJPlG" %}
[Storage](/navi-protocol-developer-docs/smart-contract-overview/storage.md)
{% endcontent-ref %}

{% content-ref url="/pages/nulOh5niMKAoXgszb2Fp" %}
[Release History](/navi-protocol-developer-docs/smart-contract-overview/release-history.md)
{% endcontent-ref %}

## Github Repo of NAVI Interfaces:

{% embed url="<https://github.com/naviprotocol/protocol-interface>" %}
NAVI Interface Repo
{% endembed %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://naviprotocol.gitbook.io/navi-protocol-developer-docs/smart-contract-overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
