Skip to main content

Lunarys Protocol

Lunarys is a decentralized exchange protocol built on Fhenix CoFHE that enables fully private token swaps using Fully Homomorphic Encryption (FHE).

What is Lunarys?

Lunarys Protocol provides an Automated Market Maker (AMM) where all financial operations remain confidential. Unlike traditional DEXs where transaction amounts and pool reserves are publicly visible on-chain, Lunarys encrypts:

  • Token balances
  • Swap amounts
  • Pool reserves
  • Liquidity positions

This privacy is achieved through Fhenix's CoFHE (Collaborative Fully Homomorphic Encryption) technology, which allows computations on encrypted data without revealing the underlying values.

Key Features

Confidential Swaps

Execute token swaps where the input and output amounts are encrypted. Only the transaction participants can see the actual values.

Private Liquidity

Provide liquidity to pools without revealing how much you have deposited. Your position is represented by an NFT with encrypted amounts.

Encrypted Reserves

Pool reserves are stored as encrypted values. The constant product formula (x * y = k) operates entirely on encrypted integers.

Fee Distribution

Swap fees are calculated and distributed to liquidity providers using encrypted arithmetic, maintaining privacy throughout the process.

Protocol Components

ComponentDescription
PrivacyPoolCore AMM contract with encrypted reserves
PoolFactoryFactory for deploying new liquidity pools
PositionNFTNFT representing encrypted liquidity positions
FHERC20ERC20-compatible token with encrypted balances

Technology Stack

  • Blockchain: Ethereum-compatible (Sepolia, Arbitrum Sepolia)
  • FHE Runtime: Fhenix CoFHE
  • Smart Contracts: Solidity 0.8.25
  • AMM Model: Constant Product (x * y = k)
  • Standards: ERC20, ERC721, FHERC20

Getting Started

  1. Read the Overview to understand the protocol
  2. Explore the Architecture for technical details
  3. Follow the Quick Start guide to deploy contracts
  4. Review Smart Contract documentation for integration

License

Lunarys Protocol is licensed under BUSL-1.1.