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

CP-9586 Unable to start staking #2132

Merged
merged 5 commits into from
Nov 26, 2024
Merged

CP-9586 Unable to start staking #2132

merged 5 commits into from
Nov 26, 2024

Conversation

neven-s
Copy link
Collaborator

@neven-s neven-s commented Nov 26, 2024

Description

Ticket: CP-9586

This PR fixes couple wrong conversions of TokenUnit to appropriate subunit.
Also renamed quite few params and converted to bigint so we avoid these mistakes in future

Testing

  • check delegation works
  • check claiming works

Checklist

Please check all that apply (if applicable)

  • I have performed a self-review of my code
  • I have verified the code works
  • I have added/updated necessary unit tests
  • I have updated the documentation

@@ -99,7 +99,7 @@ export default function StakingAmount(): JSX.Element {
percent: (100 / factor).toString()
})
if (!cumulativeBalance) return
setInputAmount(cumulativeBalance.div(factor))
setInputAmount(zeroAvaxPChain().add(cumulativeBalance.div(factor)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

just curious, what issue did you run into here?

Copy link
Collaborator

@atn4z7 atn4z7 left a comment

Choose a reason for hiding this comment

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

LGTM

@atn4z7 atn4z7 merged commit b0de9e0 into main Nov 26, 2024
4 checks passed
@atn4z7 atn4z7 deleted the CP-9586 branch November 26, 2024 19:56
atn4z7 added a commit that referenced this pull request Nov 27, 2024
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.

2 participants