# IOTA Contract Infrastructure

### Introduction

The NativePool contract introduces a decentralized liquid staking mechanism for IOTA, enabling users to stake and unstake efficiently with instant liquidity. By incorporating dynamic validator prioritization and a structured fee model, the protocol ensures:

* **Network stability** through optimized stake distribution.
* **Competitive rewards** for participants.
* **Flexibility and security** in staking operations.
* **Efficient fund management** for sustainable long-term participation.

This implementation enhances user experience, decentralization, and economic efficiency, making IOTA liquid staking accessible and rewarding for all participants.

### Contract Audit

To ensure the highest standards of security and reliability, the Swirl's Iota liquid staking protocol underwent a comprehensive smart contract code review and security analysis conducted by Hacken, a leading blockchain security firm. The audit assessed the contract logic, potential vulnerabilities, and adherence to best practices.

You can review the full audit report below:

{% file src="/files/9DsC49jXq7kLHSpB4eji" %}

### Further Reading

To find out more on the contract specifics, refer to the corresponding sections:

* [**Overview**](/tech/iota-contract-infrastructure/overview.md): explains how the NativePool contract facilitates liquid staking in IOTA, detailing its staking mechanism, validator selection strategy, instant unstake feature, and fee model to ensure efficient, decentralized fund management.
* [**Technical Details**](/tech/iota-contract-infrastructure/contract-details.md): outlines the core components, dependencies, and key functions of the NativePool contract, including staking, unstaking, rewards calculation, validator management, fee collection, pause functionality, and upgrade mechanisms, ensuring efficient and decentralized liquid staking operations.


---

# 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.swirlstake.com/tech/iota-contract-infrastructure.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.
