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

feat(frontend): util getRewardsBalance will use bigint instead of BigNumber #5386

Conversation

AntonioVentilii
Copy link
Collaborator

Motivation

We need to migrate to ethers v6: one of the biggest change was the deprecation of BigNumber in favour of built-in bigint (see documentation).

To smooth the migration, we replace BigNumber with bigint in util getRewardsBalance.

Changes

  • Make util getRewardsBalance accept amount as bigint instead of BigNumber.
  • Adapt the rest of the usages.

Tests

Existing tests were sufficient.

@AntonioVentilii AntonioVentilii requested a review from a team as a code owner March 21, 2025 15:36
Copy link
Contributor

@DenysKarmazynDFINITY DenysKarmazynDFINITY left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@AntonioVentilii AntonioVentilii enabled auto-merge (squash) March 24, 2025 10:21
@AntonioVentilii AntonioVentilii merged commit a34b225 into main Mar 24, 2025
25 checks passed
@AntonioVentilii AntonioVentilii deleted the feat(frontend)/util-getRewardsBalance-will-use-bigint-instead-of-BigNumber branch March 24, 2025 10:29
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