Basilisk-node icon indicating copy to clipboard operation
Basilisk-node copied to clipboard

Weird edge case behaviour of offers

Open vikiival opened this issue 3 years ago • 3 comments

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]

vikiival avatar Apr 11 '22 10:04 vikiival

@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

green-jay avatar Apr 18 '22 11:04 green-jay

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(_)
}

vikiival avatar Apr 26 '22 14:04 vikiival

is this still an issue ?

enthusiastmartin avatar Oct 27 '22 07:10 enthusiastmartin