LogX Docs
  • LogX Aggregator
    • Trading Guide
      • Open Position - Market Order
      • Close Position - Market Order
      • Positions
      • Open Position - Limit Order
      • Close Position - Limit Order
      • Cancel Order
      • Orders
      • Open Position - TPSL Order
      • Close Position - TPSL Order
    • Functional Guide
      • Chains
      • Exchanges
      • Routing
      • Assets
      • Fees
    • Technical Guide
      • Architecture
      • Contracts
    • Protocol Details
      • Audits
      • APIs
      • Bug Bounty
  • LogX Perp Dex
    • Overview
    • Liquidity
      • Liquidity Providers
      • LLP Token
    • Chains and Pairs
    • Fee Structure
    • Incentives and Rewards
    • Contracts
      • Blast
    • Technical Overview
      • Open/Increase a market Position
      • Close/Decrease a Market position
      • Market Order Execution
      • Placing a Limit order
      • Limit and TPSL Order Execution
      • Liquidations
      • Adding/Removing Liquidity
      • Staking
  • Audit
Powered by GitBook
On this page
  1. LogX Aggregator
  2. Technical Guide

Architecture

PreviousTechnical GuideNextContracts

Last updated 1 year ago

Following diagram depicts the architecture of LogX Aggregator.

User's trade request is sent to LogX Aggregator ProxyFactory via the Transferable Upgradeable proxy Contract.

For each unique User Address, Collateral Token, Underlying Token, isLong (true if position is long and false if position is short), a User Position Contract is created which will interact with the Exchange Contracts. The ProxyFactory contract makes sure each trade request is routed to the right User Position Contract.

The User Position Contract handles opening and closing trades, placing, modifying and cancelling orders and getting information related to the user's position.