# How Does Lumia Stream Perpetuals Work?

Lumia Stream Perpetuals operates using the same foundational mechanism as Lumia Stream Spot but is specifically tailored for the perpetuals market. This adaptation allows the system to handle the unique requirements of perpetual contract trading, ensuring efficiency and security comparable to spot markets.

**Key Features of Lumia Stream Perpetuals:**

1. **Smart Contract Integration:**
   * **Trade Data on Blockchain:** All trade-relevant data is recorded on smart contracts. This ensures transparency and immutability of all transactions, which is crucial for maintaining trust and accuracy in the perpetuals market.
   * **Security of Funds:** The design ensures that users' funds never leave the smart contract unless a specific transaction, like settling a trade or withdrawing balance, is executed by the user. This feature significantly enhances the security of funds, mitigating the risk of hacks or unauthorized access.
2. **Role of Liquidity Nodes:**
   * **Funding and Settlements:** Liquidity Nodes play a vital role by depositing funds into the smart contract. This deposit is essential as it guarantees the availability of funds for instant settlement of trades. The ability to settle trades immediately is particularly important in the fast-paced environment of perpetual markets, where price fluctuations are frequent and rapid.
   * **Decentralized Execution:** The Liquidity Nodes facilitate a completely decentralized trading process. By managing the execution and settlement of trades directly through the smart contract, the system eliminates the need for traditional intermediaries, which often introduce delays and additional costs.
3. **Instant Settlements:**
   * **Atomic Transactions:** Similar to Lumia Stream Spot, transactions in Lumia Stream Perpetuals are executed atomically. This means that the trade and the hedging activities are processed in a single, indivisible operation, ensuring that either all parts of the transaction are completed successfully or none at all.
   * **Efficiency and Reliability:** The atomic nature of transactions not only secures the trading process but also enhances the efficiency by minimizing the time lag between trade initiation and completion. This is particularly beneficial in markets for perpetual contracts, where timing and speed are critical.
