Swirl Liquid Staking
  • Intro
    • Liquid Staking Fundamentals
    • FAQ
  • Tech
    • IOTA Contract Infrastructure
      • Overview
      • Contract Details
  • Supported Wallets
  • How-to
    • Requesting Testnet Tokens
Powered by GitBook
On this page
  • How It Works
  • Validator Selection & Staking/Unstaking Strategy
  • Instant Unstake Mechanism
  1. Tech
  2. IOTA Contract Infrastructure

Overview

PreviousIOTA Contract InfrastructureNextContract Details

Last updated 1 month ago

The NativePool contract is a key component of IOTA Liquid Staking, enabling users to stake their IOTA tokens in exchange for stIOTA tokens and unstake them instantly — potentially at a more favorable rate.

How It Works

  • The NativePool contract leverages the following methods to stake users' IOTA tokens:

    • request_add_stake_non_entry

    • request_withdraw_stake_non_entry

  • As soon as IOTA tokens have been staked, the user receives the corresponding amount of StakedIOTA, which is held within the contract.

Validator Selection & Staking/Unstaking Strategy

To optimize staking and unstaking operations, the contract diversifies staking across multiple validators. The selection mechanism operates as follows:

  1. Priority-Based Staking: The system assigns priority levels to validators. The contract stakes tokens only with the validator that has the highest priority.

  2. Optimized Unstaking: For unstaking, the process starts with the validator that has the lowest priority.

This approach ensures efficient staking allocation, minimizes reliance on intermediaries, and enhances the decentralization of staking operations in the IOTA ecosystem.

Instant Unstake Mechanism

One of the key features of NativePool is the instant unstake mechanism, which allows users to burn their stIOTA tokens and receive IOTA immediately — without waiting for an epoch transition. This ensures immediate liquidity while maintaining network stability.