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

Migrate 300 fullchain reopen file #170

Merged
merged 9 commits into from
Jan 2, 2025

Conversation

gfournieriExec
Copy link
Contributor

No description provided.

@gfournieriExec gfournieriExec requested a review from a team December 19, 2024 09:43
@gfournieriExec gfournieriExec self-assigned this Dec 19, 2024
@gfournieriExec gfournieriExec marked this pull request as ready for review December 19, 2024 09:48
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (develop@424b107). Learn more about missing BASE report.
Report is 10 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #170   +/-   ##
==========================================
  Coverage           ?   84.68%           
==========================================
  Files              ?       35           
  Lines              ?     1084           
  Branches           ?      221           
==========================================
  Hits               ?      918           
  Misses             ?      166           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jeremyjams jeremyjams left a comment

Choose a reason for hiding this comment

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

Thank you :)

Comment on lines 105 to 106
const firstContribution = workers.slice(0, 2);
const secondContribution = workers.slice(2, 4);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const firstContribution = workers.slice(0, 2);
const secondContribution = workers.slice(2, 4);
const firstContributors = workers.slice(0, 2);
const secondContributors = workers.slice(2, 4);

.withArgs(taskId);
expect((await iexecPoco.viewTask(taskId)).status).to.equal(TaskStatusEnum.ACTIVE);
// test that the already contributed worker 1 can't contribute anymore
const { resultHash, resultSeal } = buildResultHashAndResultSeal(
Copy link
Member

Choose a reason for hiding this comment

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

for (firstContributors) {
  expect.reverted
}

const finalizeTx = await iexecPocoAsScheduler.finalize(taskId, results, '0x');
await finalizeTx.wait();
const totalWorkerPoolReward =
workerpoolPrice + workerStakePerTask * firstContribution.length; // bad wrokers lose their stake and add it to the pool price
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
workerpoolPrice + workerStakePerTask * firstContribution.length; // bad wrokers lose their stake and add it to the pool price
workerpoolPrice + workerStakePerTask * firstContribution.length; // bad workers lose their stake and add it to the pool price

[
expectedProxyBalanceChange,
0,
expectedSchedulerBalanceChange,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
expectedSchedulerBalanceChange,
schedulerStakePerTask + schedulerRewardPerTask,

@gfournieriExec gfournieriExec merged commit 4489ff4 into develop Jan 2, 2025
5 checks passed
@gfournieriExec gfournieriExec deleted the feature/migrate-300-fullchain-old-IT branch January 2, 2025 09:44
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