Skip to content

bugfix: overflow error in the total_lamports_under_control - #82

Open
metalgear-dev wants to merge 1 commit into
marinade-finance:mainfrom
metalgear-dev:bugfix/calculation-overflow
Open

bugfix: overflow error in the total_lamports_under_control#82
metalgear-dev wants to merge 1 commit into
marinade-finance:mainfrom
metalgear-dev:bugfix/calculation-overflow

Conversation

@metalgear-dev

Copy link
Copy Markdown

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