Singularity
  • START HERE
    • Introduction
    • 🚀Mission
    • Supporters
    • The Team
    • 🎯Target User(s)
      • 📊Funds
      • DeFi Applications
      • L1 and L2s
  • The Singularity Solution
    • Protocol Overview
    • Core ZK-Infrastructure
  • CORE USE-CASES
    • Unified Cross-Chain Compliance Oracle
    • Private OTC Settlement
    • 🌑Dark pool (Orderbook & Private AMM)
    • Vesting in Stealth
      • Vesting in Stealth Guide
        • (Projects) Confidential Vesting Streams Guide
        • (Projects) Transfer Confidential Vesting Streams Guide
        • (Recipients) Receive Confidential Vesting or Vested Tokens
        • (Recipients) Check & Claim Confidential Vested Tokens
    • Private Payments
    • Swaps
    • Liquidity Provisioning
  • HOW TO GET STARTED?
    • Onboard in 4 easy steps...
    • 🏛️KYC/KYB Guide
      • KYC (Keyring Network)
      • KYB (Keyring Network)
      • KYC (zkMe) for accessing Arbitrum
    • On-Chain Singularity Actions
      • Deposit
      • Withdraw
      • Swaps
      • LP (Adding Liquidity)
      • LP (Removing Liquidity)
      • LP (Collect Fees)
      • Internal Transfer
      • Compliant Staking
        • Staking via Direct Deposit
        • Staking via Private Notes
  • Welcome to the Singularity Service (Hint: Points Points)
    • Page
    • Introduction to the Singularity Secret Service
    • 📜High-level overview Singularity Season 2 (SS2) Guideline
    • How to get started and qualify
    • Discuss roles
    • Dashboard
    • Burning mechanism
    • leveling up and each role
    • OG points vs OG Tokens
    • Partner Campaigns
    • Mission 1 Guideline Overview
      • Mission 1 Guideline with zkMe!
        • How to Deposit on Singularity: Step-by-Step Guide
    • 🕵️ SS2 - Singularity
      • ⁉️ How and where to get started?
      • 🖥️ Season 2 Dashboard
      • 👨‍🚀 CORE GAME PLAY
      • 💵 Earning Mechanism
        • 🖼️ OG POINTs
        • 🤖 OG points <> $OG
  • HOW TO EARN POINTS & YIELD?
    • ⭐Compliant Staking Overview
    • How to participate?
    • Staking via Direct Deposit
    • Staking via Private Notes
    • How to Withdraw?
    • Redeem (i.e sgETH->ETH)
    • sgToken Partners
    • FAQs
  • FOR DEVELOPERS
    • Custom SDK Integration
      • Bridging Smart Contract
      • Front-End
    • Singularity's Architecture
    • Native Transactions
    • DeFi Integrations
      • Uniswap V3
      • Curve Finance
    • The Relayer
    • Smart Contract Addresses
    • Smart Contracts (Compliant Staking)
  • SINGULARITY MISCELLANEOUS
    • 🚨Protocol Security
    • 🪙Tokenomics
    • FAQ
  • 🕶️The Darkpool
    • Darkpool Overview (Testnet)
      • About Sepolia ETH
      • Earning and Tracking Points
      • How to Make a Trade on Testnet
    • Darkpool FAQs
      • Trading Details
      • Security and Compliance
      • Technology Overview
      • Benefits of Trading in a Darkpool
Powered by GitBook
On this page
  • Swap
  • Liquidity Provision Management
  1. FOR DEVELOPERS
  2. DeFi Integrations

Uniswap V3

These integrations provide users with an additional layer of privacy when handling their funds and performing trades via 3rd party liquidity protocols. All transactions on-chain appear to be performed solely by the singularity contract making identification of traders behind actions such as large buy or sell orders via Uniswap more challenging.

Swap

A trader generates a proof that encompasses their signature and gives permission for the singularity to exchange the value tied to a note for another asset via Uniswap.

Signature comes from cryptographically signing a message with the parameters:

[
    in_note,              // Note being spent
    in_nullifier,         // Corresponding nullifer to the note being spent
    out_note_footer,      // Note footer for newly formed note
    out_asset,            // Address of the asset being received in exchange
    pool_fee,             // Pool fee of the swap (Uniswap)
    amount_out_min,       // Minimum qty of the asset being received in exchange
    relayer               // Gas fee for the relayer
]

“I warrant for in_note to be spent and swapped out for a minimum of amount_out_min qty of out_asset stored as a newly created out_note that I own.”

Right now the Singularity provides support for single swaps that are performed via the exactInputSingle method call on the Uniswap V3 ISwapRouter interface.

Liquidity Provision Management

The Singularity allows traders to create and manage Uniswap V3 LP positions anonymously. Ownership of LP positions are tracked in the Singularity using notes in the form of NFTs that Uniswap issues for LP positions.

Initially, Singularity provides support for users to:

  • Provision liquidity

  • Collect fees on existing liquidity positions

  • Remove liquidity

PreviousDeFi IntegrationsNextCurve Finance

Last updated 8 months ago