feat(goldfinch): Refactor logic and add claimable support #2138
Conversation
@@ -1,4 +1,15 @@ | |||
[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to the latest ABI and renamed the file
const balance = Number(balanceRaw); | ||
if (balance === 0) return []; | ||
|
||
const claimableGFI = await multicall.wrap(stakingRewardsContract).totalOptimisticClaimable(address); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this section is new to support claimable gfi
balanceUSD: claimableGFIBalanceUSD, | ||
}; | ||
|
||
let sumOfCurveTotalTokens = new BigNumber(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done sir !!! Todos are crystal clear For the step edit: I renamed the PR title, but you will also need to amen the previous commit message to match the title of the PR |
…2138) * feat(goldfinch): Refactor logic and add claimable support
Description
claimable
fidu to Membership Vaultclaimable
gfi supportChecklist
How to test?