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

bugfix: overflow error in the total_lamports_under_control #82

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

metalgear-dev
Copy link

The total_larmports_under_control causes the error like attempt to add with overflow when the related values are as follows:

> Program log: oracle_state.validator_system.total_active_balance: 42868812732159474
> Program log: oracle_state.total_cooling_down: 18446744073709551615
> Program log: oracle_state.available_reserve_balance: 18446744073709551615
> Program log: total_lamports_under_control: 36936356960151262704
> Program log: total_virtual_staked_lamports: 36936356960151261566

So the arguments got changed into u128 to deal with the error.

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.

1 participant