KLAYswap
English
English
  • Introduction
  • Protocol Overview
  • Core Concept
  • KLAYswap Advantages
  • Risk & Security
  • Privacy Policy
  • Audit
  • TOKENOMICS
    • KSP
      • KSP TOKENOMICS
      • Automation of KSP distribution rate
        • Voting policy on passing governance
        • KSP distribution ratio reflection policy
      • KSP Allocation
  • PRODUCT
    • SWAP
    • Single-side Deposit
      • Detailed policy of Single Deposit
    • Pair Deposit
    • V3 Pair Deposit
      • V2 to V3 Migration
        • V2 to V3 Migration Guide
        • V2 to V3 Migration Policy
      • V3 Pair Deposit
        • V3 Deposit Guide
        • V3 pair Deposit Policy
      • V3 to V3 Migration
        • V3 to V3 Migration Guide
        • V3 to V3 Migration Policy
      • V3 Pair Withdraw
        • V3 Withdraw Guide
        • V3 Withdraw Policy
    • Plus Deposit
      • Detailed policy of Plus Deposit
    • Long/Short Position Deposit
      • Open and Close Long/Short Positions
        • Open Short Positions
        • Open Long Positions
        • Remove Long Position
        • Remove Short Position
      • Position Deposit Details Policy
    • KSP Staking & Voting
      • Staking, Pool Voting Policy
    • Governance
      • Governance Voting Policy
    • Drops
    • Ecopot
    • Pool Airdrop
    • APR & APY
      • TVL
      • Pool
      • Staking
    • Interest rate
  • DEVELOPERS
    • Contract
      • Factory
      • Exchange
      • PoolVoting
      • VotingKSP
      • Treasury
      • Distribution
      • Governor
      • SinglePool
      • SinglePool Factory
      • PlusPool
      • PlusPool Factory
      • Store
      • Utils
      • Single/Plus Utils
      • Helper
      • EcoPotVoting
      • EcoPot
      • V3
        • V3Factory
        • V3Pool
        • NonfungiblePositionManager
        • NonfungibleTokenPositionDescriptor
        • V3SwapRouter
        • V3Migrator
        • V3Estimator
        • PositionMigrator
        • V3Treasury
        • V3AirdropOperator
        • UniversalRouter
    • Airdrop
      • Set Airdrop Operator
      • Start Airdrop
    • EcoPot
      • Set EcoPot
      • Start EcoPot
  • HOW-TO GUIDES
    • KLAYswap Guide
    • How to add liquidity on KLAYswap
    • [Burrito Wallet] How to deposit assets using mobile devices?
    • How to create a liquidity pool on KLAYswap
    • How to stake and vote on KLAYswap
    • How to deposit assets
      • Deposit Klaytn-based assets
      • Deposit Ethereum-based assets
      • Deposit XRP
    • FAQ
  • KLAYswap
  • Orbit Bridge
  • KLAYswap git
  • Orbit Bridge git
  • KLAYswap audit report
Powered by GitBook
On this page

Was this helpful?

  1. PRODUCT
  2. Long/Short Position Deposit
  3. Open and Close Long/Short Positions

Remove Long Position

PreviousOpen Long PositionsNextRemove Short Position

Last updated 2 years ago

Was this helpful?

Detailed procedures for Removing long positions

The example above assumes that the KLAY 3x long position deposit user opened positions at 1 KLAY = 0.5 USDT, and after a year closed all positions at 1 KLAY = 0.8 USDT.

User's account status at the time of opening is as follows.

1) Price of KLAY at opening: 1 KLAY = 0.5 USDT

2) Earn USDT single pool deposit interest on my asset 1,000 USDT (3.00% per year), Earn KSP reward 3) Earn KLAY single pool deposit interest on position asset 5,982 KLAY (2.00% per year), Earn KSP reward

4) ) USDT Utilization cost for utilized asset 3,000 USDT incurs (6.00% per year)

At the time of closing the position after 1 year, the account situation is as follows.

1) Price of KLAY at closing: 1 KLAY = 0.8 USDT

2) My Asset = 1,000 USDT *(1+0.03) = 1,030 USDT = $ 1,030.00

3) Position Asset = 5,982 KLAY*(1+0.02) = 6101.64 KLAY = $ 4,881.31

4) Utilized Asset = 3,000 USDT*(1+0.06) =3,180 USDT = $ 3,180.00

Step 1

  • When requesting position close, the utilized asset, USDT, is first returned using KLAY, a long position token deposited in a single pool.

  • To return the utilized 3,180 USDT, 3986.96088 KLAY has to be swapped for USDT from the KLAY/USDT pool.

[Reference] Calculation of the quantity of KLAY (x) needed to return 3,180 USDT

1 KLAY = 0.8 USDT, 0.3% swap fee will incur during swap. x = 3,180/((1-0.003)*0.8) = 3986.96088265 KLAY

Step 2

  • Close the position by returning the 3,180 USDT earned.

  • Partially returning the assets lets the user decide how many positions to close.

The following assets will be distributed to the user who has completed depositing long positions as described above.

1) My Asset 1,030 USDT (Deposit interests + 30 USDT earned)

2) Position Profit + 1,701.31 USDT (=$4,881.31- $3,180.00)

3) Additional KSP rewards from USDT and KLAY pool