Skip to content
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

Weird edge case behaviour of offers #424

Open
vikiival opened this issue Apr 11, 2022 · 3 comments
Open

Weird edge case behaviour of offers #424

vikiival opened this issue Apr 11, 2022 · 3 comments

Comments

@vikiival
Copy link

vikiival commented Apr 11, 2022

Description

I currently have a couple of offers on my NFT which are already expired

Screenshot 2022-04-11 at 12 47 44

When I want to update a bid with a new price and longer expiration date it will throw AlreadyOffered

Screenshot 2022-04-11 at 12 48 11

Actual status

as described in the previous section

Expected status

I have expected that if the expiration time is already gone you can replace your offer.
Same with the case when somebody wants to top up their offer.

Alternative

is to do it as a batch on the frontend as a batchAll tx [marketplace.withdrawOffer, marketplace.makeOffer]

@green-jay
Copy link
Contributor

@vikiival Users should withdraw their expired offer because they have the offered amount locked until they do so. And we don't want to spam the chain with useless offers.
Ad topup - We could make an improvement for the user to be able to change actually offered amount. If you think that is necessary, please add updateOffer to spec with detailed behaviour

@vikiival
Copy link
Author

Users should withdraw their expired offer because they have the offered amount locked until they do so

Yeah I agree.

And we don't want to spam the chain with useless offers.

Agree too.

We could make an improvement for the user to be able to change actually offered amount.

Spec for update offer:

if (proposed_price > actual_price) {
 do_offer(_)
}

if (current_offer.is_expired()) {
 do_offer(_)
}

@enthusiastmartin
Copy link
Contributor

is this still an issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants