Skip to content

Commit

Permalink
Fix hex conversion for 30 day yield
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Sep 19, 2024
1 parent bcfb855 commit d8edca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion centrifuge-js/src/modules/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2483,7 +2483,7 @@ export function getPoolsModule(inst: Centrifuge) {
tokenPrice: new Price(state.tokenPrice),
pool: state.tranche.poolId,
yield30DaysAnnualized: state.yield30DaysAnnualized
? new Perquintill(hexToBN(state.yield30DaysAnnualized))
? new Perquintill(state.yield30DaysAnnualized)
: new Perquintill(0),
}
if (trancheStates[tid]) {
Expand Down

0 comments on commit d8edca4

Please sign in to comment.