generated from scaffold-eth/scaffold-eth
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Comments
For designs check out: https://www.figma.com/file/cpTUBYmCxRIjh5A4cV2RJl/%F0%9F%A5%A9Staking-App?node-id=24%3A3185 |
@farque65 for the fail path - look at both and implement whichever is faster to do. |
story points 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: