This repository has been archived by the owner on Jan 14, 2020. It is now read-only.
Excess seller deposit is inaccessible unless listing is withdrawn #585
Labels
bug
Something isn't working as intended
javascript
origin.js
smart contracts
solidity
transaction flow
Consider the following scenario:
createListing
transfers to the Marketplace contractNow there's an excess commission of 75 OGN that's held by the Marketplace contract. The only way the seller can recover those funds is by withdrawing the listing. This is undesirable from a UI point of view.
There are other cases where we actually do want the marketplace contract to hold tokens after an offer finalizes:
However, when there is a single item for sale (as there will be with our v1 launch), we might want to consider auto-refunding any excess commission to the seller upon finalization.
This is a little nuanced, so I'm posting as much detail as I can here.
cc @micahalcorn @nick
The text was updated successfully, but these errors were encountered: