Skip to content

Conversation

gfournieriExec
Copy link
Contributor

No description provided.

Copy link
Contributor

@james-toussaint james-toussaint left a comment

Choose a reason for hiding this comment

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

Good to me thank you 👍

function computeSchedulerDealStake(workerpoolPrice: number, volume: number) {
return ((workerpoolPrice * workerpoolStakeRatio) / 100) * volume;
function computeSchedulerDealStake(workerpoolPrice: bigint, volume: bigint) {
return (workerpoolPrice * workerpoolStakeRatio * volume) / 100n;
Copy link
Member

Choose a reason for hiding this comment

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

Careful the order is important here.

Suggested change
return (workerpoolPrice * workerpoolStakeRatio * volume) / 100n;
// Order is important here.
return ((workerpoolPrice * workerpoolStakeRatio) / 100n) * volume;

@james-toussaint james-toussaint merged commit 9e2925c into feature/migration-to-ether-v6 Feb 20, 2025
1 check passed
@james-toussaint james-toussaint deleted the feature/migrate-boost-tests-ethers6 branch February 20, 2025 09:58
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.

4 participants