Skip to content

Commit

Permalink
relativeBlocks should always be number[] in OrderService
Browse files Browse the repository at this point in the history
  • Loading branch information
codyborn committed Dec 3, 2024
1 parent a2386f9 commit 65b07f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/handlers/get-orders/schema/GetDutchV3OrderResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type GetDutchV3OrderResponse = {
token: string
startAmount: string
curve: {
relativeBlocks: string[]
relativeBlocks: number[]
relativeAmounts: string[]
}
maxAmount: string
Expand All @@ -30,7 +30,7 @@ export type GetDutchV3OrderResponse = {
token: string
startAmount: string
curve: {
relativeBlocks: string[]
relativeBlocks: number[]
relativeAmounts: string[]
}
recipient: string
Expand Down
4 changes: 2 additions & 2 deletions lib/models/DutchV3Order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class DutchV3Order extends Order {
token: this.inner.info.input.token,
startAmount: this.inner.info.input.startAmount.toString(),
curve: {
relativeBlocks: this.inner.info.input.curve.relativeBlocks.map((a) => a.toString()),
relativeBlocks: this.inner.info.input.curve.relativeBlocks,
relativeAmounts: this.inner.info.input.curve.relativeAmounts.map((a) => a.toString()),
},
maxAmount: this.inner.info.input.maxAmount.toString(),
Expand All @@ -116,7 +116,7 @@ export class DutchV3Order extends Order {
token: o.token,
startAmount: o.startAmount.toString(),
curve: {
relativeBlocks: o.curve.relativeBlocks.map((a) => a.toString()),
relativeBlocks: o.curve.relativeBlocks,
relativeAmounts: o.curve.relativeAmounts.map((a) => a.toString()),
},
minAmount: o.minAmount.toString(),
Expand Down

0 comments on commit 65b07f8

Please sign in to comment.