From c45f901abfd5d07d3cbf536fe7fb3154152e364a Mon Sep 17 00:00:00 2001 From: slasher125 Date: Tue, 2 Jan 2024 14:22:15 +0100 Subject: [PATCH] stargate fix --- src/adaptors/stargate/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/adaptors/stargate/index.js b/src/adaptors/stargate/index.js index fa73417304..cc347224ce 100644 --- a/src/adaptors/stargate/index.js +++ b/src/adaptors/stargate/index.js @@ -301,7 +301,11 @@ const main = async () => { const pools = []; for (const chain of Object.keys(CONFIG)) { console.log(chain); - pools.push(await getApy(chain, CONFIG[chain].LP_STAKING)); + try { + pools.push(await getApy(chain, CONFIG[chain].LP_STAKING)); + } catch (err) { + console.log(`${chain} failed`); + } } return pools