From fda22b74ab6d7bc69e31a189b139b8baa43e34fd Mon Sep 17 00:00:00 2001 From: cgewecke Date: Tue, 2 Nov 2021 15:23:28 -0700 Subject: [PATCH] Use balancer.SOR.fetchPools (instead of fetchFilteredPairPools) (#10) --- index-rebalances/utils/paramDetermination/balancerV1.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index-rebalances/utils/paramDetermination/balancerV1.ts b/index-rebalances/utils/paramDetermination/balancerV1.ts index 50a6d68..4d30846 100644 --- a/index-rebalances/utils/paramDetermination/balancerV1.ts +++ b/index-rebalances/utils/paramDetermination/balancerV1.ts @@ -25,7 +25,7 @@ export async function getBalancerV1Quote(provider: BaseProvider, tokenAddress: A 1, // ChainId = mainnet (1) "https://storageapi.fleek.co/balancer-bucket/balancer-exchange/pools" ); - await sor.fetchFilteredPairPools(ETH_ADDRESS, tokenAddress); + await sor.fetchPools(); await sor.setCostOutputToken(tokenAddress); // Set cost to limit small trades const inputAmount = toBigNumberJS(ether(2)); diff --git a/package.json b/package.json index 7c7a74c..19edb16 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@setprotocol/index-rebalance-utils", - "version": "0.0.5", + "version": "0.0.6", "description": "Utilities for param and allocation determination for Set Protocol indices.", "main": "dist", "types": "dist/types",