Skip to content

Commit

Permalink
fix(uniswapx-sdk): update known errors with priority order reactor on…
Browse files Browse the repository at this point in the history
…es (#75)
  • Loading branch information
zhongeric authored Aug 8, 2024
1 parent cd01c63 commit 1ff9780
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sdks/uniswapx-sdk/src/utils/OrderQuoter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export enum OrderValidation {
UnknownError,
ValidationFailed,
ExclusivityPeriod,
OrderNotFillable,
InvalidGasPrice,
InvalidCosignature,
OK,
}
Expand Down Expand Up @@ -101,6 +103,14 @@ const KNOWN_ERRORS: { [key: string]: OrderValidation } = {
d856fc5a: OrderValidation.InvalidOrderFields,
// Signature expired
cd21db4f: OrderValidation.Expired,
// PriorityOrderReactor:InvalidDeadline()
"769d11e4": OrderValidation.Expired,
// PriorityOrderReactor:OrderNotFillable()
c6035520: OrderValidation.OrderNotFillable,
// PriorityOrderReactor:InputOutputScaling()
a6b844f5: OrderValidation.InvalidOrderFields,
// PriorityOrderReactor:InvalidGasPrice()
f3eb44e5: OrderValidation.InvalidGasPrice,
};

export interface SignedUniswapXOrder {
Expand Down

0 comments on commit 1ff9780

Please sign in to comment.