This commit is contained in:
saml33 2023-07-18 20:53:43 +10:00
parent c38dcb5428
commit 432a9fc08d
1 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,7 @@ const HealthContributions = ({ hideView }: { hideView: () => void }) => {
)
initContributions.push({
...item,
contribution: Math.abs(contribution),
hasPerp: hasPerp,
isAsset: contribution > 0 ? true : false,
})
@ -82,9 +83,10 @@ const HealthContributions = ({ hideView }: { hideView: () => void }) => {
(perp: PerpMarketContribution) => Math.abs(perp.contributionUi) > 0
)
maintContributions.push({
...item,
hasPerp: hasPerp,
isAsset: contribution > 0 ? true : false,
...item,
contribution: Math.abs(contribution),
})
if (item.contributionDetails) {
for (const perpMarket of item.contributionDetails