Skip to content

Commit

Permalink
Merge pull request #516 from balancer/sor-with-tripaths
Browse files Browse the repository at this point in the history
Sor with tripaths
  • Loading branch information
johngrantuk authored Aug 9, 2023
2 parents 5168c89 + 26d9b67 commit 90719fd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion balancer-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"typescript": "^4.0.2"
},
"dependencies": {
"@balancer-labs/sor": "^4.1.1-beta.15",
"@balancer-labs/sor": "^4.1.1-beta.16",
"@ethersproject/abi": "^5.4.0",
"@ethersproject/abstract-signer": "^5.4.0",
"@ethersproject/address": "^5.4.0",
Expand Down
3 changes: 3 additions & 0 deletions balancer-js/src/lib/constants/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ export const BALANCER_NETWORK_CONFIG: Record<Network, BalancerNetworkConfig> = {
address: '0x4200000000000000000000000000000000000006',
},
],
sorTriPathMidPoolIds: [
'0x2db50a0e0310723ef0c2a165cb9a9f80d772ba2f00020000000000000000000d', // weth/staBal
],
},
};

Expand Down
1 change: 1 addition & 0 deletions balancer-js/src/modules/sor/sor.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class Sor extends SOR {
lbpRaisingTokens: network.addresses.tokens?.lbpRaisingTokens,
wETHwstETH: network.pools.wETHwstETH,
connectingTokens: network.sorConnectingTokens,
triPathMidPoolIds: network.sorTriPathMidPoolIds,
};
}

Expand Down
1 change: 1 addition & 0 deletions balancer-js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export interface BalancerNetworkConfig {
};
poolsToIgnore?: string[];
sorConnectingTokens?: { symbol: string; address: string }[];
sorTriPathMidPoolIds?: string[];
}

export interface BalancerDataRepositories {
Expand Down
8 changes: 4 additions & 4 deletions balancer-js/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,10 @@
"@babel/helper-validator-identifier" "^7.19.1"
to-fast-properties "^2.0.0"

"@balancer-labs/sor@^4.1.1-beta.15":
version "4.1.1-beta.15"
resolved "https://registry.yarnpkg.com/@balancer-labs/sor/-/sor-4.1.1-beta.15.tgz#20a92224adf493dbd523cc46682eafe3356a39ae"
integrity sha512-S2Yh5FSr1XyFnsLdB3YA1LtqN5eAq57MaW3usidq3iZiNDT6EGKm1PEg3rhMeK4Ci+IgpAQXzAeh2htIjpYFxQ==
"@balancer-labs/sor@^4.1.1-beta.16":
version "4.1.1-beta.16"
resolved "https://registry.yarnpkg.com/@balancer-labs/sor/-/sor-4.1.1-beta.16.tgz#bee2a863c751ca10320090b4831db26492b1959f"
integrity sha512-EKS7J78r5jKDsGqOs2gzIyhOqYyDAmrwp/nY2bSsfymNXSTr7g3YS418UJl1hSQMBEeN4N2MnH0neM1oJxHHoQ==
dependencies:
isomorphic-fetch "^2.2.1"

Expand Down

0 comments on commit 90719fd

Please sign in to comment.