synapsecns/sanguine

View on GitHub

Showing 13,422 of 13,422 total issues

File index.tsx has 394 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { useAccount } from 'wagmi'
import toast from 'react-hot-toast'
import { useRouter } from 'next/router'
import { useTranslations } from 'next-intl'
import deepmerge from 'deepmerge'
Severity: Minor
Found in packages/synapse-interface/pages/swap/index.tsx - About 5 hrs to fix

    Function Privacy has 135 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const Privacy = () => {
      return (
        <StandardPageContainer title="Privacy Policy">
          <p className="text-lg font-medium text-white ">
            Last updated: January, 2023
    Severity: Major
    Found in packages/explorer-ui/pages/privacy/index.tsx - About 5 hrs to fix

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

      func (_m *IBondingManager) DisputeStatus(opts *bind.CallOpts, agent common.Address) (struct {
          Flag        uint8
          Rival       common.Address
          FraudProver common.Address
          DisputePtr  *big.Int
      Severity: Major
      Found in agents/contracts/bondingmanager/mocks/i_bonding_manager.go and 1 other location - About 5 hrs to fix
      agents/contracts/lightmanager/mocks/i_light_manager.go on lines 155..193

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

      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

      func (n BridgeConfigV3Deployer) Deploy(ctx context.Context) (contracts.DeployedContract, error) {
          return n.DeploySimpleContract(ctx, func(transactOps *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, interface{}, error) {
              deployAddress, tx, handler, err := bridgeconfig.DeployBridgeConfigV3(transactOps, backend)
              if err != nil {
                  return common.Address{}, nil, nil, fmt.Errorf("could not deploy bridge config: %w", err)
      Severity: Major
      Found in services/explorer/testutil/deployers.go and 1 other location - About 5 hrs to fix
      services/explorer/testutil/testcontracts/deployers.go on lines 136..166

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

      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

      func (_m *ILightManager) DisputeStatus(opts *bind.CallOpts, agent common.Address) (struct {
          Flag        uint8
          Rival       common.Address
          FraudProver common.Address
          DisputePtr  *big.Int
      Severity: Major
      Found in agents/contracts/lightmanager/mocks/i_light_manager.go and 1 other location - About 5 hrs to fix
      agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 247..285

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

      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

      func (n BridgeConfigV3Deployer) Deploy(ctx context.Context) (contracts.DeployedContract, error) {
          return n.DeploySimpleContract(ctx, func(transactOps *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, interface{}, error) {
              deployAddress, tx, handler, err := bridgeconfig.DeployBridgeConfigV3(transactOps, backend)
              if err != nil {
                  return common.Address{}, nil, nil, fmt.Errorf("could not deploy bridge config: %w", err)
      Severity: Major
      Found in services/explorer/testutil/testcontracts/deployers.go and 1 other location - About 5 hrs to fix
      services/explorer/testutil/deployers.go on lines 109..139

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

      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

      File usdtAbi.ts has 390 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      export const USDT_ABI = [
        {
          constant: true,
          inputs: [],
          name: 'name',
      Severity: Minor
      Found in packages/synapse-interface/constants/abis/usdtAbi.ts - About 5 hrs to fix

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

        var livefillCommand = &cli.Command{
            Name:        "livefill",
            Description: "livefills explorer",
            Flags:       []cli.Flag{configFlag, clickhouseAddressFlag},
            Action: func(c *cli.Context) error {
        Severity: Major
        Found in services/explorer/cmd/commands.go and 1 other location - About 5 hrs to fix
        services/explorer/cmd/commands.go on lines 74..106

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

        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

        var backfillCommand = &cli.Command{
            Name:        "backfill",
            Description: "backfills up to a block and then halts",
            Flags:       []cli.Flag{configFlag, clickhouseAddressFlag},
            Action: func(c *cli.Context) error {
        Severity: Major
        Found in services/explorer/cmd/commands.go and 1 other location - About 5 hrs to fix
        services/explorer/cmd/commands.go on lines 109..141

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

        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/widget/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/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 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/widget/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/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 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 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/widget/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/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

        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 WSOHM: BridgeableToken = {
          addresses: {
            [CHAINS.ETHEREUM.id]: '0xCa76543Cf381ebBB277bE79574059e32108e3E65',
            [CHAINS.ARBITRUM.id]: '0x30bD4e574a15994B35EF9C7a5bc29002F1224821',
            [CHAINS.AVALANCHE.id]: '0x240E332Cd26AaE10622B24160D23425A17256F5d',
        Severity: Major
        Found in packages/widget/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/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 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 NEWO: BridgeableToken = {
          addresses: {
            [CHAINS.ETHEREUM.id]: '0x98585dFc8d9e7D48F0b1aE47ce33332CF4237D96',
            [CHAINS.AVALANCHE.id]: '0x4Bfc90322dD638F81F034517359BD447f8E0235a',
            [CHAINS.ARBITRUM.id]: '0x0877154a755B24D499B8e2bD7ecD54d3c92BA433',
        Severity: Major
        Found in packages/widget/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/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 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

        Severity
        Category
        Status
        Source
        Language