Skip to content

Commit

Permalink
Use SDK constants
Browse files Browse the repository at this point in the history
  • Loading branch information
codyborn committed Dec 2, 2024
1 parent 719a192 commit 85053c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/providers/order/uniswapxService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import Logger from 'bunyan';
import { OrderServiceProvider, PostOrderArgs, UniswapXServiceResponse } from '.';
import { ErrorResponse } from '../../handlers/base';
import { ErrorCode } from '../../util/errors';
import { CosignedV2DutchOrder, CosignedV3DutchOrder } from '@uniswap/uniswapx-sdk';
import { CosignedV2DutchOrder, CosignedV3DutchOrder, OrderType } from '@uniswap/uniswapx-sdk';

const ORDER_SERVICE_TIMEOUT_MS = 2000;
const ORDER_TYPE_MAP = new Map<Function, string>([
[CosignedV2DutchOrder, 'Dutch_V2'],
[CosignedV3DutchOrder, 'Dutch_V3']
[CosignedV2DutchOrder, OrderType.Dutch_V2],
[CosignedV3DutchOrder, OrderType.Dutch_V3]
]);

export class UniswapXServiceProvider implements OrderServiceProvider {
Expand Down

0 comments on commit 85053c3

Please sign in to comment.