Skip to content

Commit

Permalink
Merge pull request #426 from balancer/add-sbal3-tripathmidpool-gnosis
Browse files Browse the repository at this point in the history
Add sBAL3 as tripathmidpool to Gnosis
  • Loading branch information
brunoguerios authored Dec 2, 2023
2 parents f204ddc + 740be87 commit d5669b0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/gallium
13 changes: 12 additions & 1 deletion test/testScripts/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const SOR_CONFIG: Record<Network, SorConfig> = {
],
triPathMidPoolIds: [
'0xeb30c85cc528537f5350cf5684ce6a4538e13394000200000000000000000059', // 3POOL_BPT/wstETH
'0x7644fa5d0ea14fcf3e813fdf93ca9544f8567655000000000000000000000066', // sBAL3
],
},
[Network.ZKEVM]: {
Expand Down Expand Up @@ -522,7 +523,7 @@ export const ADDRESSES = {
WXDAI: {
address: '0xe91d153e0b41518a2ce8dd3d7944fa863463a97d',
decimals: 18,
symbol: 'DAI',
symbol: 'WXDAI',
},
USDT: {
address: '0x4ECaBa5870353805a9F068101A40E0f32ed605C6',
Expand All @@ -539,6 +540,16 @@ export const ADDRESSES = {
decimals: 18,
symbol: 'STETH',
},
crvUSD: {
address: '0xaBEf652195F98A91E490f047A5006B71c85f058d',
decimals: 18,
symbol: 'crvUSD',
},
sDAI: {
address: '0xaf204776c7245bf4147c2612bf6e5972ee483701',
decimals: 18,
symbol: 'sDAI',
},
},
[Network.GOERLI]: {
DAI: {
Expand Down
4 changes: 2 additions & 2 deletions test/testScripts/swapExample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export async function swap(): Promise<void> {
// This determines the max no of pools the SOR will use to swap.
const maxPools = 4;
const tokenIn = ADDRESSES[networkId].WXDAI;
const tokenOut = ADDRESSES[networkId].WETH;
const tokenOut = ADDRESSES[networkId].crvUSD;
const swapType: SwapTypes = SwapTypes.SwapExactIn;
const swapAmount = parseFixed('20000', 18);
const swapAmount = parseFixed('200', 18);

const sor = setUp(networkId, provider);

Expand Down

0 comments on commit d5669b0

Please sign in to comment.