-
Notifications
You must be signed in to change notification settings - Fork 9
Cancel order: Sync statuses in Explorer and CowSwap #612
Comments
There are two ways of thinking about this.
The reason why CowSwap does not show the We have though discussed internally to display the intermediate |
I'd like to add another case. |
You do? I can play around with the time we wait for this, but in the end this is a race condition. |
@alfetopito , at least, I faced this issue twice. |
video proof: Untitled_.Jul.28.2021.7_05.PM.mp4 |
Never doubted you! |
It "should" update in the background every 10s until it's expired, thus updating the state. |
@alfetopito , statuses were updated in the end. But it took more than 10 sec. |
@elena-zh u are super good at testing edge cases 💪
I think this should only happen for a few seconds, then should expire. This is because we only update periodically. It can be improved if we actually set a timer instead of periodically update. However, i would consider it low prio. If we want to keep track of that we can make an independent issue for it.
I think is similar to the previous case. We could also do a similar solution. Also, im not too concerned with this one for now. But true that it might be a good idea to track it.
This one is more annoying 😅 |
#612 I think could potentially be 4 issues. 1 i think is important to solve eventually. Then there’s issues related to the canceled state having a small delay (that is fine for now imo, but can be improved). Then there’s the issue of CowSwap / Explorer discrepancy on CANCEL workflow. CowSwap has “canceling state”. I understand why we did it differently, but I would argue that is more important to be coherent. |
If only for a few seconds... |
ohh, ok! then we should definitely review. Thanks for raising it. At least we could make the check more frequent, that would be a quick fix |
Yes, For convenience, here is a separate issue for this case #1362 |
# Summary Closes #843 Also I've added the "Cancelling" status following the suggestion from Elena (#612)  # To Test 1. Open the [Signing StatusLabel](https://pr866--gpui.review.gnosisdev.com/storybook/?path=/story/orders-statuslabel--filled&args=status:signing) component 1. Open the [Cancelling StatusLabel](https://pr866--gpui.review.gnosisdev.com/storybook/?path=/story/orders-statuslabel--filled&args=status:cancelling) component
# Summary Closes #612 **Proposal:** Add logic to check if the order is cancelled, [cowswap reference](https://github.com/gnosis/cowswap/blob/2165-adding-wallet-supports/src/custom/state/orders/utils.ts#L38) # To Test 1. Create a new swap on [dev cowswap environment](https://cowswap.dev.gnosisdev.com/#/swap). 2. Go to pending button and clicked, it will open `account modal` try to cancel order. 3. Go to explorer https://pr999--gpui.review.gnosisdev.com/rinkeby/address/<address> (:bulb: replace your wallet `address`)
The issue is related to the 'Cancel' order transactions.
When I cancel an order, it is immediately changes its status as 'Cancelled' in the protocol explorer.
However, as we use a 'soft' cancellation, the order might be executed, hence, the status is changed to 'Filled' in the explorer, and it seems to be strange a bit.
I think it would be nice to add 'Cancelling' status in the protocol explorer (link it is in the CowSwap app) for an order and show it until an order is successfully cancelled/filled.
https://drive.google.com/file/d/1j92oV8O2LLPMGZgCY4FSUnFZrXXhjpVL/view
The text was updated successfully, but these errors were encountered: