synapsecns/sanguine

View on GitHub
packages/synapse-interface/constants/abis/usdtAbi.ts

Summary

Maintainability
F
5 days
Test Coverage

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

      {
        constant: true,
        inputs: [
          { name: '', type: 'address' },
          { name: '', type: 'address' },
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 1 other location - About 2 hrs to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 243..254

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

    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

      {
        constant: true,
        inputs: [
          { name: '_owner', type: 'address' },
          { name: '_spender', type: 'address' },
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 1 other location - About 2 hrs to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 135..146

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

    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

      {
        anonymous: false,
        inputs: [
          { indexed: true, name: 'from', type: 'address' },
          { indexed: true, name: 'to', type: 'address' },
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 1 other location - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 368..377

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

    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

      {
        anonymous: false,
        inputs: [
          { indexed: true, name: 'owner', type: 'address' },
          { indexed: true, name: 'spender', type: 'address' },
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 1 other location - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 378..387

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

    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

      {
        constant: false,
        inputs: [
          { name: '_spender', type: 'address' },
          { name: '_value', type: 'uint256' },
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 2 other locations - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 201..212
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 213..224

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

    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

      {
        constant: true,
        inputs: [{ name: '_maker', type: 'address' }],
        name: 'getBlackListStatus',
        outputs: [{ name: '', type: 'bool' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 3 other locations - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 81..89
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 156..164
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 264..272

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

    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

      {
        constant: false,
        inputs: [
          { name: '_to', type: 'address' },
          { name: '_value', type: 'uint256' },
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 2 other locations - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 20..31
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 213..224

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

    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

      {
        constant: true,
        inputs: [{ name: '', type: 'address' }],
        name: 'isBlackListed',
        outputs: [{ name: '', type: 'bool' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 3 other locations - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 81..89
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 126..134
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 156..164

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

    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

      {
        constant: true,
        inputs: [{ name: 'who', type: 'address' }],
        name: 'balanceOf',
        outputs: [{ name: '', type: 'uint256' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 3 other locations - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 81..89
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 126..134
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 264..272

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

    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

      {
        constant: true,
        inputs: [{ name: '', type: 'address' }],
        name: 'balances',
        outputs: [{ name: '', type: 'uint256' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 3 other locations - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 126..134
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 156..164
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 264..272

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

    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

      {
        constant: false,
        inputs: [
          { name: 'newBasisPoints', type: 'uint256' },
          { name: 'newMaxFee', type: 'uint256' },
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 2 other locations - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 20..31
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 201..212

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

    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

      {
        anonymous: false,
        inputs: [
          { indexed: false, name: 'feeBasisPoints', type: 'uint256' },
          { indexed: false, name: 'maxFee', type: 'uint256' },
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 1 other location - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 347..355

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

    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

      {
        anonymous: false,
        inputs: [
          { indexed: false, name: '_blackListedUser', type: 'address' },
          { indexed: false, name: '_balance', type: 'uint256' },
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 1 other location - About 1 hr to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 338..346

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

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

      {
        constant: true,
        inputs: [],
        name: 'getOwner',
        outputs: [{ name: '', type: 'address' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: 'owner',
        outputs: [{ name: '', type: 'address' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: 'symbol',
        outputs: [{ name: '', type: 'string' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: 'totalSupply',
        outputs: [{ name: '', type: 'uint256' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: 'MAX_UINT',
        outputs: [{ name: '', type: 'uint256' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263

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

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

      {
        constant: true,
        inputs: [],
        name: 'paused',
        outputs: [{ name: '', type: 'bool' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: 'basisPointsRate',
        outputs: [{ name: '', type: 'uint256' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: 'name',
        outputs: [{ name: '', type: 'string' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: 'decimals',
        outputs: [{ name: '', type: 'uint256' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: 'deprecated',
        outputs: [{ name: '', type: 'bool' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: 'upgradedAddress',
        outputs: [{ name: '', type: 'address' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: 'maximumFee',
        outputs: [{ name: '', type: 'uint256' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 108..116
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: true,
        inputs: [],
        name: '_totalSupply',
        outputs: [{ name: '', type: 'uint256' }],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 12 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 2..10
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 32..40
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 50..58
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 72..80
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 90..98
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 99..107
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 147..155
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 174..182
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 183..191
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 192..200
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 255..263
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 282..290

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

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

      {
        constant: false,
        inputs: [{ name: 'amount', type: 'uint256' }],
        name: 'issue',
        outputs: [],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 6 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 11..19
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 41..49
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 234..242
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 273..281
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 291..299
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 300..308

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

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

      {
        constant: false,
        inputs: [{ name: '_clearedUser', type: 'address' }],
        name: 'removeBlackList',
        outputs: [],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 6 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 11..19
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 41..49
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 225..233
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 234..242
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 291..299
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 300..308

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

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

      {
        constant: false,
        inputs: [{ name: 'amount', type: 'uint256' }],
        name: 'redeem',
        outputs: [],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 6 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 11..19
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 41..49
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 225..233
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 273..281
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 291..299
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 300..308

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

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

      {
        constant: false,
        inputs: [{ name: '_evilUser', type: 'address' }],
        name: 'addBlackList',
        outputs: [],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 6 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 11..19
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 225..233
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 234..242
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 273..281
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 291..299
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 300..308

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

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

      {
        constant: false,
        inputs: [{ name: 'newOwner', type: 'address' }],
        name: 'transferOwnership',
        outputs: [],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 6 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 11..19
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 41..49
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 225..233
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 234..242
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 273..281
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 300..308

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

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

      {
        constant: false,
        inputs: [{ name: '_blackListedUser', type: 'address' }],
        name: 'destroyBlackFunds',
        outputs: [],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 6 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 11..19
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 41..49
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 225..233
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 234..242
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 273..281
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 291..299

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

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

      {
        constant: false,
        inputs: [{ name: '_upgradedAddress', type: 'address' }],
        name: 'deprecate',
        outputs: [],
    Severity: Major
    Found in packages/synapse-interface/constants/abis/usdtAbi.ts and 6 other locations - About 50 mins to fix
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 41..49
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 225..233
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 234..242
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 273..281
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 291..299
    packages/synapse-interface/constants/abis/usdtAbi.ts on lines 300..308

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

    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