DeFiCh/wallet

View on GitHub
mobile-app/app/screens/AppNavigator/screens/Loans/screens/EditCollateralScreen.tsx

Summary

Maintainability
C
1 day
Test Coverage

File EditCollateralScreen.tsx has 502 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { SymbolIcon } from "@components/SymbolIcon";
import {
  ThemedIcon,
  ThemedScrollView,
  ThemedSectionTitle,

    Function CollateralCard has 111 lines of code (exceeds 100 allowed). Consider refactoring.
    Open

    function CollateralCard(props: CollateralCardProps): JSX.Element {
      const { collateral, collateralItem, totalCollateralValue, vault } = props;
      const canUseOperations = useLoanOperations(vault.state);
      const prices = getCollateralPrice(
        new BigNumber(collateral.amount),

      Function VaultIdSection has 108 lines of code (exceeds 100 allowed). Consider refactoring.
      Open

      function VaultIdSection(props: { vault: LoanVaultActive }): JSX.Element {
        const { vault } = props;
        const colRatio = new BigNumber(vault.informativeRatio);
        const minColRatio = new BigNumber(vault.loanScheme.minColRatio);
        const totalLoanAmount = new BigNumber(vault.loanValue);

        There are no issues that match your filters.

        Category
        Status