Showing 70 of 86 total issues

Avoid too many return statements within this function.
Open

return (
<AddressLinkExternal
url={TOKEN_BACKED_ADDRESS.DOT.cake.link}
text={TOKEN_BACKED_ADDRESS.DOT.cake.address}
testId="BackingAddress.DOT"
Severity: Major
Found in src/pages/tokens/[id].page.tsx - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

    return (
    <AddressLinkExternal
    url={TOKEN_BACKED_ADDRESS.SOL.cake.link}
    text={TOKEN_BACKED_ADDRESS.SOL.cake.address}
    testId="BackingAddress.SOL"
    Severity: Major
    Found in src/pages/tokens/[id].page.tsx - About 30 mins to fix

      Function getServerSideProps has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      export async function getServerSideProps(
      context: GetServerSidePropsContext,
      ): Promise<GetServerSidePropsResult<TokenAssetPageProps>> {
      const api = getWhaleApiClient(context);
      const param = context.params?.id?.toString().trim() as string;
      Severity: Minor
      Found in src/pages/tokens/[id].page.tsx - About 25 mins to fix

      Function ProposalFilterTab has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      function ProposalFilterTab({
      userQueryProposalStatus,
      userQueryProposalType,
      }: {
      userQueryProposalStatus: ListProposalsStatus;
      Severity: Minor
      Found in src/pages/governance/index.page.tsx - About 25 mins to fix

      Function BidAmountValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      export function BidAmountValue(props: BidAmountValueProps): JSX.Element {
      const { getTokenPrice } = useTokenPrice();
       
      let minBidAmount: BigNumber;
      let minBidValue: BigNumber;
      Severity: Minor
      Found in src/pages/auctions/_components/commons/BidAmountValue.tsx - About 25 mins to fix

      Function SortData has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      export function SortData({
      poolPairsPrices,
      sortKey,
      reverse,
      }: {
      Severity: Minor
      Found in src/pages/dex/_components/PoolPairsTable.tsx - About 25 mins to fix

      Function LabelWithInfoTooltipAndChecks has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      function LabelWithInfoTooltipAndChecks({
      labelTitle,
      value,
      comparatorValue,
      comparingMinimumValue = false,
      Severity: Minor
      Found in src/pages/governance/_components/VotingResult.tsx - About 25 mins to fix

      Function getServerSideProps has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      export async function getServerSideProps(
      context: GetServerSidePropsContext
      ): Promise<GetServerSidePropsResult<PricesPageProps>> {
      const api = getWhaleApiClient(context);
       
       
      Severity: Minor
      Found in src/pages/oracles/index.page.tsx - About 25 mins to fix

      Function TokenSymbol has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      export function TokenSymbol(props: TokenSymbolProps): JSX.Element {
      const api = useWhaleApiClient();
      const [tokenData, setTokenData] = useState<TokenData | undefined>(undefined);
      const [showTokenId, setShowTokenId] = useState<boolean>(false);
       
       
      Severity: Minor
      Found in src/components/commons/token/TokenSymbol.tsx - About 25 mins to fix

      Function VaultTableRow has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      export function VaultTableRow(props: VaultTableRowProps): JSX.Element {
      return (
      <OverflowTable.Row
      className={classNames(
      "cursor-pointer",
      Severity: Minor
      Found in src/pages/vaults/_components/commons/VaultTableRow.tsx - About 25 mins to fix
      Severity
      Category
      Status
      Source
      Language