Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WBPS. Publish CRT #1274

Open
AndreyKortosov opened this issue Nov 18, 2024 · 0 comments
Open

WBPS. Publish CRT #1274

AndreyKortosov opened this issue Nov 18, 2024 · 0 comments
Labels
feature Adding support for a new feature in the network WBPS

Comments

@AndreyKortosov
Copy link

AndreyKortosov commented Nov 18, 2024

As a

SORA user

I want to

publish CR token

So that

allows to start trading CP Tokens

Acceptance criteria

  1. The user makes a decision about the CR token. Approve it.
    1. The front-end asks the user about:
      1. Amount of CR token
      2. Number of CP tokens
      3. Min lot of CP token
      4. Date of closing initial period
    2. The front-end calls the SORA pallet to publish the CR token.
    3. The SORA pallet
      1. Update the status of CR token - Collect_funds
      2. Mint number of CP tokens with min a lot of CP token
      3. Bind each CP token to the CR token
      4. Publish CP tokens on the Order Book, pair CP token/PRUSD
      5. Update the Open initial period on the current date
      6. Update Close initial period from the user request
  2. If the user clicks the button Decline when the Status Decision.
    1. The front-end calls the SORA pallet to decline the CR token.
    2. The SORA pallet updates the status of the token - Declined.
  3. The user opens the Order book to see the new CP token
    1. The front-end shows in the Order book CP token in pair PRUSD.
    2. The front-end shows brief information about the CR token on the page CP token/PRUSD.
  4. Another user opens the Order book.
    1. The front-end checks the SBT on the wallet of the user.
      1. If the user has SBT associated with the WBPS project, the front-end shows CP token/PRUSD and allows to buy the token.
      2. Otherwise, the user doesn't have SBT, and the front-end doesn't show CP tokens.
  5. Another user wants to buy a CP token
    1. If the Close initial period is active and the status of the CR token is Collect_funds, the front-end allows to buy tokens and doesn't allow to sell
@AndreyKortosov AndreyKortosov added feature Adding support for a new feature in the network WBPS labels Nov 18, 2024
@AndreyKortosov AndreyKortosov moved this to Backlog in SORA Backend Nov 18, 2024
@AndreyKortosov AndreyKortosov moved this from Backlog to In Progress in SORA Backend Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding support for a new feature in the network WBPS
Projects
Status: In Progress
Development

No branches or pull requests

1 participant