D4X.io - Documentation
  • WELCOME
    • 🖐️D4X.io: Decentralized Margin Trading Protocol
    • 😎How it works
      • Open position
      • Close position
      • Deposit pools
      • Withdraw pools
      • Connect wallet
      • Receive Test coins - Faucet
    • 🔭Pitch deck
    • 📃White paper
  • PRODUCT
    • 🧬Smart contracts scheme
    • 🚸User Cases
      • Case 1. Trader Open Position
      • Case 2. Trader Close Position (with profit)
      • Case 3.1. Liquidation (normal case)
      • Case 3.2. Liquidation (with loss & enough iFund)
      • Case 3.3. Liquidation (with loss & empty iFund)
      • Case 4. Deposit ALP Pool
      • Case 5. Withdraw ALP Pool
    • 🎨Design UX/UI
      • Position Screen
      • DashBoard Screen
      • Pool Screen
      • Test Start Screen
    • 🚧How it's made
    • 📖Dictionary D4X
  • DEVELOPMENT
    • 🔗Addresses & deployments Smart Contracts
      • Addresses Main Protocol
      • Addresses Test Coins
      • Addresses ALP Auto Leverage Pools dfPool
    • 🎱GitHub Source
    • 🦖Testnets - Try App
  • Plans
    • 🛣️Roadmap
    • 🤝DAO
    • 🌱App Versions
      • Alpha 1.1
      • Alpha 1.0
  • CONNECT
    • 🌐Links
    • ❔FAQ
    • 🕶️Privacy Policy
    • 🌌Powered by GoDeFX Lab
Powered by GitBook
On this page
  1. PRODUCT
  2. User Cases

Case 2. Trader Close Position (with profit)

PreviousCase 1. Trader Open PositionNextCase 3.1. Liquidation (normal case)

Last updated 1 year ago

Example of closing position in the scheme:

Trader closes the position in 5 ETH.

Market exchange rate was raised to 2100 USDT for 1 ETH.

Reward for Credit funds 10% annual rate for 3 days = 8 USDT.

Reward in Deposit protocol 2% annual rate for 3 days = 0.0008 ETH = 2 USDT.

Total reward equals 10 USDT splits on 90% to ALP and 10% to iFund

🚸