@@ -7,12 +7,7 @@ import { expect } from 'hardhat';
77import { loadHardhatFixtureDeployment } from '../scripts/hardhat-fixture-deployer' ;
88import { IexecInterfaceNative , IexecInterfaceNative__factory } from '../typechain' ;
99import { OrdersActors , OrdersAssets , OrdersPrices , buildOrders } from '../utils/createOrders' ;
10- import {
11- PocoMode ,
12- TaskStatusEnum ,
13- buildUtf8ResultAndDigest ,
14- getIexecAccounts ,
15- } from '../utils/poco-tools' ;
10+ import { TaskStatusEnum , buildUtf8ResultAndDigest , getIexecAccounts } from '../utils/poco-tools' ;
1611import { IexecWrapper } from './utils/IexecWrapper' ;
1712
1813const standardDealTag = '0x0000000000000000000000000000000000000000000000000000000000000000' ;
@@ -123,11 +118,6 @@ describe('Integration tests', function () {
123118 ) ;
124119 const taskPrice = appPrice + datasetPrice + workerpoolPrice ;
125120 const schedulerStakePerTask = schedulerStakePerDeal / volume ;
126- const workerRewardPerTask = await iexecWrapper . computeWorkerRewardPerTask (
127- dealId ,
128- PocoMode . CLASSIC ,
129- ) ;
130- const schedulerRewardPerTask = workerpoolPrice - workerRewardPerTask ;
131121 // Save frozens
132122 const accounts = [ requester , scheduler , appProvider , datasetProvider ] ;
133123 const accountsInitialFrozens = await getInitialFrozens ( [ ...accounts , ...workers ] ) ;
@@ -185,7 +175,7 @@ describe('Integration tests', function () {
185175 const totalWorkerPoolReward =
186176 workerpoolPrice + workerStakePerTask * loosingWorkers . length ; // bad wrokers lose their stake and add it to the pool price
187177 // compute expected worker reward for current task
188- const workerRewardPerTask = await computeWorkerRewardForCurrentTask (
178+ const workerRewardPerTask = await computeWorkersRewardForCurrentTask (
189179 totalWorkerPoolReward ,
190180 dealId ,
191181 ) ;
@@ -268,7 +258,7 @@ describe('Integration tests', function () {
268258 return scores ;
269259 }
270260
271- async function computeWorkerRewardForCurrentTask ( totalPoolReward : number , dealId : string ) {
261+ async function computeWorkersRewardForCurrentTask ( totalPoolReward : number , dealId : string ) {
272262 const deal = await iexecPoco . viewDeal ( dealId ) ;
273263 return ( totalPoolReward * ( 100 - deal . schedulerRewardRatio . toNumber ( ) ) ) / 100 ;
274264 }
0 commit comments