hicommonwealth / commonwealth

A platform for decentralized communities
https://commonwealth.im
GNU General Public License v3.0
68 stars 44 forks source link

Enable Token Sale from Explore Page #9892

Closed mzparacha closed 1 week ago

mzparacha commented 2 weeks ago

Description

Pre-req: https://github.com/hicommonwealth/commonwealth/issues/8804

Context: We need to allow users to sale tokens directly from the explore page, similar to the functionality described in Ticket #6870. When a user clicks the “Sell” button on an asset card, a transaction modal should appear, enabling them to complete the sale without navigating away from the explore page.

Task: Implement a “Sell” section on each token trade modal. When clicked, the following should occur:

Transaction Modal Details:

Fields Displayed:

Post-Sale Behavior:

Project Owner

@HIM92

Bucket ID

8800

User Stories / Acceptance Criteria

As a user on the explore page, I want to sell tokens directly from the asset cards. When I click “Sell,” I can enter the token amount I wish to sell (considering the amount I own), see the associated costs/amounts, and confirm the transaction using my wallet. I should remain on the explore page after completing the sale.

Design Devlink

https://www.figma.com/design/1b9wbqv9YV2FlU2svFyf0I/IdeaCoin?node-id=815-39215&t=Bs73ODTMr1Of6lIs-0

Design Screenshot

Screenshot 2024-08-08 at 1 21 45 PM Screenshot 2024-08-08 at 1 27 33 PM

Additional Context

No response