Balmy
DCA
DCA
  • Introduction to the protocol
  • FAQ
  • Concepts
    • Positions
      • Actions
      • NFT/Permissions
      • Swap Intervals
    • Fees
    • Swaps
    • Token Integration
    • Yield Sources
  • Architecture
    • Core
      • Hub
      • Permission Manager
      • NFT Descriptor
    • Periphery
      • Companion
      • Libraries
  • Tech Guides
    • Interacting with the protocol
    • Smart Contract Registry
    • Swaps
      • Next Swap
      • Executing a Flash Swap
    • Position Management
      • Creating a Position
      • Modifying a Position
      • Withdrawing from a Position
      • Terminating a Position
    • Permission Management
    • Subgraphs
      • Playground
      • Fetch all pairs
      • Fetch all tokens
      • Fetch all active intervals
      • Fetch positions by address
    • Github
  • Mean explained by friends
    • By Perpetual Protocol
    • By Ceazor's Snack Sandwich
  • Other
    • Bug Reports
Powered by GitBook
On this page
  • Modify a position
  • Withdraw swapped balance
  • Terminate a position

Was this helpful?

  1. Concepts
  2. Positions

Actions

As we explained before, users can create a position at any time. Once their position is created, there are some actions that they can perform on them.

Modify a position

Users can choose to modify their positions in a few different ways. They can:

  • Add more funds to their position

    • For example, increasing the rate from 5 DAI to 10 DAI

  • Remove funds from their position

    • For example, reducing the rate from 5 DAI to 3 DAI

  • Reorganize the available funds

    • For example, going from a 5 DAI rate in 8 swaps, to a 4 DAI rate in 10 swaps

Now, as you have probably noticed, only a position's "rate" and "amount of swaps" properties can be modified. The "swap interval", "from" and "to" properties cannot be changed.

Withdraw swapped balance

When a swap is executed on a position, the remaining balance decreases and their swapped balance increases. In John's example, the DAI balance would decrease, while the WETH balance would increase. John can choose to withdraw their swapped balance at any point.

Terminate a position

Users can also choose to terminate their position at any point. When this happens, the position is destroyed, and all remaining and swapped balance is returned to the user.

PreviousPositionsNextNFT/Permissions

Last updated 2 years ago

Was this helpful?