If send funds back is true => normal flow
If send funds back is false =>
-- if the offer_id already in the withdrawn offers => decrease quantity (and delete listed offer if new quantity is 0) and increase withdrawn offer quantity
-- if the offer_id is not already in the withdrawn offers => put it there with only a part of the quantity.
A new tab needed to be added for cancelled offers with a withdraw button:
The view:
https://devnet-explorer.multiversx.com/transactions/ef320cd1d52f3182c8e6552ae4326172970e87fb44cea7b4361d31c174b0972f
New argument in cancel_offer ->
send_funds_back
.If send funds back is true => normal flow If send funds back is false => -- if the offer_id already in the withdrawn offers => decrease quantity (and delete listed offer if new quantity is 0) and increase withdrawn offer quantity -- if the offer_id is not already in the withdrawn offers => put it there with only a part of the quantity.
A new tab needed to be added for
cancelled offers
with a withdraw button: The view:The withdraw call: