Skip to content

Commit

Permalink
chore: Add Gyro rehype mid pool.
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrantuk committed May 16, 2024
1 parent ee15983 commit a12d33b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions balancer-js/examples/swaps/advanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions balancer-js/src/lib/constants/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export const BALANCER_NETWORK_CONFIG: Record<Network, BalancerNetworkConfig> = {
'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]: {
Expand Down

0 comments on commit a12d33b

Please sign in to comment.