-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perpetual Futures #977
Comments
Below a proposal of how perpetual futures could look like for the users. sequenceDiagram
actor u as User
participant a as App
participant c as Coordinator
Note right of a: Position is about to expire. e.g. in 2 hours
c->>u: Push notification: Come online to rollover your position.
u->>a: Starts 10101 app
a-->>u: Show dialog for extending position
alt Extend position
a-->>c: Extend position
c->>c: Calculate funding rate
c->a: Execute extend position protocol
a->>a: Update position
a-->>u: Show finished extending position
else Close position
a-->>c: Close position
c-->a: Execute collaborative close position protocol
a->>a: Remove position
a-->>u: Show finished close position
end
I propose we let the user decide on to either extend or close the position. That could be a simple dialog with a Yes / No Option on startup (if position is about to expire) |
what's the advantage of asking the user a question instead of extending it automatically until the user wants to close the trade? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Mostly done :) |
At the moment we have an expiry timestamp on every position. After it has been expired we will trigger a collaborative closure once the user is back online. With perpetual positions we want to add the possibility to "rollover" a position and extend it.
Tasks
The text was updated successfully, but these errors were encountered: