LogoLogo
HomeApp
  • 👋Introduction to Perennial
  • 🌸Perennial Petals
    • 💰Trading Competition - Flight School
  • ⛓️Perennial Chain
    • 🌺Mainnet
    • 🌼Testnet
  • 📚Guides
    • Bridging to Perennial
    • Create an Account
    • Place a limit order
    • Bridging from Perennial
  • 🏗️Protocol
    • 🏛️Markets
      • 📝Market Design
      • 🔮Oracles & Settlement
      • 📈Payoff & Positions
      • 💰Trading Fees & Price Impact
      • ⚖️Funding & Interest Rate
      • 🌊Leverage & Liquidations
      • 👩‍🌾Liquidity Provisioning
      • 📝Advanced Order Types
      • 💵Collateral
    • 📬Intents
      • 📑Mechanism
      • 🔗Offchain Infrastructure
      • 🏦Intent Solvers (Makers)
      • 📑Specification
    • 🛄Collateral Accounts
    • 🏦Vaults
    • 💽Codebase
    • 🛑Protocol Risks
  • 🏗️Building on Perennial
    • Why Perennial?
    • Before Integrating
    • Frontend & Client Integrations
    • Smart Contract Integrations
    • Offchain Infrastructure
    • Guides
      • ✏️Creating a New Market
      • 👂Subscribe to Market Updates
  • ⁉️Frequently Asked Questions
    • Perennial
    • Trading
    • Markets
    • Fees
  • 📡Protocol Info
    • Markets & Vaults
    • Protocol Contracts
  • 🔐Security
    • Audits & Bug Bounty
  • 🎉Perp.Fun
    • Introduction
    • Autopilot
      • Weekly Autopilot Rewards
Powered by GitBook
On this page
  • Benefits
  • Account Creation
  • Collateral
  • Implementation
  1. Protocol

Collateral Accounts

PreviousSpecificationNextVaults

Last updated 6 months ago

Collateral accounts help users manage collateral across Perennial markets on a single chain in a gas-less manner. Colloquially called "1-click-trading".

The majority of actions are performed using message payloads submitted to keepers through a relayer. Users may self-sign their messages or delegate one or more signers.

Benefits

  • Gasless Trading - Moving collateral among markets can now be done with signed EIP712 transactions.

  • Bundled actions - Multiple different collateral actions can be bundled into a single transaction.

  • Dynamic Rebalancing - LPs can leverage the rebalancing deatures of collateral accounts to automatically shift collateral between markets.

Account Creation

Account creation was designed to be as flexible as possible. Rather than requiring a transaction from an EOA send a transaction, a user can instead just send USDC to the deterministic address of the future collateral account & rely on a relayer to execute the creation.

Process:

  • Get deterministic address from Controller contract.

  • Before the account is created, transfer DSU or USDC to that address for keeper compensation.

  • Send a message to the relayer requesting account creation.

Note: A user's EOA may deploy only one collateral account.

Collateral

Implementation

All USDC in the account is implicitly wrapped to when transferring an amount greater than the account's balance into a market. Funds transferred out of markets are not unwrapped until withdrawal.

You can see the implementation of this system

🏗️
🛄
EIP-712
DSU
DSU
here