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 if (!poolData) return
// Total Liquidity // Total Liquidity
const totalLiquidityInOcean = isValidNumber(poolData.spotPrice) const totalLiquidityInOcean = new Decimal(
? new Decimal(poolData.baseTokenLiquidity).add( poolData.baseTokenLiquidity ? poolData.baseTokenLiquidity : 0
new Decimal(poolData.datatokenLiquidity).mul(poolData.spotPrice) )
)
: new Decimal(0)
const newPoolInfo = { const newPoolInfo = {
liquidityProviderSwapFee: getFee(poolData.liquidityProviderSwapFee), liquidityProviderSwapFee: getFee(poolData.liquidityProviderSwapFee),