synapsecns/sanguine

View on GitHub
packages/synapse-interface/constants/chains/master.tsx

Summary

Maintainability
F
1 wk
Test Coverage

File master.tsx has 619 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import arbitrumImg from '@assets/chains/arbitrum.svg'
import auroraImg from '@assets/chains/aurora.svg'
import avalancheImg from '@assets/chains/avalanche.svg'
import baseImg from '@assets/chains/base.svg'
import blastImg from '@assets/chains/blast.svg'
Severity: Major
Found in packages/synapse-interface/constants/chains/master.tsx - About 1 day to fix

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const DFK: Chain = {
      priorityRank: 75,
      id: 53935,
      chainSymbol: 'DFK',
      name: 'DFK Chain',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const BOBA: Chain = {
      priorityRank: 10,
      id: 288,
      chainSymbol: 'BOBA',
      name: 'Boba Chain',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

    export const WORLDCHAIN: Chain = {
      priorityRank: 99,
      id: 480,
      chainSymbol: 'WORLDCHAIN',
      name: 'World Chain',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 4 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 37..61
    packages/synapse-interface/constants/chains/master.tsx on lines 492..516
    packages/synapse-interface/constants/chains/master.tsx on lines 518..542
    packages/synapse-interface/constants/chains/master.tsx on lines 544..567

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const AVALANCHE: Chain = {
      priorityRank: 90,
      id: 43114,
      chainSymbol: 'AVALANCHE',
      name: 'Avalanche',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const HARMONY: Chain = {
      priorityRank: 10,
      id: 1666600000,
      chainSymbol: 'HARMONY',
      name: 'Harmony',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const ARBITRUM: Chain = {
      priorityRank: 90,
      id: 42161,
      chainSymbol: 'ARBITRUM',
      name: 'Arbitrum',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const OPTIMISM: Chain = {
      priorityRank: 91,
      id: 10,
      chainSymbol: 'OPTIMISM',
      name: 'Optimism',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

    export const ETH: Chain = {
      priorityRank: 100,
      id: 1,
      chainSymbol: 'ETH',
      name: 'Ethereum',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 4 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 492..516
    packages/synapse-interface/constants/chains/master.tsx on lines 518..542
    packages/synapse-interface/constants/chains/master.tsx on lines 544..567
    packages/synapse-interface/constants/chains/master.tsx on lines 595..619

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

    export const BASE: Chain = {
      priorityRank: 90,
      id: 8453,
      chainSymbol: 'BASE',
      name: 'Base',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 4 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 37..61
    packages/synapse-interface/constants/chains/master.tsx on lines 518..542
    packages/synapse-interface/constants/chains/master.tsx on lines 544..567
    packages/synapse-interface/constants/chains/master.tsx on lines 595..619

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const POLYGON: Chain = {
      priorityRank: 80,
      id: 137,
      chainSymbol: 'POLYGON',
      name: 'Polygon',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const CANTO: Chain = {
      priorityRank: 70,
      id: 7700,
      chainSymbol: 'CANTO',
      name: 'Canto',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const KLAYTN: Chain = {
      priorityRank: 70,
      id: 8217,
      chainSymbol: 'KLAYTN',
      name: 'Klaytn',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const DOGE: Chain = {
      priorityRank: 0,
      id: 2000,
      chainSymbol: 'DOGE',
      name: 'Dogechain',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const MOONRIVER: Chain = {
      priorityRank: 0,
      id: 1285,
      chainSymbol: 'MOONRIVER',
      name: 'Moonriver',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const FANTOM: Chain = {
      priorityRank: 70,
      id: 250,
      chainSymbol: 'FANTOM',
      name: 'Fantom',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const MOONBEAM: Chain = {
      priorityRank: 0,
      id: 1284,
      chainSymbol: 'MOONBEAM',
      name: 'Moonbeam',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const CRONOS: Chain = {
      priorityRank: 10,
      id: 25,
      chainSymbol: 'CRONOS',
      name: 'Cronos',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const METIS: Chain = {
      priorityRank: 10,
      id: 1088,
      chainSymbol: 'METIS',
      name: 'Metis',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 367..390
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

    export const SCROLL: Chain = {
      priorityRank: 90,
      id: 534352,
      chainSymbol: 'SCROLL',
      name: 'Scroll',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 4 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 37..61
    packages/synapse-interface/constants/chains/master.tsx on lines 492..516
    packages/synapse-interface/constants/chains/master.tsx on lines 518..542
    packages/synapse-interface/constants/chains/master.tsx on lines 595..619

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 16 locations. Consider refactoring.
    Open

    export const AURORA: Chain = {
      priorityRank: 10,
      id: 1313161554,
      chainSymbol: 'AURORA',
      name: 'Aurora',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 63..87
    packages/synapse-interface/constants/chains/master.tsx on lines 115..138
    packages/synapse-interface/constants/chains/master.tsx on lines 140..163
    packages/synapse-interface/constants/chains/master.tsx on lines 165..189
    packages/synapse-interface/constants/chains/master.tsx on lines 191..215
    packages/synapse-interface/constants/chains/master.tsx on lines 217..240
    packages/synapse-interface/constants/chains/master.tsx on lines 242..265
    packages/synapse-interface/constants/chains/master.tsx on lines 267..290
    packages/synapse-interface/constants/chains/master.tsx on lines 292..315
    packages/synapse-interface/constants/chains/master.tsx on lines 317..340
    packages/synapse-interface/constants/chains/master.tsx on lines 342..365
    packages/synapse-interface/constants/chains/master.tsx on lines 392..415
    packages/synapse-interface/constants/chains/master.tsx on lines 417..440
    packages/synapse-interface/constants/chains/master.tsx on lines 442..465
    packages/synapse-interface/constants/chains/master.tsx on lines 467..490

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

    export const BLAST: Chain = {
      priorityRank: 90,
      id: 81457,
      chainSymbol: 'BLAST',
      name: 'Blast',
    Severity: Major
    Found in packages/synapse-interface/constants/chains/master.tsx and 4 other locations - About 4 hrs to fix
    packages/synapse-interface/constants/chains/master.tsx on lines 37..61
    packages/synapse-interface/constants/chains/master.tsx on lines 492..516
    packages/synapse-interface/constants/chains/master.tsx on lines 544..567
    packages/synapse-interface/constants/chains/master.tsx on lines 595..619

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 119.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status