Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(votium): Use group ID in key
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich committed Jun 9, 2022
1 parent caec097 commit 97051a5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/apps/votium/helpers/votium.rewards.balance-helper.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Blob } from 'buffer';

import { Inject, Injectable } from '@nestjs/common';
import Axios from 'axios';
import BigNumber from 'bignumber.js';
Expand Down Expand Up @@ -37,7 +39,7 @@ export type VotiumRewardsToken = {
};

const appId = VOTIUM_DEFINITION.id;
const groupId = VOTIUM_DEFINITION.groups.claimable;
const groupId = VOTIUM_DEFINITION.groups.claimable.id;
const network = Network.ETHEREUM_MAINNET;

@Injectable()
Expand Down Expand Up @@ -66,7 +68,10 @@ export class VotiumClaimableBalancesHelper {
}),
);

return fromPairs(claims);
const result = fromPairs(claims);
const resultStr = JSON.stringify(result);
console.log('SIZE: ', new Blob([resultStr]).size);
return result;
} catch (e) {
return [];
}
Expand Down

0 comments on commit 97051a5

Please sign in to comment.