Skip to content

Commit

Permalink
Merge pull request #221 from mrgnlabs/man0s/fix-asset-weight
Browse files Browse the repository at this point in the history
fix(mfi-v2-ui): asset weights
  • Loading branch information
losman0s authored Aug 28, 2023
2 parents f23ba21 + 80f0aea commit ea61c4b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ const AssetRow: FC<{
style={{ fontWeight: 300 }}
>
{isInLendingMode
? bankInfo.bank.config.assetWeightMaint.toNumber() > 0
? (bankInfo.bank.config.assetWeightMaint.toNumber() * 100).toFixed(0) + "%"
? bankInfo.bank.config.assetWeightInit.toNumber() > 0
? (bankInfo.bank.config.assetWeightInit.toNumber() * 100).toFixed(0) + "%"
: "-"
: ((1 / bankInfo.bank.config.liabilityWeightInit.toNumber()) * 100).toFixed(0) + "%"}
</TableCell>
Expand Down

1 comment on commit ea61c4b

@vercel
Copy link

@vercel vercel bot commented on ea61c4b Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.