From 395b43bf2059ba5d0acea13db54e7cc624e826a1 Mon Sep 17 00:00:00 2001 From: 0xean <0xean.eth@gmail.com> Date: Fri, 1 Nov 2024 10:41:14 -0400 Subject: [PATCH 1/2] fix: update type to match api --- cli/src/client.ts | 2 +- cli/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/client.ts b/cli/src/client.ts index 8197465..25bf874 100644 --- a/cli/src/client.ts +++ b/cli/src/client.ts @@ -21,7 +21,7 @@ const ARBITRUM_RFOX_PROXY_CONTRACT_ADDRESS = '0xac2a4fd70bcd8bab0662960455c36373 const THORCHAIN_PRECISION = 8 type Revenue = { - address: string + address: string[] amount: string } diff --git a/cli/src/index.ts b/cli/src/index.ts index 670e191..9593c9a 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -45,7 +45,7 @@ const processEpoch = async () => { const revenue = await client.getRevenue(metadata.epochStartTimestamp, metadata.epochEndTimestamp) info( - `Total ${month} revenue earned by ${revenue.address}: ${BigNumber(revenue.amount).div(100000000).toFixed(8)} RUNE`, + `Total ${month} revenue earned by ${revenue.addresses}: ${BigNumber(revenue.amount).div(100000000).toFixed(8)} RUNE`, ) info(`Share of total revenue to be distributed as rewards: ${metadata.distributionRate * 100}%`) From 3ef37be984ebd280dcd7587340df5ee7beac9538 Mon Sep 17 00:00:00 2001 From: 0xean <0xean.eth@gmail.com> Date: Fri, 1 Nov 2024 11:14:30 -0400 Subject: [PATCH 2/2] plural matters! --- cli/src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/client.ts b/cli/src/client.ts index 25bf874..64db584 100644 --- a/cli/src/client.ts +++ b/cli/src/client.ts @@ -21,7 +21,7 @@ const ARBITRUM_RFOX_PROXY_CONTRACT_ADDRESS = '0xac2a4fd70bcd8bab0662960455c36373 const THORCHAIN_PRECISION = 8 type Revenue = { - address: string[] + addresses: string[] amount: string }