Kwenta V3 Docs
DiscordKwentaTwitterBlog
  • 🥂Welcome to Kwenta
  • Welcome to Kwenta
    • 🔄Bridging on Kwenta
  • V3 Perps
    • 📜Perps V3
    • ♨️Multi Collateral
      • What is USDx?
      • The Mechanics of USDx
      • Edge Cases in Liquidation:
      • Settlement of Debt
      • FAQ's
    • 📚Perps Basics
    • 💰Margin Types & Collateral
    • ⚖️Funding
      • Technical Details
    • 🤝Maker or Taker?
    • 💪Leverage & Initial/Maintenance Margin
    • 🔚Account Health & Liquidations
    • 🛜Conditional Orders
    • ⚡Gasless One-Click Trading
      • 🟩Starting/Stopping 1CT
      • ⁉️FAQ
    • 🗣️Delegated Trading
      • 📙Getting started with Delegation
      • 👩‍🎓Managing Delegates
      • 🔐Accessing Accounts Delegate to You
    • 📈Trading Tutorial
  • Infrastructure Overview
    • 📕Getting Started
    • 🔍System Overview
    • 🗂️Account Management
    • 👥Delegate Management
    • 💻Conditional Orders
    • 🌐Oracle Data
  • Resources
    • 🕵️Audits
    • GitHub
Powered by GitBook
On this page
  • SMv3 Step-by-Step Guide
  • Quick Start Overview

Was this helpful?

  1. Infrastructure Overview

Getting Started

PreviousTrading TutorialNextSystem Overview

Last updated 1 year ago

Was this helpful?

SMv3 Step-by-Step Guide

Quick Start Overview

This simplified guide provides a streamlined approach for interacting with SMv3. Note that "Proxy" refers to the Synthetix Perps v3 market proxy.

Initial Setup

  1. Account Creation: Initiate a Synthetix v3 Account using Proxy.createAccount.

  2. Permission Granting: Assign admin permission to Kwenta's Engine via Proxy.grantPermission.

    • Efficiency Tip: Steps 1 and 2 can be combined into a single transaction using Synthetix v3's , a feature co-developed by Kwenta.

Trading Preparation

  1. Collateral Approval: Approve the Engine to manage your trading collateral (e.g., $USDC, $snxUSD, $snxBTC, $snxETH) using IERC20.approve.

  2. Collateral Deposit: Deposit your trading collateral with Engine.modifyCollateral.

Trading Execution

  1. Commit Async Order: Execute trades (one at a time, as per Synthetix restrictions) using Engine.commitOrder.

    • Batching Capability: Steps 4 and 5 can be processed together, thanks to the multicall functionality of the Kwenta Engine.

Programmatic Interaction Guide

For those looking to interact programmatically, here are detailed steps with corresponding code examples:

This guide aims to facilitate a clear and efficient journey through SMv3’s setup and trading processes.

TrustedMulticallForwarder
Creating a Synthetix v3 Account
Granting Kwenta's Engine Admin Permission
Approving Engine for Collateral Spend
Depositing Supported Collateral
Opening a Position via Async Order
Credit Funding for Conditional Order Execution
Debiting Account to Return Credited Funds
Defining a Conditional Order
Executing a Valid Conditional Order
📕
Page cover image