1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 13:51:42 +02:00

fix community fee displayed value

This commit is contained in:
ClaudiaHolhos 2022-05-10 22:51:19 +03:00
parent 88b40e5985
commit 06258f8904
2 changed files with 383 additions and 1021 deletions

1401
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -8,6 +8,7 @@ import { getOpcFees } from '../../../@utils/subgraph'
import { OpcFeesQuery_opc as OpcFeesData } from '../../../@types/subgraph/OpcFeesQuery'
import { useWeb3 } from '@context/Web3'
import { useMarketMetadata } from '@context/MarketMetadata'
import Decimal from 'decimal.js'
const Default = ({
title,
@ -79,7 +80,7 @@ export default function Fees({
title="Community Fee"
name="communityFee"
tooltip={tooltips.communityFee}
value={opcFees?.swapOceanFee || '0'}
value={new Decimal(opcFees?.swapOceanFee).mul(100).toString() || '0'}
/>
<Default