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

[STORY] As a passport holder, I want to send tokens to the Smart Contract so that I can stake them on my own identity (Self Staking) #37

Closed
brentmartin opened this issue Aug 22, 2022 · 3 comments
Assignees

Comments

@brentmartin
Copy link

brentmartin commented Aug 22, 2022

Background:
GIVEN I am logged in to The Staking App with my Passport
AND I’ve approved the contract to accept my tokens

Scenario: Enter the amount to stake
WHEN I click the stake button
THEN I see a modal that lets me enter the amount of GTC that I want to stake

Success Path: enough GTC balance
WHEN I give it an amount of GTC
AND I have enough GTC in my balance to match the amount I entered
AND I click the “stake” button
THEN I see a second modal confirming the amount of GTC I want to stake
AND I see important details about how long my staking will be locked
AND I see information about how the smart contract has been audited

Fail Path: insufficient GTC balance
WHEN I give it an amount of GTC
AND I do not have enough GTC in my balance to match the amount I entered
THEN the “stake” button turns to disabled state and reads “insufficient balance”

OR

WHEN I give it an amount of GTC
AND I do not have enough GTC in my balance to match the amount I entered
AND I click the “stake” button
THEN I see a notification that informs me that wallet balance is insufficient

Scenario: Confirm the staking

Success Path: confirms the staking
WHEN I’ve read the details (amount, locking info, audit info)
AND I click the confirm button (”stake my GTC”?)
THEN I receive a message from my wallet to sign a transaction
AND WHEN I accept the transaction
THEN my GTC is staked and locked

Return Path: return to the staking amount
WHEN I’ve read the details (amount, locking info, audit info)
AND I click “back to the previous step”
THEN I return back to the modal where I enter how much to stake

Scenario: Staking is complete
WHEN my GTC is transaction is confirmed
THEN I see a notification telling me it is complete
AND WHEN I look at the details on the Staking App dashboard
THEN the amount of GTC that I have staked is reflected on the Stake on Yourself option

@brentmartin
Copy link
Author

brentmartin commented Aug 23, 2022

@brentmartin
Copy link
Author

@farque65 for the fail path - look at both and implement whichever is faster to do.

@brentmartin
Copy link
Author

story points 2

@farque65 farque65 self-assigned this Aug 25, 2022
farque65 added a commit that referenced this issue Aug 29, 2022
- adds approval flow
- adds self staking call
- segments staking functionality to one modal

Closes #36
Closes #37
farque65 added a commit that referenced this issue Aug 30, 2022
- adds approval flow
- adds self staking call
- segments staking functionality to one modal

Closes #36
Closes #37
Closes #38
farque65 added a commit that referenced this issue Aug 31, 2022
- adds approval flow
- adds self staking call
- segments staking functionality to one modal

Closes #36
Closes #37
Closes #38
farque65 added a commit that referenced this issue Sep 1, 2022
- changes rebased against ui updates on dev
- stake amounts update
- side panel number updates

Closes #36
Closes #37
Closes #38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants