diff --git a/balancer-js/examples/swaps/advanced.ts b/balancer-js/examples/swaps/advanced.ts index f0b80fb0a..e785cb808 100644 --- a/balancer-js/examples/swaps/advanced.ts +++ b/balancer-js/examples/swaps/advanced.ts @@ -42,8 +42,8 @@ async function getAndProcessSwaps( console.log('No Swap'); return; } - // console.log(swapInfo.swaps); - // console.log(swapInfo.tokenAddresses); + console.log(swapInfo.swaps); + console.log(swapInfo.tokenAddresses); console.log(`Return amount: `, swapInfo.returnAmount.toString()); const pools = balancer.swaps.sor.getPools(); @@ -120,15 +120,16 @@ async function getAndProcessSwaps( } async function swapExample() { - const network = Network.GNOSIS; + const network = Network.ARBITRUM; const rpcUrl = FORK_NODES[network]; - const tokenIn = '0xe91d153e0b41518a2ce8dd3d7944fa863463a97d'; - const tokenOut = '0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1'; + const tokenIn = '0xaf88d065e77c8cC2239327C5EDb3A432268e5831'; + const tokenOut = '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9'; const swapType = SwapTypes.SwapExactIn; - const amount = parseFixed('20000', 18); + const amount = parseFixed('200000', 6); // Currently Relayer only suitable for ExactIn and non-eth swaps const canUseJoinExitPaths = canUseJoinExit(swapType, tokenIn, tokenOut); + console.log(rpcUrl); const balancer = new BalancerSDK({ network, rpcUrl, diff --git a/balancer-js/src/lib/constants/config.ts b/balancer-js/src/lib/constants/config.ts index 2983dd8d0..34c6f06bc 100644 --- a/balancer-js/src/lib/constants/config.ts +++ b/balancer-js/src/lib/constants/config.ts @@ -222,6 +222,7 @@ export const BALANCER_NETWORK_CONFIG: Record = { '0x178e029173417b1f9c8bc16dcec6f697bc323746000200000000000000000158', // wstEth/USDC.e to open up auraBAL/USDC '0x0052688295413b32626d226a205b95cdb337de860002000000000000000003d1', // arb/USDC.e to open up aura/USDC '0xa1a8bf131571a2139feb79401aa4a2e9482df6270002000000000000000004b4', // wstEth/Stable4Pool + '0x125bc5a031b2db6733bfa35d914ffa428095978b000200000000000000000514', // Gyro Rehype aUSDC/aUSDT ], }, [Network.GOERLI]: {