Skip to content

Commit

Permalink
docs: improved migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed Jul 24, 2024
1 parent 261cd37 commit 2d16727
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const executor = await TaskExecutor.create({

#### Allocation budget

In version 1.x, defining the allocation budget used to pay for tasks, was defined directly using the budget parameter.
In version 1.x, defining the allocation budget used to pay for tasks, was defined directly using the budget parameter. Now in version 2.x we do not specify the budget directly, but it is estimated using parameters specified in market options.

before:

Expand All @@ -63,8 +63,6 @@ const executor = await TaskExecutor.create({
});
```

Now in version 2.x we do not specify the budget directly, but it is estimated using parameters specified in market options.

after:

```typescript
Expand Down Expand Up @@ -358,7 +356,7 @@ const executor = await TaskExecutor.create({
maxEnvPerHourPrice: 0.5,
},
offerProposalFilter: OfferProposalFilterFactory.allowProvidersById(whiteListIds),
offerProposalSelector: bestAgreementSelector(scores),
offerProposalSelector: bestOfferProposalSelector(scores),
},
payment: {
network: "holesky",
Expand Down

0 comments on commit 2d16727

Please sign in to comment.