Skip to content

Commit

Permalink
chore: TD-1516: remove temporary workaround to handle undefined value…
Browse files Browse the repository at this point in the history
… for unitsToFill parameter.
  • Loading branch information
naveen-imtb committed Jun 26, 2024
1 parent 4d5320e commit 06ba1d0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 141 deletions.
116 changes: 0 additions & 116 deletions packages/orderbook/src/seaport/fillable-units.spec.ts

This file was deleted.

22 changes: 0 additions & 22 deletions packages/orderbook/src/seaport/fillable-units.ts

This file was deleted.

5 changes: 2 additions & 3 deletions packages/orderbook/src/seaport/seaport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { getBulkOrderComponentsFromMessage, getOrderComponentsFromMessage } from
import { SeaportLibFactory } from './seaport-lib-factory';
import { prepareTransaction } from './transaction';
import { mapImmutableOrderToSeaportOrderComponents } from './map-to-seaport-order';
import { determineFillableUnits } from './fillable-units';

export class Seaport {
constructor(
Expand Down Expand Up @@ -176,7 +175,7 @@ export class Seaport {
parameters: orderComponents,
signature: order.signature,
},
unitsToFill: determineFillableUnits(order, unitsToFill),
unitsToFill,
extraData,
tips,
},
Expand Down Expand Up @@ -245,7 +244,7 @@ export class Seaport {
parameters: orderComponents,
signature: o.order.signature,
},
unitsToFill: determineFillableUnits(o.order, o.unitsToFill),
unitsToFill: o.unitsToFill,
extraData: o.extraData,
tips,
};
Expand Down

0 comments on commit 06ba1d0

Please sign in to comment.