Jellyverse Docs
WebsiteApp
English
English
  • Overview
    • How to Connect to SEI
    • How to get SEI Devnet Funds
    • How to make your first Swap
  • Protocol Library
    • JellySwap
      • Liquidity Management
        • Swaps
      • Pools
        • Weighted Pools
        • Stable Pools
          • Composable Stable Pools
        • Setting up a Pool Configuration
      • Impermanent Loss
        • 50/50 Pools
        • 80/20 Pools
        • Multitoken Pools
      • Preminted JPT
      • Relayers
      • Smart Order Router (SOR)
    • JellyStake
      • Staking Chests
      • Voting power
    • jAssets by BLKSWN
      • Liquidation and the Stability Pool
      • Liquidation Logic
      • Recovery Mode
      • jUSD Redemption
      • Expected User Behaviors
      • Core Smart Contracts
      • PriceFeed and Oracle
      • Contract Ownership and Function Permissions
      • Keeping a sorted list of Vaults ordered by LACR
      • Supplying Hints to Vault operations
      • Gas compensation
      • The Stability Pool
      • Swap Pools
      • Protocol System Fees
      • Governance
      • Audits
  • Jellyverse Architecture
    • Governance
    • Rewards
    • Reward Distributor
    • Tokenomics
    • Whitepaper
    • Contract Addresses
  • Audit
  • Community
    • Socials
  • COMMUNITY PROTOCOLS
    • Introduction
Powered by GitBook
On this page
  1. Protocol Library
  2. JellySwap

Relayers

What is a Relayer? A relayer acts like a trusted middleman in the JellySwap ecosystem. By granting permission to a relayer, users can let it execute certain tasks (like swaps, joins, or exits) on their behalf. However, this isn't as risky as it sounds, because there are multiple layers of security in place.

Key Points about Relayers:

  1. Two-Tier Authorization: For a relayer to function, both the user and the protocol have to authorize it.

  2. Freedom in Design: There's no fixed blueprint for creating a relayer. If you're planning to craft one, decide if it will be standalone or part of the Batch Relayer.

  3. User-Level Authorization: Users can choose to give a one-time approval via signature or a persistent one via transaction.

  4. Protocol-Level Authorization: Here, the protocol's authorizing body (like the Jellyverse DAO) dictates what actions the relayer can execute and on which contracts.

  5. Batch Relayer: This special relayer allows multiple actions to be linked and executed together, offering a smoother user experience.

Why Use Relayers?

  1. Efficiency: Users can execute complex operations with just a single transaction.

  2. Flexibility: Relayers can adapt to various tasks, from simple swaps to intricate migrations across pools.

  3. Safety: Even though relayers can act on a user's behalf, built-in authorizations ensure misuse is avoided.

A Practical Use Case: Pool Migration JellySwap aims to provide liquidity providers (LPs) with optimal capital efficiency. Thus, it introduced the ability to move from an older pool to a more capital-efficient one. Instead of manually going through a series of steps to migrate between pools, a relayer can combine them all into one smooth transaction.

In essence, relayers in the JellySwap environment make processes more streamlined, efficient, and user-friendly while ensuring security remains paramount.

Last updated 1 year ago