synapsecns/sanguine

View on GitHub
packages/synapse-interface/constants/tokens/poolMaster.ts

Summary

Maintainability
F
3 wks
Test Coverage

File poolMaster.ts has 917 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import * as CHAINS from '@constants/chains/master'
import {
  BUSD,
  USDC,
  USDT,
Severity: Major
Found in packages/synapse-interface/constants/tokens/poolMaster.ts - About 2 days to fix

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

    export const OPTIMISM_ETH_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.OPTIMISM.id]: '0x4619a06ddd3b8f0f951354ec5e75c09cd1cd1aef',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 2 other locations - About 1 day to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 582..611
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 644..673

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

    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

    export const BOBA_ETH_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.BOBA.id]: '0x498657f2AF18D525049dE520dD86ee376Db9c67c',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 2 other locations - About 1 day to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 582..611
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 613..642

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

    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

    export const ARBITRUM_ETH_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.ARBITRUM.id]: '0xD70A52248e546A3B260849386410C7170c7BD1E9',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 2 other locations - About 1 day to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 613..642
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 644..673

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

    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 BLAST_ETH_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.BLAST.id]: '0x1600084daCcd3b58ACeFcdb0F3D7c9649359116b',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 1 other location - About 7 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 839..868

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

    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 BASE_ETH_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.BASE.id]: '0xC35b09c8fdefc90ec580B327d32DeAAda4f581Da',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 1 other location - About 7 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 870..899

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

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

    export const HARMONY_POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.HARMONY.id]: '0xE269abBFAF52b26D2632F55B6b223A5223088B96',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 5 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 69..94
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 146..171
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 221..246
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 248..273
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 302..327

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

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

    export const BSC_POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.BNB.id]: '0xa4b7Bc06EC817785170C2DbC1dD3ff86CDcdcc4C',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 5 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 146..171
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 221..246
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 248..273
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 275..300
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 302..327

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

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

    export const FANTOM_POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.FANTOM.id]: '0x464d121D3cA63cEEfd390D76f19364D3Bd024cD2',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 5 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 69..94
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 146..171
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 221..246
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 275..300
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 302..327

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

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

    export const ARBITRUM_POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.ARBITRUM.id]: '0xADeac0343C2Ac62DFE5A5f51E896AefFF5Ab513E',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 5 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 69..94
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 146..171
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 248..273
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 275..300
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 302..327

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

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

    export const POLYGON_POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.POLYGON.id]: '0x7479e1bc2f2473f9e78c89b4210eb6d55d33b645',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 5 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 69..94
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 221..246
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 248..273
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 275..300
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 302..327

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

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

    export const BOBA_POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.BOBA.id]: '0x9D7283A6AeeD9BCd4Ac70876fEA2b69a63DD8cb9',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 5 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 69..94
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 146..171
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 221..246
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 248..273
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 275..300

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

    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

    export const ARBITRUM_3POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.ARBITRUM.id]: '0xcFd72be67Ee69A0dd7cF0f846Fc0D98C33d60F16',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 2 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 354..378
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 406..430

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

    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

    export const AURORA_TS_POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.AURORA.id]: '0xffb69779f14E851A8c550Bf5bB1933c44BBDE129',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 2 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 380..404
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 406..430

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

    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

    export const FANTOM_3POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.FANTOM.id]: '0x2DC777ff99058a12844A33D9B1AE6c8AB4701F66',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 2 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 354..378
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 380..404

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

    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 FANTOM_WETH_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.FANTOM.id]: '0x0e3dD3403ee498694A8f61B04AFed8919F747f77',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 3 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 710..734
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 762..786
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 788..812

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

    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 HARMONY_ONEETH_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.HARMONY.id]: '0x464d121D3cA63cEEfd390D76f19364D3Bd024cD2',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 3 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 736..760
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 762..786
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 788..812

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

    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 METIS_WETH_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.METIS.id]: '0x9C1340Bf093d057fA29819575517fb9fE2f04AcE',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 3 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 710..734
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 736..760
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 788..812

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

    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 CANTO_WETH_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.CANTO.id]: '0xE7002d7Ee2C2aC7A4286F3C075950CcAc2DB3401',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 3 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 710..734
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 736..760
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 762..786

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

    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 OPTIMISM_POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.OPTIMISM.id]: '0x2c6d91accC5Aa38c84653F28A80AEC69325BDd12',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 3 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 432..455
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 530..553
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 814..837

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

    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 KLAYTN_ORBIT_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.KLAYTN.id]: '0x656757eb1e04011f6862688957ebA9eA12881244',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 3 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 96..119
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 432..455
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 814..837

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

    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 METIS_POOL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.METIS.id]: '0xC6f684aE516480A35f337a4dA8b40EB6550e07E0',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 3 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 96..119
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 530..553
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 814..837

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

    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 HARMONY_JEWEL_SWAP_TOKEN = new Token({
      addresses: {
        [CHAINS.HARMONY.id]: '0x0000000000000000000000000000000000000000',
      },
      decimals: 18,
    Severity: Major
    Found in packages/synapse-interface/constants/tokens/poolMaster.ts and 3 other locations - About 6 hrs to fix
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 96..119
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 432..455
    packages/synapse-interface/constants/tokens/poolMaster.ts on lines 530..553

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

    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