1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

remove multiplier from totalLiquidityInOcean

This commit is contained in:
Enzo Vezzaro 2022-03-24 10:06:12 -04:00
parent 61d60fd173
commit e6b5cc15d6

View File

@ -119,11 +119,9 @@ function PoolProvider({ children }: { children: ReactNode }): ReactElement {
if (!poolData) return
// Total Liquidity
const totalLiquidityInOcean = isValidNumber(poolData.spotPrice)
? new Decimal(poolData.baseTokenLiquidity).add(
new Decimal(poolData.datatokenLiquidity).mul(poolData.spotPrice)
)
: new Decimal(0)
const totalLiquidityInOcean = new Decimal(
poolData.baseTokenLiquidity ? poolData.baseTokenLiquidity : 0
)
const newPoolInfo = {
liquidityProviderSwapFee: getFee(poolData.liquidityProviderSwapFee),