-
Notifications
You must be signed in to change notification settings - Fork 248
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
[Bug] Cancelling 1 of 3 offers for the same NFT does not visually cancel all offers, nor does it update true status until offers expire #2563
Comments
'This issue has been flagged as stale as there has been no activity on it in 14 days. If this issue is still affecting you and in need of review, please update it to keep it open.' |
I tried to reproduce but in my testnet environment but I couldn't. Here is my recording which shows that my GUI client successfully cancelled an offer at almost the same time as Dexie. Screen.Recording.2025-01-09.at.1.39.16.mov |
Izumi does the 3 offers at the same time matter? Thanks for looking into this! |
This may be it... I retested with the same NFT, I first tried with a single offer, it worked as expected just as in the video above. (You can see the one cancelled offer in the photo below) Next I tried with multiple offers that all showed up on Dexie. I cancel on chain 1 of 3 offers and its status changes to pending cancel, but it fails to actually show as cancelled despite all 3 offers being removed from Dexie. Now I wait for the timer to expire. (The log file indicates the cancel was accepted by the full node and eventually the wallet removes the old NFT coin and adds the new NFT coin, so the underlying system recognizes the cancel and receipt of the coin back) After waiting for the timer to expire on 2 of the 3 offers, they show up as "expired" rather than the "cancelled" we expect. The one offer still remains pending accept because I forgot to change the default expiration timer for the test, but it shows the on chain cancel does not visually get reflected despite the offers being cancelled and removed from Dexie. So I decide to see what happens if I try to cancel that 7 day offer, its status does not change after trying to cancel it, I check the log file to see if anything happened within and see an error message, I assume because the wallet knows the offer has been cancelled and can no longer spend that coin to cancel it now? Attached is a log showing the wallet recognizes the NFT coin change but does not reflect it in the GUI when 3 offers for the same asset exist, as well as the error received when trying to cancel the 7 day offer because that coin no longer exists. (edited) |
@wjblanke @OverActiveBladderSystem |
I managed to reproduce this issue and it seems complicated than expected. |
I've searched for |
I found that the primary issues are:
Why cancelling multiple NFT offers doesn't workWhen confirming the offer cancellation, which means the offering NFT coin was spent but requesting coins were not created,
(This inconsistent statuses is caused by issue Then look at the code below. This code is executed when monitoring coin state has been changed. The target So the current implementation misses to recognize offer cancellation for NFT. |
What happened?
In this example I created 3 expiring offers for the same NFT, each offer requesting a different asset type.
When cancelling 1 of 3 offers on blockchain, none of the offers showed up as "cancelled" in the GUI despite all 3 offers disappearing almost immediately on Dexie's website, only the offer we selected to cancel has changed its status in the GUI to "pending cancel" but remained in pending status until the offer time expired an hour later.
(The other two offers showed no status change in the GUI until each of them reached their expiration time individually)
Photo 1 shows the active offers waiting to be accepted or expire
Photo 2 shows all the offers we made appear on Dexie
Photo 3 shows we attempt to cancel one of the offers on chain
Photo 4 shows the "pending cancel" status of the offer we selected
Photo 5 shows all the offers we made have been removed from Dexie
Photo 6 shows the "pending cancel" status remains after 30 minutes waiting
Photo 7 shows the offers have "expired" only after waiting the entire 60 minutes
Version
2.5.0
What platform are you using?
Windows
What ui mode are you using?
GUI
Relevant log output or stacktrace
No response
The text was updated successfully, but these errors were encountered: