Skip to content

Commit

Permalink
Display LpEthUSDC as USDC
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Sep 18, 2023
1 parent 981ee1e commit b5d87c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions centrifuge-js/src/modules/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1623,6 +1623,11 @@ export function getPoolsModule(inst: Centrifuge) {
const epochExecution = epochExecutionMap[poolId]
const currency = findCurrency(currencies, pool.currency)!

// TODO: remove, temporary UI fix
if (currency.symbol === 'LpEthUSDC') {
currency.symbol = 'USDC'
}

const poolValue = new CurrencyBalance(
pool.tranches.tranches.reduce((prev: BN, tranche: TrancheDetailsData) => {
return new BN(prev.add(new BN(hexToBN(tranche.debt))).add(new BN(hexToBN(tranche.reserve))))
Expand Down

0 comments on commit b5d87c3

Please sign in to comment.