-
Notifications
You must be signed in to change notification settings - Fork 94
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
Fix dApp swiper configuration #1317
Conversation
Visit the preview URL for this PR (updated for commit 3ff1717): https://astar-apps--pr1317-fix-dapps-swiper-skjovcws.web.app (expires Fri, 21 Jun 2024 09:59:39 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: dd76fe72958fe2910fef9d53f0b4539b82b849db |
@@ -99,7 +99,7 @@ export default defineComponent({ | |||
.map((x) => ({ | |||
name: x.name, | |||
iconUrl: x.iconUrl, | |||
amount: x.rewardAmount, | |||
amount: BigInt(x.rewardAmount), |
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.
export type PeriodData = {
dappAddress: string;
rewardAmount: bigint;
stakeAmount: bigint;
};
I think it's already bigint
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.
Me too, but it is treated as string, most likely the value comes as string from API. I will check and cast immediately after fetching.
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.
Fixed in cdf64d0
coverting to big int as soon as data is received
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.
ah I see, thanks!
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.
Thank you for quick fix!
* Add dApp staking categories description (#1316) * Fix dApp swiper configuration (#1317) * Fix dApp swiper configuration * Rewards earned sort fix * TVL ratio for previous period calculation fix * Hide period stats * Cast to bigint * Hide period stats * Fix for filtering dApps in other category (#1322) * Category filter fix, take 2 (#1323) * add airlyft to promotions (#1319) * Show estimated staker + bonus rewards on vote info banner (#1329) * Show estimated staker + bonus rewards on vote info banner * Text update * dApp Staking ranked tier update (#1324) * Fetch rank rewards * Add Hydration to XCM (#1315) * Add rank reward calculation * Map rankTier * Type bug fix * voting banner wording fix --------- Co-authored-by: green-jay <[email protected]> * Tier display fix (#1331) * hotfix: added maintenance mode condition to disable the bridge feature (#1330) * Add Hydration to XCM (#1315) * hotfix: disabled zKyoto bridge --------- Co-authored-by: green-jay <[email protected]> --------- Co-authored-by: Bobo <[email protected]> Co-authored-by: Rachit Magon <[email protected]> Co-authored-by: green-jay <[email protected]>
* Add dApp staking categories description (#1316) * Fix dApp swiper configuration (#1317) * Fix dApp swiper configuration * Rewards earned sort fix * TVL ratio for previous period calculation fix * Hide period stats * Cast to bigint * Hide period stats * Fix for filtering dApps in other category (#1322) * Category filter fix, take 2 (#1323) * add airlyft to promotions (#1319) * add Pinky data to data_promotion * add pinky.jpg --------- Co-authored-by: Bobo <[email protected]> Co-authored-by: Rachit Magon <[email protected]>
Pull Request Summary
Fix for misconfigured swiper in voting component's dApps list
Fix for sorting dApps by claimed rewards
Fix for TVL ratio in period stats component
Check list