File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,12 @@ import {
22 PaginableOrders ,
33 PublishedApporder ,
44 PublishedDatasetorder ,
5- PublishedWorkerpoolorder ,
65} from 'iexec/IExecOrderbookModule' ;
76import { DEFAULT_MAX_PRICE } from '../config/config.js' ;
87
98export const fetchOrdersUnderMaxPrice = (
109 datasetOrderbook : PaginableOrders < PublishedDatasetorder > ,
1110 appOrderbook : PaginableOrders < PublishedApporder > ,
12- workerpoolOrderbook : PaginableOrders < PublishedWorkerpoolorder > ,
1311 vMaxPrice = DEFAULT_MAX_PRICE
1412) => {
1513 const datasetorder = datasetOrderbook . orders [ 0 ] ?. order ;
@@ -20,18 +18,13 @@ export const fetchOrdersUnderMaxPrice = (
2018 if ( ! apporder ) {
2119 throw new Error ( `No app orders found` ) ;
2220 }
23- const workerpoolorder = workerpoolOrderbook . orders [ 0 ] ?. order ;
24- if ( ! workerpoolorder ) {
25- throw new Error ( `No workerpool orders found` ) ;
26- }
2721
2822 const totalPrice = datasetorder . datasetprice + apporder . appprice ;
2923
3024 if ( totalPrice <= vMaxPrice ) {
3125 return {
3226 datasetorder,
3327 apporder,
34- workerpoolorder,
3528 } ;
3629 }
3730
You can’t perform that action at this time.
0 commit comments