This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
[Uniques v2] Basic marketplace functions #11794
jsidorenko
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
When setting a marketplace for an item we need to lock that item up, so we should have an additional method for removing an item from a marketplace so that the item becomes transferable again. So we should also have something like this: |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea:
In a classic marketplace implementation, a user needs to provide full access to his NFT to a 3rd-party app (marketplace). This approach usually leads to well-known security problems where a bug in the marketplace’s codebase (smart-contract/backend or just the way the private keys are handled) allows an attacker to steal all the assets.
As a possible solution, we could add 2 new methods to our Uniques pallet:
set_seller(collection_id, item_id, seller, price, tips)
- where the user could set a marketplace that would be able to sell his NFTbuy_from_seller(collection_id, item_id, price, tips)
* The
tips
param would be an array of addresses and amounts to send the tokens.With that approach, any marketplace would be able to display the trusted items to sell, while having no control over the asset itself.
Beta Was this translation helpful? Give feedback.
All reactions