Skip to content

Commit

Permalink
buildOrderData/fix version usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Velenir committed May 27, 2024
1 parent 4c1b9e4 commit 82f0253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export {
} from '@paraswap/core';

export const API_URL = 'https://api.paraswap.io';
export const DEFAULT_VERSION: ParaSwapVersionUnion = '6';
export const DEFAULT_VERSION: ParaSwapVersionUnion = '5';
2 changes: 1 addition & 1 deletion src/methods/limitOrders/helpers/buildOrderData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function buildOrderData({
taker = ZERO_ADDRESS;
} else {
// otherwise for p2p order ->
if (AppVersion === '6') {
if (AppVersion === '6.1') {
// limit taker to EOA for v6 version (no Arbitrary Token Swaps + OTC Fill, or OTC Fill through AugustusSwapper)
taker = takerInNonce;
} else {
Expand Down

0 comments on commit 82f0253

Please sign in to comment.