Skip to content

Commit

Permalink
fix: don't use cachedRoutes if intent.caching (50% experiment)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrsv committed Mar 4, 2025
1 parent 166b25f commit e69e0f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uniswap/smart-order-router",
"version": "4.19.3",
"version": "4.19.4",
"description": "Uniswap Smart Order Router",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/routers/alpha-router/alpha-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3201,8 +3201,8 @@ export class AlphaRouter
}

// Percentage of time we want to skip cached routes for the experiment.
// Starting with 15% to gradually roll out the change.
public static readonly CACHED_ROUTES_SKIP_EXPERIMENT_FLAG_PERCENTAGE = 0.15;
// Starting with 50% to gradually roll out the change.
public static readonly CACHED_ROUTES_SKIP_EXPERIMENT_FLAG_PERCENTAGE = 0.5;

// We want to skip cached routes access whenever "intent === INTENT.CACHING".
// To verify this functionality though, we want to start by using a percentage of the time.
Expand Down

0 comments on commit e69e0f4

Please sign in to comment.