Skip to content

Commit

Permalink
sor 4.17.2 npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 committed Jan 30, 2025
1 parent fd544ac commit 7070029
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class DynamoRouteCachingProvider extends IRouteCachingProvider {
const { currencyIn, currencyOut } = this.determineCurrencyInOut(amount, quoteCurrency, tradeType)

// for getting the cached routes, we dont know if the cached route will contains a v4 pool or not, so we try to see if the input protocols contain v4
const includesV4Pool = false // TODO: re-enable v4 protocols.includes(Protocol.V4)
const includesV4Pool = protocols.includes(Protocol.V4)

const partitionKey = new PairTradeTypeChainId({
currencyIn: PairTradeTypeChainId.deriveCurrencyAddress(includesV4Pool, currencyIn),
Expand Down Expand Up @@ -338,7 +338,7 @@ export class DynamoRouteCachingProvider extends IRouteCachingProvider {
// if no Item is found it means we need to send a caching request
if (shouldSendCachingRequest) {
metric.putMetric('CachingQuoteForRoutesDbRequestSent', 1, MetricLoggerUnit.Count)
this.sendAsyncCachingRequest(partitionKey, [Protocol.V2, Protocol.V3, Protocol.MIXED], amount)
this.sendAsyncCachingRequest(partitionKey, [Protocol.V2, Protocol.V3, Protocol.V4, Protocol.MIXED], amount)
this.setRoutesDbCachingIntentFlag(partitionKey, amount, currentBlockNumber)
} else {
metric.putMetric('CachingQuoteForRoutesDbRequestNotNeeded', 1, MetricLoggerUnit.Count)
Expand Down
14 changes: 7 additions & 7 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
Expand Up @@ -88,7 +88,7 @@
"@uniswap/permit2-sdk": "^1.3.0",
"@uniswap/router-sdk": "^1.21.0",
"@uniswap/sdk-core": "^7.5.0",
"@uniswap/smart-order-router": "4.17.1",
"@uniswap/smart-order-router": "4.17.2",
"@uniswap/token-lists": "^1.0.0-beta.33",
"@uniswap/universal-router-sdk": "^4.14.0",
"@uniswap/v2-sdk": "^4.13.0",
Expand Down

0 comments on commit 7070029

Please sign in to comment.