From 1b980c79bd2b5141bcb3cd25892bc7ea0191808c Mon Sep 17 00:00:00 2001 From: gmbronco <83549293+gmbronco@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:42:02 +0200 Subject: [PATCH] fix: BAL address on base (#461) --- modules/network/base.ts | 2 +- modules/pool/lib/apr-data-sources/ve-bal-gauge-apr.service.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/network/base.ts b/modules/network/base.ts index c685da88d..e7f00f4d8 100644 --- a/modules/network/base.ts +++ b/modules/network/base.ts @@ -61,7 +61,7 @@ const baseNetworkData: NetworkData = { }, protocolToken: 'bal', bal: { - address: '0x4158734D47Fc9692176B5085E0F52ee0Da5d47F1 ', + address: '0x4158734d47fc9692176b5085e0f52ee0da5d47f1', }, veBal: { address: '0xc128a9954e6c874ea3d62ce62b468ba073093f25', diff --git a/modules/pool/lib/apr-data-sources/ve-bal-gauge-apr.service.ts b/modules/pool/lib/apr-data-sources/ve-bal-gauge-apr.service.ts index 4ad705154..6c144ddaf 100644 --- a/modules/pool/lib/apr-data-sources/ve-bal-gauge-apr.service.ts +++ b/modules/pool/lib/apr-data-sources/ve-bal-gauge-apr.service.ts @@ -60,7 +60,7 @@ export class GaugeAprService implements PoolAprService { gauge.rewards.map(async ({ tokenAddress, rewardPerSecond }) => { const price = this.tokenService.getPriceForToken(tokenPrices, tokenAddress); if (!price) { - return Promise.reject('Price not found'); + return Promise.reject(`Price not found for ${tokenAddress}`); } let definition; @@ -91,6 +91,7 @@ export class GaugeAprService implements PoolAprService { const aprItems = rewards .map((reward) => { if (reward.status === 'rejected') { + console.error(`Failed to get reward data for ${gauge.id}: ${reward.reason}`) return null; }