synapsecns/sanguine

View on GitHub
packages/rest-api/src/constants/bridgeable.ts

Summary

Maintainability
F
1 mo
Test Coverage

File bridgeable.ts has 1348 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { BridgeableToken } from '../types'
import { CHAINS } from './chains'

const NativeTokenAddress = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'

Severity: Major
Found in packages/rest-api/src/constants/bridgeable.ts - About 3 days to fix

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

    export const SYN: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x0f2d719407fdbeff09d87557abb7232601fd9f29',
        [CHAINS.BNBCHAIN.id]: '0xa4080f1778e69467e905b8d6f72f6e441f9e9484',
        [CHAINS.POLYGON.id]: '0xf8f9efc0db77d8881500bb06ff5d6abc3070e695',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 3 days to fix
    packages/widget/src/constants/bridgeable.ts on lines 608..657

    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 532.

    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 2 locations. Consider refactoring.
    Open

    export const USDC: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
        [CHAINS.OPTIMISM.id]: '0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
        [CHAINS.CRONOS.id]: '0xc21223249ca28397b4b6541dffaecc539bff0c59',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 2 days to fix
    packages/widget/src/constants/bridgeable.ts on lines 423..466

    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 454.

    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 2 locations. Consider refactoring.
    Open

    export const NUSD: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
        [CHAINS.OPTIMISM.id]: '0x67C10C397dD0Ba417329543c1a40eb48AAa7cd00',
        [CHAINS.CRONOS.id]: '0x396c9c192dd323995346632581BEF92a31AC623b',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 2 days to fix
    packages/widget/src/constants/bridgeable.ts on lines 703..744

    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 428.

    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 2 locations. Consider refactoring.
    Open

    export const GOHM: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x0ab87046fBb341D058F17CBC4c1133F25a20a52f',
        [CHAINS.OPTIMISM.id]: '0x0b5740c6b4a97f90eF2F0220651Cca420B868FfB',
        [CHAINS.BNBCHAIN.id]: '0x88918495892BAF4536611E38E75D771Dc6Ec0863',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 2 days to fix
    packages/widget/src/constants/bridgeable.ts on lines 6..46

    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 402.

    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 2 locations. Consider refactoring.
    Open

    export const USDT: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0xdac17f958d2ee523a2206206994597c13d831ec7',
        [CHAINS.OPTIMISM.id]: '0x94b008aA00579c1307B0EF2c499aD98a8ce58e58',
        [CHAINS.BNBCHAIN.id]: '0x55d398326f99059ff775485246999027b3197955',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 1 day to fix
    packages/widget/src/constants/bridgeable.ts on lines 485..520

    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 350.

    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 4 locations. Consider refactoring.
    Open

    export const NETH: BridgeableToken = {
      addresses: {
        [CHAINS.OPTIMISM.id]: '0x809DC529f07651bD43A172e8dB6f4a7a0d771036',
        [CHAINS.FANTOM.id]: '0x67C10C397dD0Ba417329543c1a40eb48AAa7cd00',
        [CHAINS.BOBA.id]: '0x96419929d7949D6A801A6909c145C8EEf6A40431',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 3 other locations - About 1 day to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 1291..1324
    packages/widget/src/constants/bridgeable.ts on lines 763..796
    packages/widget/src/constants/bridgeable.ts on lines 1287..1320

    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 324.

    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 4 locations. Consider refactoring.
    Open

    export const WETH: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
        [CHAINS.OPTIMISM.id]: '0x121ab82b49B2BC4c7901CA46B8277962b4350204',
        [CHAINS.BOBA.id]: '0xd203De32170130082896b4111eDF825a4774c18E',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 3 other locations - About 1 day to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 763..796
    packages/widget/src/constants/bridgeable.ts on lines 763..796
    packages/widget/src/constants/bridgeable.ts on lines 1287..1320

    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 324.

    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 4 locations. Consider refactoring.
    Open

    export const DAI: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x6b175474e89094c44da98b954eedeac495271d0f',
        [CHAINS.OPTIMISM.id]: '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
        [CHAINS.POLYGON.id]: '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 3 other locations - About 1 day to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 289..318
    packages/widget/src/constants/bridgeable.ts on lines 289..318
    packages/widget/src/constants/bridgeable.ts on lines 522..551

    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 272.

    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 4 locations. Consider refactoring.
    Open

    export const H2O: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x0642026e7f0b6ccac5925b4e7fa61384250e1701',
        [CHAINS.ARBITRUM.id]: '0xD1c6f989e9552DB523aBAE2378227fBb059a3976',
        [CHAINS.AVALANCHE.id]: '0xC6b11a4Fd833d1117E9D312c02865647cd961107',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 3 other locations - About 1 day to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 522..551
    packages/widget/src/constants/bridgeable.ts on lines 289..318
    packages/widget/src/constants/bridgeable.ts on lines 522..551

    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 272.

    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 2 locations. Consider refactoring.
    Open

    export const JEWEL: BridgeableToken = {
      addresses: {
        [CHAINS.DFK.id]: NativeTokenAddress,
        [CHAINS.HARMONY.id]: '0x72cb10c6bfa5624dd07ef608027e366bd690048f',
        [CHAINS.KLAYTN.id]: '0x30C103f8f5A3A732DFe2dCE1Cc9446f545527b43',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 1 day to fix
    packages/widget/src/constants/bridgeable.ts on lines 913..938

    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 220.

    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 UNIDX: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0xf0655dcee37e5c0b70fffd70d85f88f8edf0aff6',
        [CHAINS.ARBITRUM.id]: '0x5429706887FCb58a595677B73E9B0441C25d993D',
        [CHAINS.FANTOM.id]: '0x0483a76D80D0aFEC6bd2afd12C1AD865b9DF1471',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 4 other locations - About 7 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 205..228
    packages/widget/src/constants/bridgeable.ts on lines 205..228
    packages/widget/src/constants/bridgeable.ts on lines 379..402
    packages/widget/src/constants/bridgeable.ts on lines 993..1016

    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 194.

    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 SDT: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x73968b9a57c6e53d41345fd57a6e6ae27d6cdb2f',
        [CHAINS.AVALANCHE.id]: '0xCCBf7c451F81752F7d2237F2c18C371E6e089E69',
        [CHAINS.ARBITRUM.id]: '0x087d18A77465c34CDFd3a081a2504b7E86CE4EF8',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 4 other locations - About 7 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 379..402
    packages/widget/src/constants/bridgeable.ts on lines 205..228
    packages/widget/src/constants/bridgeable.ts on lines 379..402
    packages/widget/src/constants/bridgeable.ts on lines 993..1016

    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 194.

    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 2 locations. Consider refactoring.
    Open

    export const AVAX: BridgeableToken = {
      addresses: {
        [CHAINS.MOONBEAM.id]: '0xA1f8890E39b4d8E33efe296D698fe42Fb5e59cC3',
        [CHAINS.KLAYTN.id]: '0xCd8fE44A29Db9159dB36f96570d7A4d91986f528',
        [CHAINS.AVALANCHE.id]: NativeTokenAddress,
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 7 hrs to fix
    packages/widget/src/constants/bridgeable.ts on lines 854..877

    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 194.

    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 4 locations. Consider refactoring.
    Open

    export const NFD: BridgeableToken = {
      addresses: {
        [CHAINS.BNBCHAIN.id]: '0x0fe9778c005a5a6115cbe12b0568a2d50b765a51',
        [CHAINS.AVALANCHE.id]: '0xf1293574ee43950e7a8c9f1005ff097a9a713959',
        [CHAINS.DOGE.id]: '0x868055ADFA27D331d5b69b1BF3469aDAAc3ba7f2',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 3 other locations - About 6 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 680..701
    packages/widget/src/constants/bridgeable.ts on lines 144..165
    packages/widget/src/constants/bridgeable.ts on lines 680..701

    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 168.

    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 4 locations. Consider refactoring.
    Open

    export const SYNFRAX: BridgeableToken = {
      addresses: {
        [CHAINS.FANTOM.id]: '0x1852F70512298d56e9c8FDd905e02581E04ddb2a',
        [CHAINS.MOONRIVER.id]: '0xE96AC70907ffF3Efee79f502C985A7A21Bce407d',
        [CHAINS.MOONBEAM.id]: '0xDd47A348AB60c61Ad6B60cA8C31ea5e00eBfAB4F',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 3 other locations - About 6 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 144..165
    packages/widget/src/constants/bridgeable.ts on lines 144..165
    packages/widget/src/constants/bridgeable.ts on lines 680..701

    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 168.

    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 3 locations. Consider refactoring.
    Open

      addresses: {
        [CHAINS.ETHEREUM.id]: NativeTokenAddress,
        [CHAINS.OPTIMISM.id]: NativeTokenAddress,
        [CHAINS.BOBA.id]: NativeTokenAddress,
        [CHAINS.CANTO.id]: '0x5FD55A1B9FC24967C4dB09C513C3BA0DFa7FF687',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 2 other locations - About 6 hrs to fix
    packages/synapse-constants/src/constants/tokens/bridgeable.ts on lines 741..754
    packages/synapse-interface/constants/tokens/bridgeable.ts on lines 703..716

    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 162.

    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 2 locations. Consider refactoring.
    Open

      decimals: {
        [CHAINS.ETHEREUM.id]: 18,
        [CHAINS.OPTIMISM.id]: 18,
        [CHAINS.BOBA.id]: 18,
        [CHAINS.CANTO.id]: 18,
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/bridgeable.ts on lines 475..488

    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 162.

    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 JUMP: BridgeableToken = {
      addresses: {
        [CHAINS.BNBCHAIN.id]: '0x130025ee738a66e691e6a7a62381cb33c6d9ae83',
        [CHAINS.FANTOM.id]: '0x78DE9326792ce1d6eCA0c978753c6953Cdeedd73',
        [CHAINS.METIS.id]: '0xE3c82A836Ec85311a433fBd9486EfAF4b1AFbF48',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 15 other locations - About 5 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 123..142
    packages/rest-api/src/constants/bridgeable.ts on lines 230..249
    packages/rest-api/src/constants/bridgeable.ts on lines 358..377
    packages/rest-api/src/constants/bridgeable.ts on lines 553..572
    packages/rest-api/src/constants/bridgeable.ts on lines 659..678
    packages/rest-api/src/constants/bridgeable.ts on lines 1058..1077
    packages/rest-api/src/constants/bridgeable.ts on lines 1130..1149
    packages/widget/src/constants/bridgeable.ts on lines 83..102
    packages/widget/src/constants/bridgeable.ts on lines 123..142
    packages/widget/src/constants/bridgeable.ts on lines 230..249
    packages/widget/src/constants/bridgeable.ts on lines 358..377
    packages/widget/src/constants/bridgeable.ts on lines 553..572
    packages/widget/src/constants/bridgeable.ts on lines 659..678
    packages/widget/src/constants/bridgeable.ts on lines 1054..1073
    packages/widget/src/constants/bridgeable.ts on lines 1126..1145

    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 142.

    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 NEWO: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x98585dFc8d9e7D48F0b1aE47ce33332CF4237D96',
        [CHAINS.AVALANCHE.id]: '0x4Bfc90322dD638F81F034517359BD447f8E0235a',
        [CHAINS.ARBITRUM.id]: '0x0877154a755B24D499B8e2bD7ecD54d3c92BA433',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 15 other locations - About 5 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 83..102
    packages/rest-api/src/constants/bridgeable.ts on lines 123..142
    packages/rest-api/src/constants/bridgeable.ts on lines 358..377
    packages/rest-api/src/constants/bridgeable.ts on lines 553..572
    packages/rest-api/src/constants/bridgeable.ts on lines 659..678
    packages/rest-api/src/constants/bridgeable.ts on lines 1058..1077
    packages/rest-api/src/constants/bridgeable.ts on lines 1130..1149
    packages/widget/src/constants/bridgeable.ts on lines 83..102
    packages/widget/src/constants/bridgeable.ts on lines 123..142
    packages/widget/src/constants/bridgeable.ts on lines 230..249
    packages/widget/src/constants/bridgeable.ts on lines 358..377
    packages/widget/src/constants/bridgeable.ts on lines 553..572
    packages/widget/src/constants/bridgeable.ts on lines 659..678
    packages/widget/src/constants/bridgeable.ts on lines 1054..1073
    packages/widget/src/constants/bridgeable.ts on lines 1126..1145

    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 142.

    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 BTCB: BridgeableToken = {
      addresses: {
        [CHAINS.KLAYTN.id]: '0xe82f87ba4E97b2796aA0Fa4eFB06e8f0d2EB4FE1',
        [CHAINS.AVALANCHE.id]: '0x152b9d0FdC40C096757F570A51E494bd4b943E50',
        [CHAINS.DFK.id]: '0x7516EB8B8Edfa420f540a162335eACF3ea05a247',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 15 other locations - About 5 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 83..102
    packages/rest-api/src/constants/bridgeable.ts on lines 123..142
    packages/rest-api/src/constants/bridgeable.ts on lines 230..249
    packages/rest-api/src/constants/bridgeable.ts on lines 358..377
    packages/rest-api/src/constants/bridgeable.ts on lines 553..572
    packages/rest-api/src/constants/bridgeable.ts on lines 659..678
    packages/rest-api/src/constants/bridgeable.ts on lines 1058..1077
    packages/widget/src/constants/bridgeable.ts on lines 83..102
    packages/widget/src/constants/bridgeable.ts on lines 123..142
    packages/widget/src/constants/bridgeable.ts on lines 230..249
    packages/widget/src/constants/bridgeable.ts on lines 358..377
    packages/widget/src/constants/bridgeable.ts on lines 553..572
    packages/widget/src/constants/bridgeable.ts on lines 659..678
    packages/widget/src/constants/bridgeable.ts on lines 1054..1073
    packages/widget/src/constants/bridgeable.ts on lines 1126..1145

    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 142.

    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 AGEUR: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x1a7e4e63778B4f12a199C062f3eFdD288afCBce8',
        [CHAINS.ARBITRUM.id]: '0x16BFc5fe024980124bEf51d1D792dC539d1B5Bf0',
        [CHAINS.OPTIMISM.id]: '0xa0554607e477cdC9d0EE2A6b087F4b2DC2815C22',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 15 other locations - About 5 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 83..102
    packages/rest-api/src/constants/bridgeable.ts on lines 123..142
    packages/rest-api/src/constants/bridgeable.ts on lines 230..249
    packages/rest-api/src/constants/bridgeable.ts on lines 553..572
    packages/rest-api/src/constants/bridgeable.ts on lines 659..678
    packages/rest-api/src/constants/bridgeable.ts on lines 1058..1077
    packages/rest-api/src/constants/bridgeable.ts on lines 1130..1149
    packages/widget/src/constants/bridgeable.ts on lines 83..102
    packages/widget/src/constants/bridgeable.ts on lines 123..142
    packages/widget/src/constants/bridgeable.ts on lines 230..249
    packages/widget/src/constants/bridgeable.ts on lines 358..377
    packages/widget/src/constants/bridgeable.ts on lines 553..572
    packages/widget/src/constants/bridgeable.ts on lines 659..678
    packages/widget/src/constants/bridgeable.ts on lines 1054..1073
    packages/widget/src/constants/bridgeable.ts on lines 1126..1145

    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 142.

    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 FRAX: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x853d955acef822db058eb8505911ed77f175b99e',
        [CHAINS.ARBITRUM.id]: '0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F',
        [CHAINS.DOGE.id]: '0x10D70831f9C3c11c5fe683b2f1Be334503880DB6',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 15 other locations - About 5 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 83..102
    packages/rest-api/src/constants/bridgeable.ts on lines 123..142
    packages/rest-api/src/constants/bridgeable.ts on lines 230..249
    packages/rest-api/src/constants/bridgeable.ts on lines 358..377
    packages/rest-api/src/constants/bridgeable.ts on lines 553..572
    packages/rest-api/src/constants/bridgeable.ts on lines 1058..1077
    packages/rest-api/src/constants/bridgeable.ts on lines 1130..1149
    packages/widget/src/constants/bridgeable.ts on lines 83..102
    packages/widget/src/constants/bridgeable.ts on lines 123..142
    packages/widget/src/constants/bridgeable.ts on lines 230..249
    packages/widget/src/constants/bridgeable.ts on lines 358..377
    packages/widget/src/constants/bridgeable.ts on lines 553..572
    packages/widget/src/constants/bridgeable.ts on lines 659..678
    packages/widget/src/constants/bridgeable.ts on lines 1054..1073
    packages/widget/src/constants/bridgeable.ts on lines 1126..1145

    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 142.

    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 WBTC: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599',
        [CHAINS.KLAYTN.id]: '0xDCbacF3f7a069922E677912998c8d57423C37dfA',
        [CHAINS.DOGE.id]: '0xD0c6179c43C00221915f1a61f8eC06A5Aa32F9EC',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 15 other locations - About 5 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 83..102
    packages/rest-api/src/constants/bridgeable.ts on lines 123..142
    packages/rest-api/src/constants/bridgeable.ts on lines 230..249
    packages/rest-api/src/constants/bridgeable.ts on lines 358..377
    packages/rest-api/src/constants/bridgeable.ts on lines 659..678
    packages/rest-api/src/constants/bridgeable.ts on lines 1058..1077
    packages/rest-api/src/constants/bridgeable.ts on lines 1130..1149
    packages/widget/src/constants/bridgeable.ts on lines 83..102
    packages/widget/src/constants/bridgeable.ts on lines 123..142
    packages/widget/src/constants/bridgeable.ts on lines 230..249
    packages/widget/src/constants/bridgeable.ts on lines 358..377
    packages/widget/src/constants/bridgeable.ts on lines 553..572
    packages/widget/src/constants/bridgeable.ts on lines 659..678
    packages/widget/src/constants/bridgeable.ts on lines 1054..1073
    packages/widget/src/constants/bridgeable.ts on lines 1126..1145

    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 142.

    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 WSOHM: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0xCa76543Cf381ebBB277bE79574059e32108e3E65',
        [CHAINS.ARBITRUM.id]: '0x30bD4e574a15994B35EF9C7a5bc29002F1224821',
        [CHAINS.AVALANCHE.id]: '0x240E332Cd26AaE10622B24160D23425A17256F5d',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 15 other locations - About 5 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 83..102
    packages/rest-api/src/constants/bridgeable.ts on lines 123..142
    packages/rest-api/src/constants/bridgeable.ts on lines 230..249
    packages/rest-api/src/constants/bridgeable.ts on lines 358..377
    packages/rest-api/src/constants/bridgeable.ts on lines 553..572
    packages/rest-api/src/constants/bridgeable.ts on lines 659..678
    packages/rest-api/src/constants/bridgeable.ts on lines 1130..1149
    packages/widget/src/constants/bridgeable.ts on lines 83..102
    packages/widget/src/constants/bridgeable.ts on lines 123..142
    packages/widget/src/constants/bridgeable.ts on lines 230..249
    packages/widget/src/constants/bridgeable.ts on lines 358..377
    packages/widget/src/constants/bridgeable.ts on lines 553..572
    packages/widget/src/constants/bridgeable.ts on lines 659..678
    packages/widget/src/constants/bridgeable.ts on lines 1054..1073
    packages/widget/src/constants/bridgeable.ts on lines 1126..1145

    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 142.

    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 DOG: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0xBAac2B4491727D78D2b78815144570b9f2Fe8899',
        [CHAINS.BNBCHAIN.id]: '0xaa88c603d142c371ea0eac8756123c5805edee03',
        [CHAINS.POLYGON.id]: '0xeEe3371B89FC43Ea970E908536Fcddd975135D8a',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 15 other locations - About 5 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 83..102
    packages/rest-api/src/constants/bridgeable.ts on lines 230..249
    packages/rest-api/src/constants/bridgeable.ts on lines 358..377
    packages/rest-api/src/constants/bridgeable.ts on lines 553..572
    packages/rest-api/src/constants/bridgeable.ts on lines 659..678
    packages/rest-api/src/constants/bridgeable.ts on lines 1058..1077
    packages/rest-api/src/constants/bridgeable.ts on lines 1130..1149
    packages/widget/src/constants/bridgeable.ts on lines 83..102
    packages/widget/src/constants/bridgeable.ts on lines 123..142
    packages/widget/src/constants/bridgeable.ts on lines 230..249
    packages/widget/src/constants/bridgeable.ts on lines 358..377
    packages/widget/src/constants/bridgeable.ts on lines 553..572
    packages/widget/src/constants/bridgeable.ts on lines 659..678
    packages/widget/src/constants/bridgeable.ts on lines 1054..1073
    packages/widget/src/constants/bridgeable.ts on lines 1126..1145

    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 142.

    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 22 locations. Consider refactoring.
    Open

    export const SFI: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0xb753428af26e81097e7fd17f40c88aaa3e04902c',
        [CHAINS.AVALANCHE.id]: '0xc2Bf0A1f7D8Da50D608bc96CF701110d4A438312',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 48..65
    packages/rest-api/src/constants/bridgeable.ts on lines 67..81
    packages/rest-api/src/constants/bridgeable.ts on lines 167..184
    packages/rest-api/src/constants/bridgeable.ts on lines 270..287
    packages/rest-api/src/constants/bridgeable.ts on lines 320..337
    packages/rest-api/src/constants/bridgeable.ts on lines 339..356
    packages/rest-api/src/constants/bridgeable.ts on lines 404..421
    packages/rest-api/src/constants/bridgeable.ts on lines 976..993
    packages/rest-api/src/constants/bridgeable.ts on lines 1022..1039
    packages/rest-api/src/constants/bridgeable.ts on lines 1326..1344
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 22 locations. Consider refactoring.
    Open

    export const XJEWEL: BridgeableToken = {
      addresses: {
        [CHAINS.DFK.id]: '0x77f2656d04E158f915bC22f07B779D94c1DC47Ff',
        [CHAINS.HARMONY.id]: '0xA9cE83507D872C5e1273E745aBcfDa849DAA654F',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 48..65
    packages/rest-api/src/constants/bridgeable.ts on lines 67..81
    packages/rest-api/src/constants/bridgeable.ts on lines 104..121
    packages/rest-api/src/constants/bridgeable.ts on lines 167..184
    packages/rest-api/src/constants/bridgeable.ts on lines 270..287
    packages/rest-api/src/constants/bridgeable.ts on lines 320..337
    packages/rest-api/src/constants/bridgeable.ts on lines 339..356
    packages/rest-api/src/constants/bridgeable.ts on lines 404..421
    packages/rest-api/src/constants/bridgeable.ts on lines 1022..1039
    packages/rest-api/src/constants/bridgeable.ts on lines 1326..1344
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 22 locations. Consider refactoring.
    Open

    export const CRVUSD: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
        [CHAINS.BASE.id]: '0x417Ac0e078398C154EdFadD9Ef675d30Be60Af93',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 48..65
    packages/rest-api/src/constants/bridgeable.ts on lines 67..81
    packages/rest-api/src/constants/bridgeable.ts on lines 104..121
    packages/rest-api/src/constants/bridgeable.ts on lines 167..184
    packages/rest-api/src/constants/bridgeable.ts on lines 270..287
    packages/rest-api/src/constants/bridgeable.ts on lines 320..337
    packages/rest-api/src/constants/bridgeable.ts on lines 339..356
    packages/rest-api/src/constants/bridgeable.ts on lines 404..421
    packages/rest-api/src/constants/bridgeable.ts on lines 976..993
    packages/rest-api/src/constants/bridgeable.ts on lines 1022..1039
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 22 locations. Consider refactoring.
    Open

    export const LINK: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x514910771af9ca656af840dff83e8264ecf986ca',
        [CHAINS.KLAYTN.id]: '0xfbed1abb3ad0f8c467068de9fde905887e8c9118',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 67..81
    packages/rest-api/src/constants/bridgeable.ts on lines 104..121
    packages/rest-api/src/constants/bridgeable.ts on lines 167..184
    packages/rest-api/src/constants/bridgeable.ts on lines 270..287
    packages/rest-api/src/constants/bridgeable.ts on lines 320..337
    packages/rest-api/src/constants/bridgeable.ts on lines 339..356
    packages/rest-api/src/constants/bridgeable.ts on lines 404..421
    packages/rest-api/src/constants/bridgeable.ts on lines 976..993
    packages/rest-api/src/constants/bridgeable.ts on lines 1022..1039
    packages/rest-api/src/constants/bridgeable.ts on lines 1326..1344
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 22 locations. Consider refactoring.
    Open

    export const BUSD: BridgeableToken = {
      addresses: {
        [CHAINS.BNBCHAIN.id]: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
        [CHAINS.DOGE.id]: '0x1555C68Be3b22cdcCa934Ae88Cb929Db40aB311d',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 48..65
    packages/rest-api/src/constants/bridgeable.ts on lines 67..81
    packages/rest-api/src/constants/bridgeable.ts on lines 104..121
    packages/rest-api/src/constants/bridgeable.ts on lines 167..184
    packages/rest-api/src/constants/bridgeable.ts on lines 270..287
    packages/rest-api/src/constants/bridgeable.ts on lines 320..337
    packages/rest-api/src/constants/bridgeable.ts on lines 339..356
    packages/rest-api/src/constants/bridgeable.ts on lines 976..993
    packages/rest-api/src/constants/bridgeable.ts on lines 1022..1039
    packages/rest-api/src/constants/bridgeable.ts on lines 1326..1344
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 22 locations. Consider refactoring.
    Open

    export const HIGH: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x71Ab77b7dbB4fa7e017BC15090b2163221420282',
        [CHAINS.BNBCHAIN.id]: '0x5f4bde007dc06b867f86ebfe4802e34a1ffeed63',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 48..65
    packages/rest-api/src/constants/bridgeable.ts on lines 104..121
    packages/rest-api/src/constants/bridgeable.ts on lines 167..184
    packages/rest-api/src/constants/bridgeable.ts on lines 270..287
    packages/rest-api/src/constants/bridgeable.ts on lines 320..337
    packages/rest-api/src/constants/bridgeable.ts on lines 339..356
    packages/rest-api/src/constants/bridgeable.ts on lines 404..421
    packages/rest-api/src/constants/bridgeable.ts on lines 976..993
    packages/rest-api/src/constants/bridgeable.ts on lines 1022..1039
    packages/rest-api/src/constants/bridgeable.ts on lines 1326..1344
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 22 locations. Consider refactoring.
    Open

    export const SOLAR: BridgeableToken = {
      addresses: {
        [CHAINS.MOONBEAM.id]: '0x0DB6729C03C85B0708166cA92801BcB5CAc781fC',
        [CHAINS.MOONRIVER.id]: '0x76906411D07815491A5E577022757aD941fb5066',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 48..65
    packages/rest-api/src/constants/bridgeable.ts on lines 67..81
    packages/rest-api/src/constants/bridgeable.ts on lines 104..121
    packages/rest-api/src/constants/bridgeable.ts on lines 270..287
    packages/rest-api/src/constants/bridgeable.ts on lines 320..337
    packages/rest-api/src/constants/bridgeable.ts on lines 339..356
    packages/rest-api/src/constants/bridgeable.ts on lines 404..421
    packages/rest-api/src/constants/bridgeable.ts on lines 976..993
    packages/rest-api/src/constants/bridgeable.ts on lines 1022..1039
    packages/rest-api/src/constants/bridgeable.ts on lines 1326..1344
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 22 locations. Consider refactoring.
    Open

    export const L2DAO: BridgeableToken = {
      addresses: {
        [CHAINS.ARBITRUM.id]: '0x2CaB3abfC1670D1a452dF502e216a66883cDf079',
        [CHAINS.OPTIMISM.id]: '0xd52f94DF742a6F4B4C8b033369fE13A41782Bf44',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 48..65
    packages/rest-api/src/constants/bridgeable.ts on lines 67..81
    packages/rest-api/src/constants/bridgeable.ts on lines 104..121
    packages/rest-api/src/constants/bridgeable.ts on lines 167..184
    packages/rest-api/src/constants/bridgeable.ts on lines 270..287
    packages/rest-api/src/constants/bridgeable.ts on lines 339..356
    packages/rest-api/src/constants/bridgeable.ts on lines 404..421
    packages/rest-api/src/constants/bridgeable.ts on lines 976..993
    packages/rest-api/src/constants/bridgeable.ts on lines 1022..1039
    packages/rest-api/src/constants/bridgeable.ts on lines 1326..1344
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 22 locations. Consider refactoring.
    Open

    export const VSTA: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0xA8d7F5e7C78ed0Fa097Cc5Ec66C1DC3104c9bbeb',
        [CHAINS.ARBITRUM.id]: '0xa684cd057951541187f288294a1e1c2646aa2d24',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 48..65
    packages/rest-api/src/constants/bridgeable.ts on lines 67..81
    packages/rest-api/src/constants/bridgeable.ts on lines 104..121
    packages/rest-api/src/constants/bridgeable.ts on lines 167..184
    packages/rest-api/src/constants/bridgeable.ts on lines 320..337
    packages/rest-api/src/constants/bridgeable.ts on lines 339..356
    packages/rest-api/src/constants/bridgeable.ts on lines 404..421
    packages/rest-api/src/constants/bridgeable.ts on lines 976..993
    packages/rest-api/src/constants/bridgeable.ts on lines 1022..1039
    packages/rest-api/src/constants/bridgeable.ts on lines 1326..1344
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 22 locations. Consider refactoring.
    Open

    export const PLS: BridgeableToken = {
      addresses: {
        [CHAINS.ARBITRUM.id]: '0x51318b7d00db7acc4026c88c3952b66278b6a67f',
        [CHAINS.OPTIMISM.id]: '0xD9eAA386cCD65F30b77FF175F6b52115FE454fD6',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 48..65
    packages/rest-api/src/constants/bridgeable.ts on lines 67..81
    packages/rest-api/src/constants/bridgeable.ts on lines 104..121
    packages/rest-api/src/constants/bridgeable.ts on lines 167..184
    packages/rest-api/src/constants/bridgeable.ts on lines 270..287
    packages/rest-api/src/constants/bridgeable.ts on lines 320..337
    packages/rest-api/src/constants/bridgeable.ts on lines 404..421
    packages/rest-api/src/constants/bridgeable.ts on lines 976..993
    packages/rest-api/src/constants/bridgeable.ts on lines 1022..1039
    packages/rest-api/src/constants/bridgeable.ts on lines 1326..1344
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 22 locations. Consider refactoring.
    Open

    export const USDTe: BridgeableToken = {
      addresses: {
        [CHAINS.AVALANCHE.id]: '0xc7198437980c041c805a1edcba50c1ce5db95118',
        [CHAINS.AURORA.id]: '0x4988a896b1227218e4A686fdE5EabdcAbd91571f',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 21 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 48..65
    packages/rest-api/src/constants/bridgeable.ts on lines 67..81
    packages/rest-api/src/constants/bridgeable.ts on lines 104..121
    packages/rest-api/src/constants/bridgeable.ts on lines 167..184
    packages/rest-api/src/constants/bridgeable.ts on lines 270..287
    packages/rest-api/src/constants/bridgeable.ts on lines 320..337
    packages/rest-api/src/constants/bridgeable.ts on lines 339..356
    packages/rest-api/src/constants/bridgeable.ts on lines 404..421
    packages/rest-api/src/constants/bridgeable.ts on lines 976..993
    packages/rest-api/src/constants/bridgeable.ts on lines 1326..1344
    packages/widget/src/constants/bridgeable.ts on lines 48..65
    packages/widget/src/constants/bridgeable.ts on lines 67..81
    packages/widget/src/constants/bridgeable.ts on lines 104..121
    packages/widget/src/constants/bridgeable.ts on lines 167..184
    packages/widget/src/constants/bridgeable.ts on lines 270..287
    packages/widget/src/constants/bridgeable.ts on lines 320..337
    packages/widget/src/constants/bridgeable.ts on lines 339..356
    packages/widget/src/constants/bridgeable.ts on lines 404..421
    packages/widget/src/constants/bridgeable.ts on lines 974..991
    packages/widget/src/constants/bridgeable.ts on lines 1018..1035
    packages/widget/src/constants/bridgeable.ts on lines 1322..1340

    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 116.

    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 4 locations. Consider refactoring.
    Open

    export const FTM: BridgeableToken = {
      addresses: {
        [CHAINS.FANTOM.id]: NativeTokenAddress,
        [CHAINS.DFK.id]: '0x2Df041186C844F8a2e2b63F16145Bc6Ff7d23E25',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 3 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 1168..1185
    packages/widget/src/constants/bridgeable.ts on lines 1164..1181
    packages/widget/src/constants/bridgeable.ts on lines 1251..1268

    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 116.

    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 4 locations. Consider refactoring.
    Open

    export const GMX: BridgeableToken = {
      addresses: {
        [CHAINS.ARBITRUM.id]: '0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a',
        [CHAINS.AVALANCHE.id]: '0x62edc0692bd897d2295872a9ffcac5425011c661',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 3 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 251..268
    packages/widget/src/constants/bridgeable.ts on lines 186..203
    packages/widget/src/constants/bridgeable.ts on lines 251..268

    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 116.

    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 4 locations. Consider refactoring.
    Open

    export const PEPE: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x6982508145454ce325ddbe47a25d4ec3d2311933',
        [CHAINS.ARBITRUM.id]: '0xA54B8e178A49F8e5405A4d44Bb31F496e5564A05',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 3 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 186..203
    packages/widget/src/constants/bridgeable.ts on lines 186..203
    packages/widget/src/constants/bridgeable.ts on lines 251..268

    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 116.

    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 4 locations. Consider refactoring.
    Open

    export const KLAY: BridgeableToken = {
      addresses: {
        [CHAINS.KLAYTN.id]: NativeTokenAddress,
        [CHAINS.DFK.id]: '0x97855Ba65aa7ed2F65Ed832a776537268158B78a',
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 3 other locations - About 4 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 1255..1272
    packages/widget/src/constants/bridgeable.ts on lines 1164..1181
    packages/widget/src/constants/bridgeable.ts on lines 1251..1268

    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 116.

    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 2 locations. Consider refactoring.
    Open

    export const SPECTRAL: BridgeableToken = {
      priorityRank: 600,
      addresses: {
        [CHAINS.ETHEREUM.id]: '0xAdF7C35560035944e805D98fF17d58CDe2449389',
        [CHAINS.BASE.id]: '0x96419929d7949D6A801A6909c145C8EEf6A40431',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 4 hrs to fix
    packages/widget/src/constants/bridgeable.ts on lines 1393..1410

    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 116.

    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 2 locations. Consider refactoring.
    Open

    export const MOVR: BridgeableToken = {
      addresses: {
        [CHAINS.MOONBEAM.id]: '0x1d4C2a246311bB9f827F4C768e277FF5787B7D7E',
        [CHAINS.MOONRIVER.id]: NativeTokenAddress,
      },
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 4 hrs to fix
    packages/widget/src/constants/bridgeable.ts on lines 835..852

    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 116.

    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 40 locations. Consider refactoring.
    Open

    export const ONEETH: BridgeableToken = {
      addresses: {
        [CHAINS.HARMONY.id]: '0x6983d1e6def3690c4d616b13597a09e6193ea013',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const ONEDAI: BridgeableToken = {
      addresses: {
        [CHAINS.HARMONY.id]: '0xef977d2f931c1978db5f6747666fa1eacb0d0339',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const ONEUSDT: BridgeableToken = {
      addresses: {
        [CHAINS.HARMONY.id]: '0x3c2b8be99c50593081eaa2a724f0b8285f5aba8f',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const NOTE: BridgeableToken = {
      addresses: {
        [CHAINS.CANTO.id]: '0x4e71a2e537b7f9d9413d3991d37958c0b5e1e503',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const ONEUSDC: BridgeableToken = {
      addresses: {
        [CHAINS.HARMONY.id]: '0x985458e523db3d53125813ed68c274899e9dfab4',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const WPOL: BridgeableToken = {
      addresses: {
        [CHAINS.POLYGON.id]: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const WMOVR: BridgeableToken = {
      addresses: {
        [CHAINS.MOONRIVER.id]: '0x98878b06940ae243284ca214f92bb71a2b032b8a',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const USDBC: BridgeableToken = {
      addresses: {
        [CHAINS.BASE.id]: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const WETHE: BridgeableToken = {
      addresses: {
        [CHAINS.AVALANCHE.id]: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const MATIC: BridgeableToken = {
      addresses: {
        [CHAINS.DFK.id]: '0xD17a41Cd199edF1093A9Be4404EaDe52Ec19698e',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const SUSD: BridgeableToken = {
      addresses: {
        [CHAINS.OPTIMISM.id]: '0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const WKLAY: BridgeableToken = {
      addresses: {
        [CHAINS.KLAYTN.id]: '0x5819b6af194A78511c79C85Ea68D2377a7e9335f',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const WFTM: BridgeableToken = {
      addresses: {
        [CHAINS.FANTOM.id]: '0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const WAVAX: BridgeableToken = {
      addresses: {
        [CHAINS.AVALANCHE.id]: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const SYNJEWEL: BridgeableToken = {
      addresses: {
        [CHAINS.HARMONY.id]: '0x28b42698Caf46B4B012CF38b6C75867E0762186D',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const METISUSDC: BridgeableToken = {
      addresses: {
        [CHAINS.METIS.id]: '0xEA32A96608495e54156Ae48931A7c20f0dcc1a21',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const DAIe: BridgeableToken = {
      addresses: {
        [CHAINS.AVALANCHE.id]: '0xd586E7F844cEa2F87f50152665BCbc2C279D8d70',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const USDB: BridgeableToken = {
      addresses: {
        [CHAINS.BLAST.id]: '0x4300000000000000000000000000000000000003',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const LUSD: BridgeableToken = {
      addresses: {
        [CHAINS.ETHEREUM.id]: '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 942..957
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 40 locations. Consider refactoring.
    Open

    export const WJEWEL: BridgeableToken = {
      addresses: {
        [CHAINS.DFK.id]: '0xCCb93dABD71c8Dad03Fc4CE5559dC3D89F67a260',
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 39 other locations - About 2 hrs to fix
    packages/rest-api/src/constants/bridgeable.ts on lines 468..483
    packages/rest-api/src/constants/bridgeable.ts on lines 574..589
    packages/rest-api/src/constants/bridgeable.ts on lines 591..606
    packages/rest-api/src/constants/bridgeable.ts on lines 746..761
    packages/rest-api/src/constants/bridgeable.ts on lines 881..896
    packages/rest-api/src/constants/bridgeable.ts on lines 898..913
    packages/rest-api/src/constants/bridgeable.ts on lines 959..974
    packages/rest-api/src/constants/bridgeable.ts on lines 1041..1056
    packages/rest-api/src/constants/bridgeable.ts on lines 1079..1094
    packages/rest-api/src/constants/bridgeable.ts on lines 1096..1111
    packages/rest-api/src/constants/bridgeable.ts on lines 1113..1128
    packages/rest-api/src/constants/bridgeable.ts on lines 1151..1166
    packages/rest-api/src/constants/bridgeable.ts on lines 1187..1202
    packages/rest-api/src/constants/bridgeable.ts on lines 1204..1219
    packages/rest-api/src/constants/bridgeable.ts on lines 1238..1253
    packages/rest-api/src/constants/bridgeable.ts on lines 1274..1289
    packages/rest-api/src/constants/bridgeable.ts on lines 1346..1361
    packages/rest-api/src/constants/bridgeable.ts on lines 1363..1378
    packages/rest-api/src/constants/bridgeable.ts on lines 1380..1395
    packages/widget/src/constants/bridgeable.ts on lines 468..483
    packages/widget/src/constants/bridgeable.ts on lines 574..589
    packages/widget/src/constants/bridgeable.ts on lines 591..606
    packages/widget/src/constants/bridgeable.ts on lines 746..761
    packages/widget/src/constants/bridgeable.ts on lines 879..894
    packages/widget/src/constants/bridgeable.ts on lines 896..911
    packages/widget/src/constants/bridgeable.ts on lines 940..955
    packages/widget/src/constants/bridgeable.ts on lines 957..972
    packages/widget/src/constants/bridgeable.ts on lines 1037..1052
    packages/widget/src/constants/bridgeable.ts on lines 1075..1090
    packages/widget/src/constants/bridgeable.ts on lines 1092..1107
    packages/widget/src/constants/bridgeable.ts on lines 1109..1124
    packages/widget/src/constants/bridgeable.ts on lines 1147..1162
    packages/widget/src/constants/bridgeable.ts on lines 1183..1198
    packages/widget/src/constants/bridgeable.ts on lines 1200..1215
    packages/widget/src/constants/bridgeable.ts on lines 1234..1249
    packages/widget/src/constants/bridgeable.ts on lines 1270..1285
    packages/widget/src/constants/bridgeable.ts on lines 1342..1357
    packages/widget/src/constants/bridgeable.ts on lines 1359..1374
    packages/widget/src/constants/bridgeable.ts on lines 1376..1391

    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 90.

    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 2 locations. Consider refactoring.
    Open

    export const POL: BridgeableToken = {
      addresses: {
        [CHAINS.POLYGON.id]: NativeTokenAddress,
      },
      decimals: {
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 1 other location - About 2 hrs to fix
    packages/widget/src/constants/bridgeable.ts on lines 1217..1232

    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 90.

    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 3 locations. Consider refactoring.
    Open

      addresses: {
        [CHAINS.OPTIMISM.id]: '0x7F5c764cBc14f9669B88837ca1490cCa17c31607',
        [CHAINS.AVALANCHE.id]: '0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664',
        [CHAINS.ARBITRUM.id]: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
        [CHAINS.AURORA.id]: '0xB12BFcA5A55806AaF64E99521918A4bf0fC40802',
    Severity: Major
    Found in packages/rest-api/src/constants/bridgeable.ts and 2 other locations - About 2 hrs to fix
    packages/synapse-constants/src/constants/tokens/bridgeable.ts on lines 910..917
    packages/synapse-interface/constants/tokens/bridgeable.ts on lines 858..865

    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 84.

    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