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

Fix dApp swiper configuration #1317

Merged
merged 6 commits into from
Jun 14, 2024
Merged

Fix dApp swiper configuration #1317

merged 6 commits into from
Jun 14, 2024

Conversation

bobo-k2
Copy link
Contributor

@bobo-k2 bobo-k2 commented Jun 14, 2024

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

  • contains breaking changes
  • adds new feature
  • modifies existing feature (bug fix or improvements)
  • relies on other tasks
  • documentation changes
  • tested on mobile devices

Copy link

github-actions bot commented Jun 14, 2024

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),
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I see, thanks!

Copy link
Contributor

@Kahonnohak Kahonnohak left a 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!

@bobo-k2 bobo-k2 merged commit ef0c8a4 into release-hotfix Jun 14, 2024
6 checks passed
@bobo-k2 bobo-k2 deleted the fix/dapps-swiper branch June 14, 2024 10:03
gtg7784 pushed a commit that referenced this pull request Jun 21, 2024
* 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]>
gtg7784 pushed a commit that referenced this pull request Jun 21, 2024
* 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]>
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

Successfully merging this pull request may close these issues.

3 participants