Skip to content

Commit

Permalink
fix: decrease splits temporarily to help quote latency (#926)
Browse files Browse the repository at this point in the history
Base quote latency is long recently. Increasing the distribution percent to see if it helps.
  • Loading branch information
jsy1218 authored Dec 4, 2024
1 parent a05c24c commit 7949aa3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions lib/handlers/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,37 @@ export const DEFAULT_ROUTING_CONFIG_BY_CHAIN = (chainId: ChainId): AlphaRouterCo
forceCrossProtocol: false,
}
case ChainId.BASE:
return {
v2PoolSelection: {
topN: 3,
topNDirectSwaps: 1,
topNTokenInOut: 5,
topNSecondHop: 2,
topNWithEachBaseToken: 2,
topNWithBaseToken: 6,
},
v3PoolSelection: {
topN: 2,
topNDirectSwaps: 2,
topNTokenInOut: 2,
topNSecondHop: 1,
topNWithEachBaseToken: 3,
topNWithBaseToken: 3,
},
v4PoolSelection: {
topN: 2,
topNDirectSwaps: 2,
topNTokenInOut: 2,
topNSecondHop: 1,
topNWithEachBaseToken: 3,
topNWithBaseToken: 3,
},
maxSwapsPerPath: 3,
minSplits: 1,
maxSplits: 4,
distributionPercent: 10,
forceCrossProtocol: false,
}
case ChainId.OPTIMISM:
case ChainId.WORLDCHAIN:
case ChainId.ASTROCHAIN_SEPOLIA:
Expand Down

0 comments on commit 7949aa3

Please sign in to comment.