get10101 / 10101

10101 (Ten-Ten-One): Self-custodial derivative trading at your fingertips.
https://10101.finance
MIT License
128 stars 23 forks source link

Failed rollover if the wallet hasn't synced yet #2630

Open holzeis opened 3 months ago

holzeis commented 3 months ago

If a position gets opened very close to the rollover window, it could happen that the app still hasn't synced yet, thus leaving the underlying contract in signed instead of confirmed.

When opening a position we check if the underlying contract is confirmed we should do the same when processing a rollover. Note, I am referring here to the app side, as the coordinator already implements this check.

image