CentaurLabs (ERC)
  • CentaurLabs (ERC)
    • CentaurLabs Overview
    • Introduction | CentaurLabs
    • Architecture Overview
    • Technical Infrastructure
  • CentaurLabs | Gasless Swap
    • Gasless Swap Workflow
    • Gasless Swap Mechanism
  • CentaurLabs Roadmap & Social
    • Roadmap
    • CentaurLabs | Social
Powered by GitBook
On this page
  1. CentaurLabs | Gasless Swap

Gasless Swap Mechanism

Smart Contract Architecture

CentaurLabs employs a set of smart contracts that facilitate gasless swaps. These contracts interact with user wallets, the Ethereum blockchain, and off-chain components to execute seamless token swaps. The core contracts include:

  • SwapManager: Manages the swap process, interacting with off-chain components and handling the creation of NFTs.

  • NFTFactory: Creates unique NFTs representing individual swaps and stores them on-chain.

  • ETHBridge: An off-chain component that bridges ETH to cover gas fees for users.

Non-Fungible Tokens (NFTs)

Each swap transaction generates a unique NFT representing the transaction. These NFTs serve as gas fee vouchers and can be traded or sold. Users can choose to hold these NFTs or sell them to cover their gas fees in future transactions.

Gasless Swap Process

  1. User Request: The user initiates a token swap request, specifying the tokens, amounts, and target addresses.

  2. SwapManager Processing: The SwapManager verifies the user's request and checks if they have sufficient NFTs to cover gas fees. If not, the user is prompted to acquire the necessary NFTs.

  3. NFT Creation: The NFTFactory generates unique NFTs representing the swap transaction.

  4. ETH Bridge: The ETHBridge component covers the gas fees for the transaction in exchange for the generated NFTs.

  5. Token Swap: The swap is executed on the Ethereum blockchain, and the user receives their desired tokens in their wallet.

PreviousGasless Swap WorkflowNextRoadmap

Last updated 1 year ago