-
Notifications
You must be signed in to change notification settings - Fork 85
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
dApp staking v3 period 2 updates #1302
Conversation
* Basic selectable components * Categories and dApps lists * Basic navigation flow * Enter amount and dapp search * Started with useVote and OverviewPanel * Review panel * Chose amount updates * Working sample * Go back button * Optimize for mobile * Preselect a dApp to vote * Cleanup * Transfer stake * Minor styling and logic updated * PR comments resolved
Visit the preview URL for this PR (updated for commit 0361f20): https://astar-apps--pr1302-feat-dapp-staking-v3-osofs9cr.web.app (expires Thu, 20 Jun 2024 13:40:56 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: dd76fe72958fe2910fef9d53f0b4539b82b849db |
* Period info component * Period info component * Show only on voting period * Build and earn period component * Remove data toggle button * Null ref fix
* Components definition * Merge * Period statistics component and data fetching * Default API improvements, TVL ratio calculation * Put toggle button back
* add background image to the dApp staking top page * adjust info width and mergin * update leaderboard styles * update dapps list style * update data style * update dark style * fix width and margin * staking flow styling for desktop * fix dapp card whitespace * update voting wizard mobile style * update voting page styles * update stats styles * add go back button * replace values to placeholder * add voting note to voting wizard component * voting period info styles * update text color for the dark theme * Add missing values * Display previous period number --------- Co-authored-by: Bobo <bobo.kovacevic@gmail.com>
* APR calculations for the given block * Apr hook refactoring * Tokens to be burned calculation for any block * Voting period ad * adjust banner styling * Added missing values * Fix calculation if current period is 1 (no previous period) --------- Co-authored-by: Ayumi Takahashi <ayumee528@gmail.com>
@Kahonnohak I changed layout of Tier a bit (added tier threshold value) to match Figma |
@bobo-k2 not the title design, but how it scrolls (to the side) it is little funny at this moment and want to have the current production scroll back. (Each tier has the box, and next box is shown on the right) |
@Kahonnohak @bobo-k2 I've fixed them in commit db560fd and 8df5a04. The button animation doesn't work on mobiles, so I added the gradient background colour. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
<span>{{ protocolState?.periodInfo.number.toString().padStart(3, '0') ?? '--' }}</span> | ||
<span>{{ $t('stakingV3.buildAndEarn') }}</span> | ||
</div> | ||
<div></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why here is another empty div?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…k/astar-apps into feat/dapp-staking-v3-period2
Thank you, fixed in 0678197 |
* add three.js dependency * refacor to not use iframe * update iframe styles * fix renderer small issue * update renderer size to reduce period of only depp blue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Pull Request Summary
This PR contains
NOTE
![image](https://private-user-images.githubusercontent.com/8452361/338522267-7380ea47-78f0-4dd2-a249-5cfd8e2bb442.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMjc0MTEsIm5iZiI6MTcyMTIyNzExMSwicGF0aCI6Ii84NDUyMzYxLzMzODUyMjI2Ny03MzgwZWE0Ny03OGYwLTRkZDItYTI0OS01Y2ZkOGUyYmI0NDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTdUMTQzODMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWExNTE1Y2EwMjFkYmJjZTZlYjk3MzVkYjgyYzgyMTk4YzM3OTk4YjgyNGI0NzU2NTFlNDY1MGE2ZGFiODdlMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.G1q6FoLnJvEghk6W-2rVpT7jgb-9IU0t2NcOHGgnu2w)
Staked amount and dApp earner data is currently available for Shibuya only. Astar and Shiden data indexing is in progress
Check list