Skip to content

ajey35/Jupitor

Repository files navigation

image

image



LazorSwap ⚡

Solana DEX with Passkey Authentication & Zero-Custody Swaps

Solana Version License WebAuthn Test Coverage

FeaturesHow It WorksArchitectureGetting StartedSecurityTech StackContributing


✨ Features

Feature Description Tech Stack
🔐 Passkey Auth Biometric/FIDO2 login with device security LazorKit, WebAuthn
Instant Swaps SOL ↔ Lazy-Token swaps in <1s SPL Token Swap
💧 Liquidity Pools Earn 0.3% fees on trades Constant Product AMM
📊 Portfolio Tracking Real-time balance updates Solana Web3.js
🔒 Non-Custodial Users control assets end-to-end secp256r1 Signatures

🧠 How It Works

🔐 Authentication via LazorKit

  • Login using device biometrics like Face ID or fingerprint.
  • No wallet extensions, no private key management.

🔁 Token Swap

  • Users swap between Lazy-Token and SOL (wSOL under the hood).
  • Powered by Solana’s SPL Token Swap.

💧 Liquidity Provision

  • Users deposit Lazy-Token + wSOL to the pool.
  • In return, receive Lazor-Tokens (LP tokens).
  • These LP tokens can later be used to withdraw liquidity.

🧾 Transaction Signing

  • All swaps, deposits, and withdrawals are passkey-signed with secp256r1.
  • No browser wallet or private key exposure — it's WebAuthn-native.

🏗 Architecture

graph TD
    A[User] -->|Passkey Auth| B(LazorKit Wallet)
    B -->|Secure Session| C[Frontend]
    C -->|Swap Request| D{SPL Token Swap}
    D -->|Jupiter API| E[Solana RPC]
    E -->|TX Confirmation| C
    C -->|LP Tokens| F[Liquidity Pool]
Loading

🚀 Getting Started

1. Clone the Repo

git clone https://github.com/your-org/lazorswap.git
cd lazorswap

2. Install Dependencies

pnpm install

3. Start the DApp

pnpm dev

Make sure to connect to a Solana devnet wallet using LazorKit.


🔒 Security

  • 🔐 No seed phrase is ever stored.
  • 💾 No cookies or localStorage misuse.
  • 🔏 All operations are cryptographically signed with passkeys using secp256r1.

🧰 Tech Stack

  • @solana/web3.js — Solana blockchain SDK
  • @solana/spl-token — SPL token utilities
  • @solana/spl-token-swap — Core swap logic
  • lazorkit — WebAuthn wallet integration
  • Vite + React — Frontend tooling
  • Tailwind CSS — UI styling

🤝 Contributing

  1. Fork the repo 🍴
  2. Create your feature branch git checkout -b feat/amazing-feature
  3. Commit your changes ✅
  4. Push to the branch git push origin feat/amazing-feature
  5. Open a Pull Request! 🚀

📄 License

MIT © 2025 — Built with ⚡ by Ajey


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published