Fantom-foundation/go-lachesis

View on GitHub
gossip/sfc202/contract.go

Summary

Maintainability
F
2 mos
Test Coverage

File contract.go has 4348 lines of code (exceeds 500 allowed). Consider refactoring.
Open

// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.

package sfc202

Severity: Major
Found in gossip/sfc202/contract.go - About 1 wk to fix

    ContractSession has 83 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type ContractSession struct {
        Contract     *Contract         // Generic contract binding to set the session for
        CallOpts     bind.CallOpts     // Call options to use throughout this session
        TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    }
    Severity: Major
    Found in gossip/sfc202/contract.go - About 1 day to fix

      ContractFilterer has 81 methods (exceeds 20 allowed). Consider refactoring.
      Open

      type ContractFilterer struct {
          contract *bind.BoundContract // Generic contract wrapper for the low level calls
      }
      Severity: Major
      Found in gossip/sfc202/contract.go - About 1 day to fix

        ContractCaller has 52 methods (exceeds 20 allowed). Consider refactoring.
        Open

        type ContractCaller struct {
            contract *bind.BoundContract // Generic contract wrapper for the low level calls
        }
        Severity: Major
        Found in gossip/sfc202/contract.go - About 7 hrs to fix

          ContractCallerSession has 52 methods (exceeds 20 allowed). Consider refactoring.
          Open

          type ContractCallerSession struct {
              Contract *ContractCaller // Generic contract caller binding to set the session for
              CallOpts bind.CallOpts   // Call options to use throughout this session
          }
          Severity: Major
          Found in gossip/sfc202/contract.go - About 7 hrs to fix

            ContractTransactorSession has 31 methods (exceeds 20 allowed). Consider refactoring.
            Open

            type ContractTransactorSession struct {
                Contract     *ContractTransactor // Generic contract transactor binding to set the session for
                TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
            }
            Severity: Minor
            Found in gossip/sfc202/contract.go - About 3 hrs to fix

              ContractTransactor has 31 methods (exceeds 20 allowed). Consider refactoring.
              Open

              type ContractTransactor struct {
                  contract *bind.BoundContract // Generic contract wrapper for the low level calls
              }
              Severity: Minor
              Found in gossip/sfc202/contract.go - About 3 hrs to fix

                Method ContractCreatedWithdrawRequestIterator.Next has 7 return statements (exceeds 4 allowed).
                Open

                func (it *ContractCreatedWithdrawRequestIterator) Next() bool {
                    // If the iterator failed, stop iterating
                    if it.fail != nil {
                        return false
                    }
                Severity: Major
                Found in gossip/sfc202/contract.go - About 45 mins to fix

                  Method ContractIncreasedStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                  Open

                  func (it *ContractIncreasedStakeIterator) Next() bool {
                      // If the iterator failed, stop iterating
                      if it.fail != nil {
                          return false
                      }
                  Severity: Major
                  Found in gossip/sfc202/contract.go - About 45 mins to fix

                    Method ContractPreparedToWithdrawDelegationIterator.Next has 7 return statements (exceeds 4 allowed).
                    Open

                    func (it *ContractPreparedToWithdrawDelegationIterator) Next() bool {
                        // If the iterator failed, stop iterating
                        if it.fail != nil {
                            return false
                        }
                    Severity: Major
                    Found in gossip/sfc202/contract.go - About 45 mins to fix

                      Method ContractLockingDelegationIterator.Next has 7 return statements (exceeds 4 allowed).
                      Open

                      func (it *ContractLockingDelegationIterator) Next() bool {
                          // If the iterator failed, stop iterating
                          if it.fail != nil {
                              return false
                          }
                      Severity: Major
                      Found in gossip/sfc202/contract.go - About 45 mins to fix

                        Method ContractPartialWithdrawnByRequestIterator.Next has 7 return statements (exceeds 4 allowed).
                        Open

                        func (it *ContractPartialWithdrawnByRequestIterator) Next() bool {
                            // If the iterator failed, stop iterating
                            if it.fail != nil {
                                return false
                            }
                        Severity: Major
                        Found in gossip/sfc202/contract.go - About 45 mins to fix

                          Method ContractUnstashedRewardsIterator.Next has 7 return statements (exceeds 4 allowed).
                          Open

                          func (it *ContractUnstashedRewardsIterator) Next() bool {
                              // If the iterator failed, stop iterating
                              if it.fail != nil {
                                  return false
                              }
                          Severity: Major
                          Found in gossip/sfc202/contract.go - About 45 mins to fix

                            Method ContractClaimedValidatorRewardIterator.Next has 7 return statements (exceeds 4 allowed).
                            Open

                            func (it *ContractClaimedValidatorRewardIterator) Next() bool {
                                // If the iterator failed, stop iterating
                                if it.fail != nil {
                                    return false
                                }
                            Severity: Major
                            Found in gossip/sfc202/contract.go - About 45 mins to fix

                              Method ContractUpdatedMinGasPriceIterator.Next has 7 return statements (exceeds 4 allowed).
                              Open

                              func (it *ContractUpdatedMinGasPriceIterator) Next() bool {
                                  // If the iterator failed, stop iterating
                                  if it.fail != nil {
                                      return false
                                  }
                              Severity: Major
                              Found in gossip/sfc202/contract.go - About 45 mins to fix

                                Method ContractCreatedDelegationIterator.Next has 7 return statements (exceeds 4 allowed).
                                Open

                                func (it *ContractCreatedDelegationIterator) Next() bool {
                                    // If the iterator failed, stop iterating
                                    if it.fail != nil {
                                        return false
                                    }
                                Severity: Major
                                Found in gossip/sfc202/contract.go - About 45 mins to fix

                                  Method ContractDeactivatedStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                                  Open

                                  func (it *ContractDeactivatedStakeIterator) Next() bool {
                                      // If the iterator failed, stop iterating
                                      if it.fail != nil {
                                          return false
                                      }
                                  Severity: Major
                                  Found in gossip/sfc202/contract.go - About 45 mins to fix

                                    Method ContractUpdatedDelegationIterator.Next has 7 return statements (exceeds 4 allowed).
                                    Open

                                    func (it *ContractUpdatedDelegationIterator) Next() bool {
                                        // If the iterator failed, stop iterating
                                        if it.fail != nil {
                                            return false
                                        }
                                    Severity: Major
                                    Found in gossip/sfc202/contract.go - About 45 mins to fix

                                      Method ContractUpdatedGasPowerAllocationRateIterator.Next has 7 return statements (exceeds 4 allowed).
                                      Open

                                      func (it *ContractUpdatedGasPowerAllocationRateIterator) Next() bool {
                                          // If the iterator failed, stop iterating
                                          if it.fail != nil {
                                              return false
                                          }
                                      Severity: Major
                                      Found in gossip/sfc202/contract.go - About 45 mins to fix

                                        Method ContractUpdatedOfflinePenaltyThresholdIterator.Next has 7 return statements (exceeds 4 allowed).
                                        Open

                                        func (it *ContractUpdatedOfflinePenaltyThresholdIterator) Next() bool {
                                            // If the iterator failed, stop iterating
                                            if it.fail != nil {
                                                return false
                                            }
                                        Severity: Major
                                        Found in gossip/sfc202/contract.go - About 45 mins to fix

                                          Method ContractDeactivatedDelegationIterator.Next has 7 return statements (exceeds 4 allowed).
                                          Open

                                          func (it *ContractDeactivatedDelegationIterator) Next() bool {
                                              // If the iterator failed, stop iterating
                                              if it.fail != nil {
                                                  return false
                                              }
                                          Severity: Major
                                          Found in gossip/sfc202/contract.go - About 45 mins to fix

                                            Method ContractUpdatedStakerSfcAddressIterator.Next has 7 return statements (exceeds 4 allowed).
                                            Open

                                            func (it *ContractUpdatedStakerSfcAddressIterator) Next() bool {
                                                // If the iterator failed, stop iterating
                                                if it.fail != nil {
                                                    return false
                                                }
                                            Severity: Major
                                            Found in gossip/sfc202/contract.go - About 45 mins to fix

                                              Method ContractWithdrawnStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                                              Open

                                              func (it *ContractWithdrawnStakeIterator) Next() bool {
                                                  // If the iterator failed, stop iterating
                                                  if it.fail != nil {
                                                      return false
                                                  }
                                              Severity: Major
                                              Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                Method ContractIncreasedDelegationIterator.Next has 7 return statements (exceeds 4 allowed).
                                                Open

                                                func (it *ContractIncreasedDelegationIterator) Next() bool {
                                                    // If the iterator failed, stop iterating
                                                    if it.fail != nil {
                                                        return false
                                                    }
                                                Severity: Major
                                                Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                  Method ContractLockingStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                                                  Open

                                                  func (it *ContractLockingStakeIterator) Next() bool {
                                                      // If the iterator failed, stop iterating
                                                      if it.fail != nil {
                                                          return false
                                                      }
                                                  Severity: Major
                                                  Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                    Method ContractNetworkUpgradeActivatedIterator.Next has 7 return statements (exceeds 4 allowed).
                                                    Open

                                                    func (it *ContractNetworkUpgradeActivatedIterator) Next() bool {
                                                        // If the iterator failed, stop iterating
                                                        if it.fail != nil {
                                                            return false
                                                        }
                                                    Severity: Major
                                                    Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                      Method ContractOwnershipTransferredIterator.Next has 7 return statements (exceeds 4 allowed).
                                                      Open

                                                      func (it *ContractOwnershipTransferredIterator) Next() bool {
                                                          // If the iterator failed, stop iterating
                                                          if it.fail != nil {
                                                              return false
                                                          }
                                                      Severity: Major
                                                      Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                        Method ContractPreparedToWithdrawStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                                                        Open

                                                        func (it *ContractPreparedToWithdrawStakeIterator) Next() bool {
                                                            // If the iterator failed, stop iterating
                                                            if it.fail != nil {
                                                                return false
                                                            }
                                                        Severity: Major
                                                        Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                          Method ContractClaimedDelegationRewardIterator.Next has 7 return statements (exceeds 4 allowed).
                                                          Open

                                                          func (it *ContractClaimedDelegationRewardIterator) Next() bool {
                                                              // If the iterator failed, stop iterating
                                                              if it.fail != nil {
                                                                  return false
                                                              }
                                                          Severity: Major
                                                          Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                            Method ContractUpdatedStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                                                            Open

                                                            func (it *ContractUpdatedStakeIterator) Next() bool {
                                                                // If the iterator failed, stop iterating
                                                                if it.fail != nil {
                                                                    return false
                                                                }
                                                            Severity: Major
                                                            Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                              Method ContractWithdrawnDelegationIterator.Next has 7 return statements (exceeds 4 allowed).
                                                              Open

                                                              func (it *ContractWithdrawnDelegationIterator) Next() bool {
                                                                  // If the iterator failed, stop iterating
                                                                  if it.fail != nil {
                                                                      return false
                                                                  }
                                                              Severity: Major
                                                              Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                                Method ContractCreatedStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                                                                Open

                                                                func (it *ContractCreatedStakeIterator) Next() bool {
                                                                    // If the iterator failed, stop iterating
                                                                    if it.fail != nil {
                                                                        return false
                                                                    }
                                                                Severity: Major
                                                                Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                                  Method ContractUpdatedBaseRewardPerSecIterator.Next has 7 return statements (exceeds 4 allowed).
                                                                  Open

                                                                  func (it *ContractUpdatedBaseRewardPerSecIterator) Next() bool {
                                                                      // If the iterator failed, stop iterating
                                                                      if it.fail != nil {
                                                                          return false
                                                                      }
                                                                  Severity: Major
                                                                  Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                                    Method ContractUpdatedStakerMetadataIterator.Next has 7 return statements (exceeds 4 allowed).
                                                                    Open

                                                                    func (it *ContractUpdatedStakerMetadataIterator) Next() bool {
                                                                        // If the iterator failed, stop iterating
                                                                        if it.fail != nil {
                                                                            return false
                                                                        }
                                                                    Severity: Major
                                                                    Found in gossip/sfc202/contract.go - About 45 mins to fix

                                                                      Method ContractFilterer.WatchCreatedWithdrawRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                      Open

                                                                      func (_Contract *ContractFilterer) WatchCreatedWithdrawRequest(opts *bind.WatchOpts, sink chan<- *ContractCreatedWithdrawRequest, auth []common.Address, receiver []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                                                                      Severity: Minor
                                                                      Found in gossip/sfc202/contract.go - About 35 mins to fix

                                                                        Method ContractFilterer.WatchUpdatedStakerSfcAddress has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                        Open

                                                                        func (_Contract *ContractFilterer) WatchUpdatedStakerSfcAddress(opts *bind.WatchOpts, sink chan<- *ContractUpdatedStakerSfcAddress, stakerID []*big.Int, oldSfcAddress []common.Address, newSfcAddress []common.Address) (event.Subscription, error) {
                                                                        Severity: Minor
                                                                        Found in gossip/sfc202/contract.go - About 35 mins to fix

                                                                          Method ContractFilterer.WatchPartialWithdrawnByRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                          Open

                                                                          func (_Contract *ContractFilterer) WatchPartialWithdrawnByRequest(opts *bind.WatchOpts, sink chan<- *ContractPartialWithdrawnByRequest, auth []common.Address, receiver []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                                                                          Severity: Minor
                                                                          Found in gossip/sfc202/contract.go - About 35 mins to fix

                                                                            Method ContractCaller.CalcDelegationCompoundRewards has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                            Open

                                                                            func (_Contract *ContractCaller) CalcDelegationCompoundRewards(opts *bind.CallOpts, delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                            Severity: Minor
                                                                            Found in gossip/sfc202/contract.go - About 35 mins to fix

                                                                              Method ContractFilterer.WatchUpdatedDelegation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                              Open

                                                                              func (_Contract *ContractFilterer) WatchUpdatedDelegation(opts *bind.WatchOpts, sink chan<- *ContractUpdatedDelegation, delegator []common.Address, oldStakerID []*big.Int, newStakerID []*big.Int) (event.Subscription, error) {
                                                                              Severity: Minor
                                                                              Found in gossip/sfc202/contract.go - About 35 mins to fix

                                                                                Method ContractCaller.CalcDelegationRewards has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                Open

                                                                                func (_Contract *ContractCaller) CalcDelegationRewards(opts *bind.CallOpts, delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                Severity: Minor
                                                                                Found in gossip/sfc202/contract.go - About 35 mins to fix

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

                                                                                  func (_Contract *ContractFilterer) WatchUpdatedDelegation(opts *bind.WatchOpts, sink chan<- *ContractUpdatedDelegation, delegator []common.Address, oldStakerID []*big.Int, newStakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 2 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 4599..4644
                                                                                  gossip/sfc204/contract.go on lines 5067..5112

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

                                                                                  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

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

                                                                                  func (_Contract *ContractFilterer) WatchUpdatedStakerSfcAddress(opts *bind.WatchOpts, sink chan<- *ContractUpdatedStakerSfcAddress, stakerID []*big.Int, oldSfcAddress []common.Address, newSfcAddress []common.Address) (event.Subscription, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 5182..5227

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) WatchPartialWithdrawnByRequest(opts *bind.WatchOpts, sink chan<- *ContractPartialWithdrawnByRequest, auth []common.Address, receiver []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var authRule []interface{}
                                                                                      for _, authItem := range auth {
                                                                                          authRule = append(authRule, authItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2946..2991
                                                                                  gossip/sfc110/contract.go on lines 3856..3901
                                                                                  gossip/sfc202/contract.go on lines 3139..3184
                                                                                  gossip/sfc204/contract.go on lines 2982..3027
                                                                                  gossip/sfc204/contract.go on lines 4324..4369

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) WatchCreatedWithdrawRequest(opts *bind.WatchOpts, sink chan<- *ContractCreatedWithdrawRequest, auth []common.Address, receiver []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var authRule []interface{}
                                                                                      for _, authItem := range auth {
                                                                                          authRule = append(authRule, authItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2946..2991
                                                                                  gossip/sfc110/contract.go on lines 3856..3901
                                                                                  gossip/sfc202/contract.go on lines 4481..4526
                                                                                  gossip/sfc204/contract.go on lines 2982..3027
                                                                                  gossip/sfc204/contract.go on lines 4324..4369

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

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

                                                                                  func (_Contract *ContractFilterer) WatchCreatedDelegation(opts *bind.WatchOpts, sink chan<- *ContractCreatedDelegation, delegator []common.Address, toStakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2179..2220
                                                                                  gossip/sfc110/contract.go on lines 2334..2375
                                                                                  gossip/sfc110/contract.go on lines 2633..2674
                                                                                  gossip/sfc110/contract.go on lines 3102..3143
                                                                                  gossip/sfc110/contract.go on lines 3399..3440
                                                                                  gossip/sfc110/contract.go on lines 4012..4053
                                                                                  gossip/sfc110/contract.go on lines 5339..5380
                                                                                  gossip/sfc202/contract.go on lines 2527..2568
                                                                                  gossip/sfc202/contract.go on lines 3295..3336
                                                                                  gossip/sfc202/contract.go on lines 3592..3633
                                                                                  gossip/sfc202/contract.go on lines 3891..3932
                                                                                  gossip/sfc202/contract.go on lines 4637..4678
                                                                                  gossip/sfc202/contract.go on lines 6231..6272
                                                                                  gossip/sfc204/contract.go on lines 2370..2411
                                                                                  gossip/sfc204/contract.go on lines 2669..2710
                                                                                  gossip/sfc204/contract.go on lines 3138..3179
                                                                                  gossip/sfc204/contract.go on lines 3435..3476
                                                                                  gossip/sfc204/contract.go on lines 3734..3775
                                                                                  gossip/sfc204/contract.go on lines 4480..4521
                                                                                  gossip/sfc204/contract.go on lines 5770..5811

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

                                                                                  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

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

                                                                                  func (_Contract *ContractFilterer) WatchCreatedStake(opts *bind.WatchOpts, sink chan<- *ContractCreatedStake, stakerID []*big.Int, dagSfcAddress []common.Address) (event.Subscription, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 2 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2786..2827
                                                                                  gossip/sfc204/contract.go on lines 2822..2863

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

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

                                                                                  func (_Contract *ContractFilterer) WatchLockingDelegation(opts *bind.WatchOpts, sink chan<- *ContractLockingDelegation, delegator []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2179..2220
                                                                                  gossip/sfc110/contract.go on lines 2334..2375
                                                                                  gossip/sfc110/contract.go on lines 2633..2674
                                                                                  gossip/sfc110/contract.go on lines 3102..3143
                                                                                  gossip/sfc110/contract.go on lines 3399..3440
                                                                                  gossip/sfc110/contract.go on lines 4012..4053
                                                                                  gossip/sfc110/contract.go on lines 5339..5380
                                                                                  gossip/sfc202/contract.go on lines 2527..2568
                                                                                  gossip/sfc202/contract.go on lines 2826..2867
                                                                                  gossip/sfc202/contract.go on lines 3295..3336
                                                                                  gossip/sfc202/contract.go on lines 3592..3633
                                                                                  gossip/sfc202/contract.go on lines 4637..4678
                                                                                  gossip/sfc202/contract.go on lines 6231..6272
                                                                                  gossip/sfc204/contract.go on lines 2370..2411
                                                                                  gossip/sfc204/contract.go on lines 2669..2710
                                                                                  gossip/sfc204/contract.go on lines 3138..3179
                                                                                  gossip/sfc204/contract.go on lines 3435..3476
                                                                                  gossip/sfc204/contract.go on lines 3734..3775
                                                                                  gossip/sfc204/contract.go on lines 4480..4521
                                                                                  gossip/sfc204/contract.go on lines 5770..5811

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

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

                                                                                  func (_Contract *ContractFilterer) WatchClaimedDelegationReward(opts *bind.WatchOpts, sink chan<- *ContractClaimedDelegationReward, from []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var fromRule []interface{}
                                                                                      for _, fromItem := range from {
                                                                                          fromRule = append(fromRule, fromItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2179..2220
                                                                                  gossip/sfc110/contract.go on lines 2334..2375
                                                                                  gossip/sfc110/contract.go on lines 2633..2674
                                                                                  gossip/sfc110/contract.go on lines 3102..3143
                                                                                  gossip/sfc110/contract.go on lines 3399..3440
                                                                                  gossip/sfc110/contract.go on lines 4012..4053
                                                                                  gossip/sfc110/contract.go on lines 5339..5380
                                                                                  gossip/sfc202/contract.go on lines 2826..2867
                                                                                  gossip/sfc202/contract.go on lines 3295..3336
                                                                                  gossip/sfc202/contract.go on lines 3592..3633
                                                                                  gossip/sfc202/contract.go on lines 3891..3932
                                                                                  gossip/sfc202/contract.go on lines 4637..4678
                                                                                  gossip/sfc202/contract.go on lines 6231..6272
                                                                                  gossip/sfc204/contract.go on lines 2370..2411
                                                                                  gossip/sfc204/contract.go on lines 2669..2710
                                                                                  gossip/sfc204/contract.go on lines 3138..3179
                                                                                  gossip/sfc204/contract.go on lines 3435..3476
                                                                                  gossip/sfc204/contract.go on lines 3734..3775
                                                                                  gossip/sfc204/contract.go on lines 4480..4521
                                                                                  gossip/sfc204/contract.go on lines 5770..5811

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

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

                                                                                  func (_Contract *ContractFilterer) WatchDeactivatedDelegation(opts *bind.WatchOpts, sink chan<- *ContractDeactivatedDelegation, delegator []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2179..2220
                                                                                  gossip/sfc110/contract.go on lines 2334..2375
                                                                                  gossip/sfc110/contract.go on lines 2633..2674
                                                                                  gossip/sfc110/contract.go on lines 3102..3143
                                                                                  gossip/sfc110/contract.go on lines 3399..3440
                                                                                  gossip/sfc110/contract.go on lines 4012..4053
                                                                                  gossip/sfc110/contract.go on lines 5339..5380
                                                                                  gossip/sfc202/contract.go on lines 2527..2568
                                                                                  gossip/sfc202/contract.go on lines 2826..2867
                                                                                  gossip/sfc202/contract.go on lines 3592..3633
                                                                                  gossip/sfc202/contract.go on lines 3891..3932
                                                                                  gossip/sfc202/contract.go on lines 4637..4678
                                                                                  gossip/sfc202/contract.go on lines 6231..6272
                                                                                  gossip/sfc204/contract.go on lines 2370..2411
                                                                                  gossip/sfc204/contract.go on lines 2669..2710
                                                                                  gossip/sfc204/contract.go on lines 3138..3179
                                                                                  gossip/sfc204/contract.go on lines 3435..3476
                                                                                  gossip/sfc204/contract.go on lines 3734..3775
                                                                                  gossip/sfc204/contract.go on lines 4480..4521
                                                                                  gossip/sfc204/contract.go on lines 5770..5811

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

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

                                                                                  func (_Contract *ContractFilterer) WatchIncreasedDelegation(opts *bind.WatchOpts, sink chan<- *ContractIncreasedDelegation, delegator []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2179..2220
                                                                                  gossip/sfc110/contract.go on lines 2334..2375
                                                                                  gossip/sfc110/contract.go on lines 2633..2674
                                                                                  gossip/sfc110/contract.go on lines 3102..3143
                                                                                  gossip/sfc110/contract.go on lines 3399..3440
                                                                                  gossip/sfc110/contract.go on lines 4012..4053
                                                                                  gossip/sfc110/contract.go on lines 5339..5380
                                                                                  gossip/sfc202/contract.go on lines 2527..2568
                                                                                  gossip/sfc202/contract.go on lines 2826..2867
                                                                                  gossip/sfc202/contract.go on lines 3295..3336
                                                                                  gossip/sfc202/contract.go on lines 3891..3932
                                                                                  gossip/sfc202/contract.go on lines 4637..4678
                                                                                  gossip/sfc202/contract.go on lines 6231..6272
                                                                                  gossip/sfc204/contract.go on lines 2370..2411
                                                                                  gossip/sfc204/contract.go on lines 2669..2710
                                                                                  gossip/sfc204/contract.go on lines 3138..3179
                                                                                  gossip/sfc204/contract.go on lines 3435..3476
                                                                                  gossip/sfc204/contract.go on lines 3734..3775
                                                                                  gossip/sfc204/contract.go on lines 4480..4521
                                                                                  gossip/sfc204/contract.go on lines 5770..5811

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

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

                                                                                  func (_Contract *ContractFilterer) WatchPreparedToWithdrawDelegation(opts *bind.WatchOpts, sink chan<- *ContractPreparedToWithdrawDelegation, delegator []common.Address, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2179..2220
                                                                                  gossip/sfc110/contract.go on lines 2334..2375
                                                                                  gossip/sfc110/contract.go on lines 2633..2674
                                                                                  gossip/sfc110/contract.go on lines 3102..3143
                                                                                  gossip/sfc110/contract.go on lines 3399..3440
                                                                                  gossip/sfc110/contract.go on lines 4012..4053
                                                                                  gossip/sfc110/contract.go on lines 5339..5380
                                                                                  gossip/sfc202/contract.go on lines 2527..2568
                                                                                  gossip/sfc202/contract.go on lines 2826..2867
                                                                                  gossip/sfc202/contract.go on lines 3295..3336
                                                                                  gossip/sfc202/contract.go on lines 3592..3633
                                                                                  gossip/sfc202/contract.go on lines 3891..3932
                                                                                  gossip/sfc202/contract.go on lines 6231..6272
                                                                                  gossip/sfc204/contract.go on lines 2370..2411
                                                                                  gossip/sfc204/contract.go on lines 2669..2710
                                                                                  gossip/sfc204/contract.go on lines 3138..3179
                                                                                  gossip/sfc204/contract.go on lines 3435..3476
                                                                                  gossip/sfc204/contract.go on lines 3734..3775
                                                                                  gossip/sfc204/contract.go on lines 4480..4521
                                                                                  gossip/sfc204/contract.go on lines 5770..5811

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

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

                                                                                  func (_Contract *ContractFilterer) WatchWithdrawnDelegation(opts *bind.WatchOpts, sink chan<- *ContractWithdrawnDelegation, delegator []common.Address, toStakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2179..2220
                                                                                  gossip/sfc110/contract.go on lines 2334..2375
                                                                                  gossip/sfc110/contract.go on lines 2633..2674
                                                                                  gossip/sfc110/contract.go on lines 3102..3143
                                                                                  gossip/sfc110/contract.go on lines 3399..3440
                                                                                  gossip/sfc110/contract.go on lines 4012..4053
                                                                                  gossip/sfc110/contract.go on lines 5339..5380
                                                                                  gossip/sfc202/contract.go on lines 2527..2568
                                                                                  gossip/sfc202/contract.go on lines 2826..2867
                                                                                  gossip/sfc202/contract.go on lines 3295..3336
                                                                                  gossip/sfc202/contract.go on lines 3592..3633
                                                                                  gossip/sfc202/contract.go on lines 3891..3932
                                                                                  gossip/sfc202/contract.go on lines 4637..4678
                                                                                  gossip/sfc204/contract.go on lines 2370..2411
                                                                                  gossip/sfc204/contract.go on lines 2669..2710
                                                                                  gossip/sfc204/contract.go on lines 3138..3179
                                                                                  gossip/sfc204/contract.go on lines 3435..3476
                                                                                  gossip/sfc204/contract.go on lines 3734..3775
                                                                                  gossip/sfc204/contract.go on lines 4480..4521
                                                                                  gossip/sfc204/contract.go on lines 5770..5811

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {
                                                                                  
                                                                                      var previousOwnerRule []interface{}
                                                                                      for _, previousOwnerItem := range previousOwner {
                                                                                          previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 3696..3737
                                                                                  gossip/sfc110/contract.go on lines 4308..4349
                                                                                  gossip/sfc202/contract.go on lines 4933..4974
                                                                                  gossip/sfc204/contract.go on lines 4164..4205
                                                                                  gossip/sfc204/contract.go on lines 4776..4817

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) WatchUnstashedRewards(opts *bind.WatchOpts, sink chan<- *ContractUnstashedRewards, auth []common.Address, receiver []common.Address) (event.Subscription, error) {
                                                                                  
                                                                                      var authRule []interface{}
                                                                                      for _, authItem := range auth {
                                                                                          authRule = append(authRule, authItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 5 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 3696..3737
                                                                                  gossip/sfc110/contract.go on lines 4308..4349
                                                                                  gossip/sfc202/contract.go on lines 4321..4362
                                                                                  gossip/sfc204/contract.go on lines 4164..4205
                                                                                  gossip/sfc204/contract.go on lines 4776..4817

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) WatchPreparedToWithdrawStake(opts *bind.WatchOpts, sink chan<- *ContractPreparedToWithdrawStake, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 4 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2484..2521
                                                                                  gossip/sfc110/contract.go on lines 3249..3286
                                                                                  gossip/sfc110/contract.go on lines 3548..3585
                                                                                  gossip/sfc110/contract.go on lines 4159..4196
                                                                                  gossip/sfc110/contract.go on lines 4886..4923
                                                                                  gossip/sfc110/contract.go on lines 5029..5066
                                                                                  gossip/sfc110/contract.go on lines 5487..5524
                                                                                  gossip/sfc202/contract.go on lines 2677..2714
                                                                                  gossip/sfc202/contract.go on lines 3442..3479
                                                                                  gossip/sfc202/contract.go on lines 3741..3778
                                                                                  gossip/sfc202/contract.go on lines 4040..4077
                                                                                  gossip/sfc202/contract.go on lines 5778..5815
                                                                                  gossip/sfc202/contract.go on lines 5921..5958
                                                                                  gossip/sfc202/contract.go on lines 6379..6416
                                                                                  gossip/sfc204/contract.go on lines 2520..2557
                                                                                  gossip/sfc204/contract.go on lines 3285..3322
                                                                                  gossip/sfc204/contract.go on lines 3584..3621
                                                                                  gossip/sfc204/contract.go on lines 3883..3920
                                                                                  gossip/sfc204/contract.go on lines 4627..4664
                                                                                  gossip/sfc204/contract.go on lines 5621..5658
                                                                                  gossip/sfc204/contract.go on lines 5918..5955

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) WatchWithdrawnStake(opts *bind.WatchOpts, sink chan<- *ContractWithdrawnStake, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 4 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2484..2521
                                                                                  gossip/sfc110/contract.go on lines 3249..3286
                                                                                  gossip/sfc110/contract.go on lines 3548..3585
                                                                                  gossip/sfc110/contract.go on lines 4159..4196
                                                                                  gossip/sfc110/contract.go on lines 4886..4923
                                                                                  gossip/sfc110/contract.go on lines 5029..5066
                                                                                  gossip/sfc110/contract.go on lines 5487..5524
                                                                                  gossip/sfc202/contract.go on lines 2677..2714
                                                                                  gossip/sfc202/contract.go on lines 3442..3479
                                                                                  gossip/sfc202/contract.go on lines 3741..3778
                                                                                  gossip/sfc202/contract.go on lines 4040..4077
                                                                                  gossip/sfc202/contract.go on lines 4784..4821
                                                                                  gossip/sfc202/contract.go on lines 5778..5815
                                                                                  gossip/sfc202/contract.go on lines 5921..5958
                                                                                  gossip/sfc204/contract.go on lines 2520..2557
                                                                                  gossip/sfc204/contract.go on lines 3285..3322
                                                                                  gossip/sfc204/contract.go on lines 3584..3621
                                                                                  gossip/sfc204/contract.go on lines 3883..3920
                                                                                  gossip/sfc204/contract.go on lines 4627..4664
                                                                                  gossip/sfc204/contract.go on lines 5621..5658
                                                                                  gossip/sfc204/contract.go on lines 5918..5955

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) WatchClaimedValidatorReward(opts *bind.WatchOpts, sink chan<- *ContractClaimedValidatorReward, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 4 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2484..2521
                                                                                  gossip/sfc110/contract.go on lines 3249..3286
                                                                                  gossip/sfc110/contract.go on lines 3548..3585
                                                                                  gossip/sfc110/contract.go on lines 4159..4196
                                                                                  gossip/sfc110/contract.go on lines 4886..4923
                                                                                  gossip/sfc110/contract.go on lines 5029..5066
                                                                                  gossip/sfc110/contract.go on lines 5487..5524
                                                                                  gossip/sfc202/contract.go on lines 3442..3479
                                                                                  gossip/sfc202/contract.go on lines 3741..3778
                                                                                  gossip/sfc202/contract.go on lines 4040..4077
                                                                                  gossip/sfc202/contract.go on lines 4784..4821
                                                                                  gossip/sfc202/contract.go on lines 5778..5815
                                                                                  gossip/sfc202/contract.go on lines 5921..5958
                                                                                  gossip/sfc202/contract.go on lines 6379..6416
                                                                                  gossip/sfc204/contract.go on lines 2520..2557
                                                                                  gossip/sfc204/contract.go on lines 3285..3322
                                                                                  gossip/sfc204/contract.go on lines 3584..3621
                                                                                  gossip/sfc204/contract.go on lines 3883..3920
                                                                                  gossip/sfc204/contract.go on lines 4627..4664
                                                                                  gossip/sfc204/contract.go on lines 5621..5658
                                                                                  gossip/sfc204/contract.go on lines 5918..5955

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) WatchIncreasedStake(opts *bind.WatchOpts, sink chan<- *ContractIncreasedStake, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 4 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2484..2521
                                                                                  gossip/sfc110/contract.go on lines 3249..3286
                                                                                  gossip/sfc110/contract.go on lines 3548..3585
                                                                                  gossip/sfc110/contract.go on lines 4159..4196
                                                                                  gossip/sfc110/contract.go on lines 4886..4923
                                                                                  gossip/sfc110/contract.go on lines 5029..5066
                                                                                  gossip/sfc110/contract.go on lines 5487..5524
                                                                                  gossip/sfc202/contract.go on lines 2677..2714
                                                                                  gossip/sfc202/contract.go on lines 3442..3479
                                                                                  gossip/sfc202/contract.go on lines 4040..4077
                                                                                  gossip/sfc202/contract.go on lines 4784..4821
                                                                                  gossip/sfc202/contract.go on lines 5778..5815
                                                                                  gossip/sfc202/contract.go on lines 5921..5958
                                                                                  gossip/sfc202/contract.go on lines 6379..6416
                                                                                  gossip/sfc204/contract.go on lines 2520..2557
                                                                                  gossip/sfc204/contract.go on lines 3285..3322
                                                                                  gossip/sfc204/contract.go on lines 3584..3621
                                                                                  gossip/sfc204/contract.go on lines 3883..3920
                                                                                  gossip/sfc204/contract.go on lines 4627..4664
                                                                                  gossip/sfc204/contract.go on lines 5621..5658
                                                                                  gossip/sfc204/contract.go on lines 5918..5955

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) WatchDeactivatedStake(opts *bind.WatchOpts, sink chan<- *ContractDeactivatedStake, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 4 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2484..2521
                                                                                  gossip/sfc110/contract.go on lines 3249..3286
                                                                                  gossip/sfc110/contract.go on lines 3548..3585
                                                                                  gossip/sfc110/contract.go on lines 4159..4196
                                                                                  gossip/sfc110/contract.go on lines 4886..4923
                                                                                  gossip/sfc110/contract.go on lines 5029..5066
                                                                                  gossip/sfc110/contract.go on lines 5487..5524
                                                                                  gossip/sfc202/contract.go on lines 2677..2714
                                                                                  gossip/sfc202/contract.go on lines 3741..3778
                                                                                  gossip/sfc202/contract.go on lines 4040..4077
                                                                                  gossip/sfc202/contract.go on lines 4784..4821
                                                                                  gossip/sfc202/contract.go on lines 5778..5815
                                                                                  gossip/sfc202/contract.go on lines 5921..5958
                                                                                  gossip/sfc202/contract.go on lines 6379..6416
                                                                                  gossip/sfc204/contract.go on lines 2520..2557
                                                                                  gossip/sfc204/contract.go on lines 3285..3322
                                                                                  gossip/sfc204/contract.go on lines 3584..3621
                                                                                  gossip/sfc204/contract.go on lines 3883..3920
                                                                                  gossip/sfc204/contract.go on lines 4627..4664
                                                                                  gossip/sfc204/contract.go on lines 5621..5658
                                                                                  gossip/sfc204/contract.go on lines 5918..5955

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) WatchUpdatedStakerMetadata(opts *bind.WatchOpts, sink chan<- *ContractUpdatedStakerMetadata, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 4 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2484..2521
                                                                                  gossip/sfc110/contract.go on lines 3249..3286
                                                                                  gossip/sfc110/contract.go on lines 3548..3585
                                                                                  gossip/sfc110/contract.go on lines 4159..4196
                                                                                  gossip/sfc110/contract.go on lines 4886..4923
                                                                                  gossip/sfc110/contract.go on lines 5029..5066
                                                                                  gossip/sfc110/contract.go on lines 5487..5524
                                                                                  gossip/sfc202/contract.go on lines 2677..2714
                                                                                  gossip/sfc202/contract.go on lines 3442..3479
                                                                                  gossip/sfc202/contract.go on lines 3741..3778
                                                                                  gossip/sfc202/contract.go on lines 4040..4077
                                                                                  gossip/sfc202/contract.go on lines 4784..4821
                                                                                  gossip/sfc202/contract.go on lines 5778..5815
                                                                                  gossip/sfc202/contract.go on lines 6379..6416
                                                                                  gossip/sfc204/contract.go on lines 2520..2557
                                                                                  gossip/sfc204/contract.go on lines 3285..3322
                                                                                  gossip/sfc204/contract.go on lines 3584..3621
                                                                                  gossip/sfc204/contract.go on lines 3883..3920
                                                                                  gossip/sfc204/contract.go on lines 4627..4664
                                                                                  gossip/sfc204/contract.go on lines 5621..5658
                                                                                  gossip/sfc204/contract.go on lines 5918..5955

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) WatchLockingStake(opts *bind.WatchOpts, sink chan<- *ContractLockingStake, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 4 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2484..2521
                                                                                  gossip/sfc110/contract.go on lines 3249..3286
                                                                                  gossip/sfc110/contract.go on lines 3548..3585
                                                                                  gossip/sfc110/contract.go on lines 4159..4196
                                                                                  gossip/sfc110/contract.go on lines 4886..4923
                                                                                  gossip/sfc110/contract.go on lines 5029..5066
                                                                                  gossip/sfc110/contract.go on lines 5487..5524
                                                                                  gossip/sfc202/contract.go on lines 2677..2714
                                                                                  gossip/sfc202/contract.go on lines 3442..3479
                                                                                  gossip/sfc202/contract.go on lines 3741..3778
                                                                                  gossip/sfc202/contract.go on lines 4784..4821
                                                                                  gossip/sfc202/contract.go on lines 5778..5815
                                                                                  gossip/sfc202/contract.go on lines 5921..5958
                                                                                  gossip/sfc202/contract.go on lines 6379..6416
                                                                                  gossip/sfc204/contract.go on lines 2520..2557
                                                                                  gossip/sfc204/contract.go on lines 3285..3322
                                                                                  gossip/sfc204/contract.go on lines 3584..3621
                                                                                  gossip/sfc204/contract.go on lines 3883..3920
                                                                                  gossip/sfc204/contract.go on lines 4627..4664
                                                                                  gossip/sfc204/contract.go on lines 5621..5658
                                                                                  gossip/sfc204/contract.go on lines 5918..5955

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) WatchUpdatedStake(opts *bind.WatchOpts, sink chan<- *ContractUpdatedStake, stakerID []*big.Int) (event.Subscription, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 4 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2484..2521
                                                                                  gossip/sfc110/contract.go on lines 3249..3286
                                                                                  gossip/sfc110/contract.go on lines 3548..3585
                                                                                  gossip/sfc110/contract.go on lines 4159..4196
                                                                                  gossip/sfc110/contract.go on lines 4886..4923
                                                                                  gossip/sfc110/contract.go on lines 5029..5066
                                                                                  gossip/sfc110/contract.go on lines 5487..5524
                                                                                  gossip/sfc202/contract.go on lines 2677..2714
                                                                                  gossip/sfc202/contract.go on lines 3442..3479
                                                                                  gossip/sfc202/contract.go on lines 3741..3778
                                                                                  gossip/sfc202/contract.go on lines 4040..4077
                                                                                  gossip/sfc202/contract.go on lines 4784..4821
                                                                                  gossip/sfc202/contract.go on lines 5921..5958
                                                                                  gossip/sfc202/contract.go on lines 6379..6416
                                                                                  gossip/sfc204/contract.go on lines 2520..2557
                                                                                  gossip/sfc204/contract.go on lines 3285..3322
                                                                                  gossip/sfc204/contract.go on lines 3584..3621
                                                                                  gossip/sfc204/contract.go on lines 3883..3920
                                                                                  gossip/sfc204/contract.go on lines 4627..4664
                                                                                  gossip/sfc204/contract.go on lines 5621..5658
                                                                                  gossip/sfc204/contract.go on lines 5918..5955

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) Stakers(opts *bind.CallOpts, arg0 *big.Int) (struct {
                                                                                      Status           *big.Int
                                                                                      CreatedEpoch     *big.Int
                                                                                      CreatedTime      *big.Int
                                                                                      DeactivatedEpoch *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 2 other locations - About 4 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 1332..1359
                                                                                  gossip/sfc204/contract.go on lines 1433..1460

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

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

                                                                                  func (it *ContractUpdatedStakerMetadataIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractClaimedDelegationRewardIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractDeactivatedDelegationIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractDeactivatedStakeIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractIncreasedDelegationIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractCreatedStakeIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractNetworkUpgradeActivatedIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractCreatedWithdrawRequestIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractLockingDelegationIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractUnstashedRewardsIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractUpdatedMinGasPriceIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractLockingStakeIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractOwnershipTransferredIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractPreparedToWithdrawDelegationIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractUpdatedStakeIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractWithdrawnStakeIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractUpdatedGasPowerAllocationRateIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractCreatedDelegationIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractUpdatedStakerSfcAddressIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractPreparedToWithdrawStakeIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractWithdrawnDelegationIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractClaimedValidatorRewardIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractIncreasedStakeIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractPartialWithdrawnByRequestIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractUpdatedBaseRewardPerSecIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractUpdatedDelegationIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5565..5602
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

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

                                                                                  func (it *ContractUpdatedOfflinePenaltyThresholdIterator) Next() bool {
                                                                                      // If the iterator failed, stop iterating
                                                                                      if it.fail != nil {
                                                                                          return false
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 76 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2095..2132
                                                                                  gossip/sfc110/contract.go on lines 2249..2286
                                                                                  gossip/sfc110/contract.go on lines 2404..2441
                                                                                  gossip/sfc110/contract.go on lines 2550..2587
                                                                                  gossip/sfc110/contract.go on lines 2703..2740
                                                                                  gossip/sfc110/contract.go on lines 2856..2893
                                                                                  gossip/sfc110/contract.go on lines 3020..3057
                                                                                  gossip/sfc110/contract.go on lines 3172..3209
                                                                                  gossip/sfc110/contract.go on lines 3315..3352
                                                                                  gossip/sfc110/contract.go on lines 3469..3506
                                                                                  gossip/sfc110/contract.go on lines 3614..3651
                                                                                  gossip/sfc110/contract.go on lines 3766..3803
                                                                                  gossip/sfc110/contract.go on lines 3930..3967
                                                                                  gossip/sfc110/contract.go on lines 4082..4119
                                                                                  gossip/sfc110/contract.go on lines 4225..4262
                                                                                  gossip/sfc110/contract.go on lines 4378..4415
                                                                                  gossip/sfc110/contract.go on lines 4511..4548
                                                                                  gossip/sfc110/contract.go on lines 4673..4710
                                                                                  gossip/sfc110/contract.go on lines 4807..4844
                                                                                  gossip/sfc110/contract.go on lines 4952..4989
                                                                                  gossip/sfc110/contract.go on lines 5095..5132
                                                                                  gossip/sfc110/contract.go on lines 5256..5293
                                                                                  gossip/sfc110/contract.go on lines 5409..5446
                                                                                  gossip/sfc202/contract.go on lines 2442..2479
                                                                                  gossip/sfc202/contract.go on lines 2597..2634
                                                                                  gossip/sfc202/contract.go on lines 2743..2780
                                                                                  gossip/sfc202/contract.go on lines 2896..2933
                                                                                  gossip/sfc202/contract.go on lines 3049..3086
                                                                                  gossip/sfc202/contract.go on lines 3213..3250
                                                                                  gossip/sfc202/contract.go on lines 3365..3402
                                                                                  gossip/sfc202/contract.go on lines 3508..3545
                                                                                  gossip/sfc202/contract.go on lines 3662..3699
                                                                                  gossip/sfc202/contract.go on lines 3807..3844
                                                                                  gossip/sfc202/contract.go on lines 3961..3998
                                                                                  gossip/sfc202/contract.go on lines 4106..4143
                                                                                  gossip/sfc202/contract.go on lines 4239..4276
                                                                                  gossip/sfc202/contract.go on lines 4391..4428
                                                                                  gossip/sfc202/contract.go on lines 4555..4592
                                                                                  gossip/sfc202/contract.go on lines 4707..4744
                                                                                  gossip/sfc202/contract.go on lines 4850..4887
                                                                                  gossip/sfc202/contract.go on lines 5003..5040
                                                                                  gossip/sfc202/contract.go on lines 5136..5173
                                                                                  gossip/sfc202/contract.go on lines 5298..5335
                                                                                  gossip/sfc202/contract.go on lines 5432..5469
                                                                                  gossip/sfc202/contract.go on lines 5699..5736
                                                                                  gossip/sfc202/contract.go on lines 5844..5881
                                                                                  gossip/sfc202/contract.go on lines 5987..6024
                                                                                  gossip/sfc202/contract.go on lines 6148..6185
                                                                                  gossip/sfc202/contract.go on lines 6301..6338
                                                                                  gossip/sfc204/contract.go on lines 2285..2322
                                                                                  gossip/sfc204/contract.go on lines 2440..2477
                                                                                  gossip/sfc204/contract.go on lines 2586..2623
                                                                                  gossip/sfc204/contract.go on lines 2739..2776
                                                                                  gossip/sfc204/contract.go on lines 2892..2929
                                                                                  gossip/sfc204/contract.go on lines 3056..3093
                                                                                  gossip/sfc204/contract.go on lines 3208..3245
                                                                                  gossip/sfc204/contract.go on lines 3351..3388
                                                                                  gossip/sfc204/contract.go on lines 3505..3542
                                                                                  gossip/sfc204/contract.go on lines 3650..3687
                                                                                  gossip/sfc204/contract.go on lines 3804..3841
                                                                                  gossip/sfc204/contract.go on lines 3949..3986
                                                                                  gossip/sfc204/contract.go on lines 4082..4119
                                                                                  gossip/sfc204/contract.go on lines 4234..4271
                                                                                  gossip/sfc204/contract.go on lines 4398..4435
                                                                                  gossip/sfc204/contract.go on lines 4550..4587
                                                                                  gossip/sfc204/contract.go on lines 4693..4730
                                                                                  gossip/sfc204/contract.go on lines 4846..4883
                                                                                  gossip/sfc204/contract.go on lines 4979..5016
                                                                                  gossip/sfc204/contract.go on lines 5141..5178
                                                                                  gossip/sfc204/contract.go on lines 5275..5312
                                                                                  gossip/sfc204/contract.go on lines 5408..5445
                                                                                  gossip/sfc204/contract.go on lines 5542..5579
                                                                                  gossip/sfc204/contract.go on lines 5687..5724
                                                                                  gossip/sfc204/contract.go on lines 5840..5877
                                                                                  gossip/sfcproxy/contract.go on lines 343..380
                                                                                  gossip/sfcproxy/contract.go on lines 477..514

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) EpochSnapshots(opts *bind.CallOpts, arg0 *big.Int) (struct {
                                                                                      EndTime                *big.Int
                                                                                      Duration               *big.Int
                                                                                      EpochFee               *big.Int
                                                                                      TotalBaseRewardWeight  *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 2 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 730..755
                                                                                  gossip/sfc204/contract.go on lines 621..646

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) WatchNetworkUpgradeActivated(opts *bind.WatchOpts, sink chan<- *ContractNetworkUpgradeActivated) (event.Subscription, error) {
                                                                                  
                                                                                      logs, sub, err := _Contract.contract.WatchLogs(opts, "NetworkUpgradeActivated")
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 12 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 4450..4482
                                                                                  gossip/sfc110/contract.go on lines 4746..4778
                                                                                  gossip/sfc202/contract.go on lines 5075..5107
                                                                                  gossip/sfc202/contract.go on lines 5371..5403
                                                                                  gossip/sfc202/contract.go on lines 5504..5536
                                                                                  gossip/sfc202/contract.go on lines 5638..5670
                                                                                  gossip/sfc204/contract.go on lines 4021..4053
                                                                                  gossip/sfc204/contract.go on lines 4918..4950
                                                                                  gossip/sfc204/contract.go on lines 5214..5246
                                                                                  gossip/sfc204/contract.go on lines 5347..5379
                                                                                  gossip/sfc204/contract.go on lines 5481..5513
                                                                                  gossip/sfcproxy/contract.go on lines 416..448

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) WatchUpdatedMinGasPrice(opts *bind.WatchOpts, sink chan<- *ContractUpdatedMinGasPrice) (event.Subscription, error) {
                                                                                  
                                                                                      logs, sub, err := _Contract.contract.WatchLogs(opts, "UpdatedMinGasPrice")
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 12 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 4450..4482
                                                                                  gossip/sfc110/contract.go on lines 4746..4778
                                                                                  gossip/sfc202/contract.go on lines 4178..4210
                                                                                  gossip/sfc202/contract.go on lines 5075..5107
                                                                                  gossip/sfc202/contract.go on lines 5371..5403
                                                                                  gossip/sfc202/contract.go on lines 5638..5670
                                                                                  gossip/sfc204/contract.go on lines 4021..4053
                                                                                  gossip/sfc204/contract.go on lines 4918..4950
                                                                                  gossip/sfc204/contract.go on lines 5214..5246
                                                                                  gossip/sfc204/contract.go on lines 5347..5379
                                                                                  gossip/sfc204/contract.go on lines 5481..5513
                                                                                  gossip/sfcproxy/contract.go on lines 416..448

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) WatchUpdatedBaseRewardPerSec(opts *bind.WatchOpts, sink chan<- *ContractUpdatedBaseRewardPerSec) (event.Subscription, error) {
                                                                                  
                                                                                      logs, sub, err := _Contract.contract.WatchLogs(opts, "UpdatedBaseRewardPerSec")
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 12 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 4450..4482
                                                                                  gossip/sfc110/contract.go on lines 4746..4778
                                                                                  gossip/sfc202/contract.go on lines 4178..4210
                                                                                  gossip/sfc202/contract.go on lines 5371..5403
                                                                                  gossip/sfc202/contract.go on lines 5504..5536
                                                                                  gossip/sfc202/contract.go on lines 5638..5670
                                                                                  gossip/sfc204/contract.go on lines 4021..4053
                                                                                  gossip/sfc204/contract.go on lines 4918..4950
                                                                                  gossip/sfc204/contract.go on lines 5214..5246
                                                                                  gossip/sfc204/contract.go on lines 5347..5379
                                                                                  gossip/sfc204/contract.go on lines 5481..5513
                                                                                  gossip/sfcproxy/contract.go on lines 416..448

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) WatchUpdatedGasPowerAllocationRate(opts *bind.WatchOpts, sink chan<- *ContractUpdatedGasPowerAllocationRate) (event.Subscription, error) {
                                                                                  
                                                                                      logs, sub, err := _Contract.contract.WatchLogs(opts, "UpdatedGasPowerAllocationRate")
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 12 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 4450..4482
                                                                                  gossip/sfc110/contract.go on lines 4746..4778
                                                                                  gossip/sfc202/contract.go on lines 4178..4210
                                                                                  gossip/sfc202/contract.go on lines 5075..5107
                                                                                  gossip/sfc202/contract.go on lines 5504..5536
                                                                                  gossip/sfc202/contract.go on lines 5638..5670
                                                                                  gossip/sfc204/contract.go on lines 4021..4053
                                                                                  gossip/sfc204/contract.go on lines 4918..4950
                                                                                  gossip/sfc204/contract.go on lines 5214..5246
                                                                                  gossip/sfc204/contract.go on lines 5347..5379
                                                                                  gossip/sfc204/contract.go on lines 5481..5513
                                                                                  gossip/sfcproxy/contract.go on lines 416..448

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) WatchUpdatedOfflinePenaltyThreshold(opts *bind.WatchOpts, sink chan<- *ContractUpdatedOfflinePenaltyThreshold) (event.Subscription, error) {
                                                                                  
                                                                                      logs, sub, err := _Contract.contract.WatchLogs(opts, "UpdatedOfflinePenaltyThreshold")
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 12 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 4450..4482
                                                                                  gossip/sfc110/contract.go on lines 4746..4778
                                                                                  gossip/sfc202/contract.go on lines 4178..4210
                                                                                  gossip/sfc202/contract.go on lines 5075..5107
                                                                                  gossip/sfc202/contract.go on lines 5371..5403
                                                                                  gossip/sfc202/contract.go on lines 5504..5536
                                                                                  gossip/sfc204/contract.go on lines 4021..4053
                                                                                  gossip/sfc204/contract.go on lines 4918..4950
                                                                                  gossip/sfc204/contract.go on lines 5214..5246
                                                                                  gossip/sfc204/contract.go on lines 5347..5379
                                                                                  gossip/sfc204/contract.go on lines 5481..5513
                                                                                  gossip/sfcproxy/contract.go on lines 416..448

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) Delegations(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (struct {
                                                                                      CreatedEpoch     *big.Int
                                                                                      CreatedTime      *big.Int
                                                                                      DeactivatedEpoch *big.Int
                                                                                      DeactivatedTime  *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 3 hrs to fix
                                                                                  gossip/sfc204/contract.go on lines 513..534

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractCaller) LegacyDelegations(opts *bind.CallOpts, arg0 common.Address) (struct {
                                                                                      CreatedEpoch     *big.Int
                                                                                      CreatedTime      *big.Int
                                                                                      DeactivatedEpoch *big.Int
                                                                                      DeactivatedTime  *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 622..643

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

                                                                                  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

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

                                                                                  func (_Contract *ContractFilterer) FilterUpdatedDelegation(opts *bind.FilterOpts, delegator []common.Address, oldStakerID []*big.Int, newStakerID []*big.Int) (*ContractUpdatedDelegationIterator, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 2 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 4574..4594
                                                                                  gossip/sfc204/contract.go on lines 5042..5062

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) FilterCreatedWithdrawRequest(opts *bind.FilterOpts, auth []common.Address, receiver []common.Address, stakerID []*big.Int) (*ContractCreatedWithdrawRequestIterator, error) {
                                                                                  
                                                                                      var authRule []interface{}
                                                                                      for _, authItem := range auth {
                                                                                          authRule = append(authRule, authItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2921..2941
                                                                                  gossip/sfc110/contract.go on lines 3831..3851
                                                                                  gossip/sfc202/contract.go on lines 4456..4476
                                                                                  gossip/sfc204/contract.go on lines 2957..2977
                                                                                  gossip/sfc204/contract.go on lines 4299..4319

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

                                                                                  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

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

                                                                                  func (_Contract *ContractFilterer) FilterUpdatedStakerSfcAddress(opts *bind.FilterOpts, stakerID []*big.Int, oldSfcAddress []common.Address, newSfcAddress []common.Address) (*ContractUpdatedStakerSfcAddressIterator, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 5157..5177

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) FilterPartialWithdrawnByRequest(opts *bind.FilterOpts, auth []common.Address, receiver []common.Address, stakerID []*big.Int) (*ContractPartialWithdrawnByRequestIterator, error) {
                                                                                  
                                                                                      var authRule []interface{}
                                                                                      for _, authItem := range auth {
                                                                                          authRule = append(authRule, authItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 3 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2921..2941
                                                                                  gossip/sfc110/contract.go on lines 3831..3851
                                                                                  gossip/sfc202/contract.go on lines 3114..3134
                                                                                  gossip/sfc204/contract.go on lines 2957..2977
                                                                                  gossip/sfc204/contract.go on lines 4299..4319

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

                                                                                  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

                                                                                  func (_Contract *ContractCaller) CalcDelegationRewards(opts *bind.CallOpts, delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                          ret1 = new(*big.Int)
                                                                                          ret2 = new(*big.Int)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 3 other locations - About 2 hrs to fix
                                                                                  gossip/sfc202/contract.go on lines 220..233
                                                                                  gossip/sfc204/contract.go on lines 203..216
                                                                                  gossip/sfc204/contract.go on lines 235..248

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

                                                                                  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

                                                                                  func (_Contract *ContractCaller) CalcDelegationCompoundRewards(opts *bind.CallOpts, delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                          ret1 = new(*big.Int)
                                                                                          ret2 = new(*big.Int)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 3 other locations - About 2 hrs to fix
                                                                                  gossip/sfc202/contract.go on lines 252..265
                                                                                  gossip/sfc204/contract.go on lines 203..216
                                                                                  gossip/sfc204/contract.go on lines 235..248

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) WithdrawalRequests(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (struct {
                                                                                      StakerID   *big.Int
                                                                                      Epoch      *big.Int
                                                                                      Time       *big.Int
                                                                                      Amount     *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 2 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 1530..1547
                                                                                  gossip/sfc204/contract.go on lines 1657..1674

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

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

                                                                                  func (_Contract *ContractFilterer) FilterCreatedDelegation(opts *bind.FilterOpts, delegator []common.Address, toStakerID []*big.Int) (*ContractCreatedDelegationIterator, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2158..2174
                                                                                  gossip/sfc110/contract.go on lines 2313..2329
                                                                                  gossip/sfc110/contract.go on lines 2612..2628
                                                                                  gossip/sfc110/contract.go on lines 3081..3097
                                                                                  gossip/sfc110/contract.go on lines 3378..3394
                                                                                  gossip/sfc110/contract.go on lines 3991..4007
                                                                                  gossip/sfc110/contract.go on lines 5318..5334
                                                                                  gossip/sfc202/contract.go on lines 2506..2522
                                                                                  gossip/sfc202/contract.go on lines 3274..3290
                                                                                  gossip/sfc202/contract.go on lines 3571..3587
                                                                                  gossip/sfc202/contract.go on lines 3870..3886
                                                                                  gossip/sfc202/contract.go on lines 4616..4632
                                                                                  gossip/sfc202/contract.go on lines 6210..6226
                                                                                  gossip/sfc204/contract.go on lines 2349..2365
                                                                                  gossip/sfc204/contract.go on lines 2648..2664
                                                                                  gossip/sfc204/contract.go on lines 3117..3133
                                                                                  gossip/sfc204/contract.go on lines 3414..3430
                                                                                  gossip/sfc204/contract.go on lines 3713..3729
                                                                                  gossip/sfc204/contract.go on lines 4459..4475
                                                                                  gossip/sfc204/contract.go on lines 5749..5765

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

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

                                                                                  func (_Contract *ContractFilterer) FilterClaimedDelegationReward(opts *bind.FilterOpts, from []common.Address, stakerID []*big.Int) (*ContractClaimedDelegationRewardIterator, error) {
                                                                                  
                                                                                      var fromRule []interface{}
                                                                                      for _, fromItem := range from {
                                                                                          fromRule = append(fromRule, fromItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2158..2174
                                                                                  gossip/sfc110/contract.go on lines 2313..2329
                                                                                  gossip/sfc110/contract.go on lines 2612..2628
                                                                                  gossip/sfc110/contract.go on lines 3081..3097
                                                                                  gossip/sfc110/contract.go on lines 3378..3394
                                                                                  gossip/sfc110/contract.go on lines 3991..4007
                                                                                  gossip/sfc110/contract.go on lines 5318..5334
                                                                                  gossip/sfc202/contract.go on lines 2805..2821
                                                                                  gossip/sfc202/contract.go on lines 3274..3290
                                                                                  gossip/sfc202/contract.go on lines 3571..3587
                                                                                  gossip/sfc202/contract.go on lines 3870..3886
                                                                                  gossip/sfc202/contract.go on lines 4616..4632
                                                                                  gossip/sfc202/contract.go on lines 6210..6226
                                                                                  gossip/sfc204/contract.go on lines 2349..2365
                                                                                  gossip/sfc204/contract.go on lines 2648..2664
                                                                                  gossip/sfc204/contract.go on lines 3117..3133
                                                                                  gossip/sfc204/contract.go on lines 3414..3430
                                                                                  gossip/sfc204/contract.go on lines 3713..3729
                                                                                  gossip/sfc204/contract.go on lines 4459..4475
                                                                                  gossip/sfc204/contract.go on lines 5749..5765

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

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

                                                                                  func (_Contract *ContractFilterer) FilterLockingDelegation(opts *bind.FilterOpts, delegator []common.Address, stakerID []*big.Int) (*ContractLockingDelegationIterator, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2158..2174
                                                                                  gossip/sfc110/contract.go on lines 2313..2329
                                                                                  gossip/sfc110/contract.go on lines 2612..2628
                                                                                  gossip/sfc110/contract.go on lines 3081..3097
                                                                                  gossip/sfc110/contract.go on lines 3378..3394
                                                                                  gossip/sfc110/contract.go on lines 3991..4007
                                                                                  gossip/sfc110/contract.go on lines 5318..5334
                                                                                  gossip/sfc202/contract.go on lines 2506..2522
                                                                                  gossip/sfc202/contract.go on lines 2805..2821
                                                                                  gossip/sfc202/contract.go on lines 3274..3290
                                                                                  gossip/sfc202/contract.go on lines 3571..3587
                                                                                  gossip/sfc202/contract.go on lines 4616..4632
                                                                                  gossip/sfc202/contract.go on lines 6210..6226
                                                                                  gossip/sfc204/contract.go on lines 2349..2365
                                                                                  gossip/sfc204/contract.go on lines 2648..2664
                                                                                  gossip/sfc204/contract.go on lines 3117..3133
                                                                                  gossip/sfc204/contract.go on lines 3414..3430
                                                                                  gossip/sfc204/contract.go on lines 3713..3729
                                                                                  gossip/sfc204/contract.go on lines 4459..4475
                                                                                  gossip/sfc204/contract.go on lines 5749..5765

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

                                                                                  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

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

                                                                                  func (_Contract *ContractFilterer) FilterCreatedStake(opts *bind.FilterOpts, stakerID []*big.Int, dagSfcAddress []common.Address) (*ContractCreatedStakeIterator, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 2 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2765..2781
                                                                                  gossip/sfc204/contract.go on lines 2801..2817

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

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

                                                                                  func (_Contract *ContractFilterer) FilterWithdrawnDelegation(opts *bind.FilterOpts, delegator []common.Address, toStakerID []*big.Int) (*ContractWithdrawnDelegationIterator, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2158..2174
                                                                                  gossip/sfc110/contract.go on lines 2313..2329
                                                                                  gossip/sfc110/contract.go on lines 2612..2628
                                                                                  gossip/sfc110/contract.go on lines 3081..3097
                                                                                  gossip/sfc110/contract.go on lines 3378..3394
                                                                                  gossip/sfc110/contract.go on lines 3991..4007
                                                                                  gossip/sfc110/contract.go on lines 5318..5334
                                                                                  gossip/sfc202/contract.go on lines 2506..2522
                                                                                  gossip/sfc202/contract.go on lines 2805..2821
                                                                                  gossip/sfc202/contract.go on lines 3274..3290
                                                                                  gossip/sfc202/contract.go on lines 3571..3587
                                                                                  gossip/sfc202/contract.go on lines 3870..3886
                                                                                  gossip/sfc202/contract.go on lines 4616..4632
                                                                                  gossip/sfc204/contract.go on lines 2349..2365
                                                                                  gossip/sfc204/contract.go on lines 2648..2664
                                                                                  gossip/sfc204/contract.go on lines 3117..3133
                                                                                  gossip/sfc204/contract.go on lines 3414..3430
                                                                                  gossip/sfc204/contract.go on lines 3713..3729
                                                                                  gossip/sfc204/contract.go on lines 4459..4475
                                                                                  gossip/sfc204/contract.go on lines 5749..5765

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

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

                                                                                  func (_Contract *ContractFilterer) FilterDeactivatedDelegation(opts *bind.FilterOpts, delegator []common.Address, stakerID []*big.Int) (*ContractDeactivatedDelegationIterator, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2158..2174
                                                                                  gossip/sfc110/contract.go on lines 2313..2329
                                                                                  gossip/sfc110/contract.go on lines 2612..2628
                                                                                  gossip/sfc110/contract.go on lines 3081..3097
                                                                                  gossip/sfc110/contract.go on lines 3378..3394
                                                                                  gossip/sfc110/contract.go on lines 3991..4007
                                                                                  gossip/sfc110/contract.go on lines 5318..5334
                                                                                  gossip/sfc202/contract.go on lines 2506..2522
                                                                                  gossip/sfc202/contract.go on lines 2805..2821
                                                                                  gossip/sfc202/contract.go on lines 3571..3587
                                                                                  gossip/sfc202/contract.go on lines 3870..3886
                                                                                  gossip/sfc202/contract.go on lines 4616..4632
                                                                                  gossip/sfc202/contract.go on lines 6210..6226
                                                                                  gossip/sfc204/contract.go on lines 2349..2365
                                                                                  gossip/sfc204/contract.go on lines 2648..2664
                                                                                  gossip/sfc204/contract.go on lines 3117..3133
                                                                                  gossip/sfc204/contract.go on lines 3414..3430
                                                                                  gossip/sfc204/contract.go on lines 3713..3729
                                                                                  gossip/sfc204/contract.go on lines 4459..4475
                                                                                  gossip/sfc204/contract.go on lines 5749..5765

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

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

                                                                                  func (_Contract *ContractFilterer) FilterIncreasedDelegation(opts *bind.FilterOpts, delegator []common.Address, stakerID []*big.Int) (*ContractIncreasedDelegationIterator, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2158..2174
                                                                                  gossip/sfc110/contract.go on lines 2313..2329
                                                                                  gossip/sfc110/contract.go on lines 2612..2628
                                                                                  gossip/sfc110/contract.go on lines 3081..3097
                                                                                  gossip/sfc110/contract.go on lines 3378..3394
                                                                                  gossip/sfc110/contract.go on lines 3991..4007
                                                                                  gossip/sfc110/contract.go on lines 5318..5334
                                                                                  gossip/sfc202/contract.go on lines 2506..2522
                                                                                  gossip/sfc202/contract.go on lines 2805..2821
                                                                                  gossip/sfc202/contract.go on lines 3274..3290
                                                                                  gossip/sfc202/contract.go on lines 3870..3886
                                                                                  gossip/sfc202/contract.go on lines 4616..4632
                                                                                  gossip/sfc202/contract.go on lines 6210..6226
                                                                                  gossip/sfc204/contract.go on lines 2349..2365
                                                                                  gossip/sfc204/contract.go on lines 2648..2664
                                                                                  gossip/sfc204/contract.go on lines 3117..3133
                                                                                  gossip/sfc204/contract.go on lines 3414..3430
                                                                                  gossip/sfc204/contract.go on lines 3713..3729
                                                                                  gossip/sfc204/contract.go on lines 4459..4475
                                                                                  gossip/sfc204/contract.go on lines 5749..5765

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

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

                                                                                  func (_Contract *ContractFilterer) FilterPreparedToWithdrawDelegation(opts *bind.FilterOpts, delegator []common.Address, stakerID []*big.Int) (*ContractPreparedToWithdrawDelegationIterator, error) {
                                                                                  
                                                                                      var delegatorRule []interface{}
                                                                                      for _, delegatorItem := range delegator {
                                                                                          delegatorRule = append(delegatorRule, delegatorItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 20 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 2158..2174
                                                                                  gossip/sfc110/contract.go on lines 2313..2329
                                                                                  gossip/sfc110/contract.go on lines 2612..2628
                                                                                  gossip/sfc110/contract.go on lines 3081..3097
                                                                                  gossip/sfc110/contract.go on lines 3378..3394
                                                                                  gossip/sfc110/contract.go on lines 3991..4007
                                                                                  gossip/sfc110/contract.go on lines 5318..5334
                                                                                  gossip/sfc202/contract.go on lines 2506..2522
                                                                                  gossip/sfc202/contract.go on lines 2805..2821
                                                                                  gossip/sfc202/contract.go on lines 3274..3290
                                                                                  gossip/sfc202/contract.go on lines 3571..3587
                                                                                  gossip/sfc202/contract.go on lines 3870..3886
                                                                                  gossip/sfc202/contract.go on lines 6210..6226
                                                                                  gossip/sfc204/contract.go on lines 2349..2365
                                                                                  gossip/sfc204/contract.go on lines 2648..2664
                                                                                  gossip/sfc204/contract.go on lines 3117..3133
                                                                                  gossip/sfc204/contract.go on lines 3414..3430
                                                                                  gossip/sfc204/contract.go on lines 3713..3729
                                                                                  gossip/sfc204/contract.go on lines 4459..4475
                                                                                  gossip/sfc204/contract.go on lines 5749..5765

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractOwnershipTransferredIterator, error) {
                                                                                  
                                                                                      var previousOwnerRule []interface{}
                                                                                      for _, previousOwnerItem := range previousOwner {
                                                                                          previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 3675..3691
                                                                                  gossip/sfc110/contract.go on lines 4287..4303
                                                                                  gossip/sfc202/contract.go on lines 4912..4928
                                                                                  gossip/sfc204/contract.go on lines 4143..4159
                                                                                  gossip/sfc204/contract.go on lines 4755..4771

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) FilterUnstashedRewards(opts *bind.FilterOpts, auth []common.Address, receiver []common.Address) (*ContractUnstashedRewardsIterator, error) {
                                                                                  
                                                                                      var authRule []interface{}
                                                                                      for _, authItem := range auth {
                                                                                          authRule = append(authRule, authItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 3675..3691
                                                                                  gossip/sfc110/contract.go on lines 4287..4303
                                                                                  gossip/sfc202/contract.go on lines 4300..4316
                                                                                  gossip/sfc204/contract.go on lines 4143..4159
                                                                                  gossip/sfc204/contract.go on lines 4755..4771

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

                                                                                  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

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

                                                                                  func DeployContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Contract, error) {
                                                                                      parsed, err := abi.JSON(strings.NewReader(ContractABI))
                                                                                      if err != nil {
                                                                                          return common.Address{}, nil, nil, err
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 2 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 36..47
                                                                                  gossip/sfcproxy/contract.go on lines 36..47

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) EpochValidator(opts *bind.CallOpts, e *big.Int, v *big.Int) (struct {
                                                                                      StakeAmount      *big.Int
                                                                                      DelegatedMe      *big.Int
                                                                                      BaseRewardWeight *big.Int
                                                                                      TxRewardWeight   *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 2 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 794..809
                                                                                  gossip/sfc204/contract.go on lines 685..700

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractCaller) CalcValidatorRewards(opts *bind.CallOpts, stakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                          ret1 = new(*big.Int)
                                                                                          ret2 = new(*big.Int)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 4 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 460..473
                                                                                  gossip/sfc202/contract.go on lines 284..297
                                                                                  gossip/sfc204/contract.go on lines 267..280
                                                                                  gossip/sfc204/contract.go on lines 325..338

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

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractCaller) CalcValidatorCompoundRewards(opts *bind.CallOpts, stakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                          ret1 = new(*big.Int)
                                                                                          ret2 = new(*big.Int)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 4 other locations - About 2 hrs to fix
                                                                                  gossip/sfc110/contract.go on lines 460..473
                                                                                  gossip/sfc202/contract.go on lines 316..329
                                                                                  gossip/sfc204/contract.go on lines 267..280
                                                                                  gossip/sfc204/contract.go on lines 325..338

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) LockedDelegations(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (struct {
                                                                                      FromEpoch *big.Int
                                                                                      EndTime   *big.Int
                                                                                      Duration  *big.Int
                                                                                  }, error) {
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 1 hr to fix
                                                                                  gossip/sfc204/contract.go on lines 911..924

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

                                                                                  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

                                                                                  func (_Contract *ContractSession) Stakers(arg0 *big.Int) (struct {
                                                                                      Status           *big.Int
                                                                                      CreatedEpoch     *big.Int
                                                                                      CreatedTime      *big.Int
                                                                                      DeactivatedEpoch *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 1364..1377
                                                                                  gossip/sfc110/contract.go on lines 1382..1395
                                                                                  gossip/sfc202/contract.go on lines 1556..1569
                                                                                  gossip/sfc204/contract.go on lines 1465..1478
                                                                                  gossip/sfc204/contract.go on lines 1483..1496

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

                                                                                  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

                                                                                  func (_Contract *ContractCallerSession) Stakers(arg0 *big.Int) (struct {
                                                                                      Status           *big.Int
                                                                                      CreatedEpoch     *big.Int
                                                                                      CreatedTime      *big.Int
                                                                                      DeactivatedEpoch *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 1364..1377
                                                                                  gossip/sfc110/contract.go on lines 1382..1395
                                                                                  gossip/sfc202/contract.go on lines 1538..1551
                                                                                  gossip/sfc204/contract.go on lines 1465..1478
                                                                                  gossip/sfc204/contract.go on lines 1483..1496

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

                                                                                  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

                                                                                  func (_Contract *ContractSession) EpochSnapshots(arg0 *big.Int) (struct {
                                                                                      EndTime                *big.Int
                                                                                      Duration               *big.Int
                                                                                      EpochFee               *big.Int
                                                                                      TotalBaseRewardWeight  *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 760..772
                                                                                  gossip/sfc110/contract.go on lines 777..789
                                                                                  gossip/sfc202/contract.go on lines 659..671
                                                                                  gossip/sfc204/contract.go on lines 651..663
                                                                                  gossip/sfc204/contract.go on lines 668..680

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

                                                                                  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

                                                                                  func (_Contract *ContractCallerSession) EpochSnapshots(arg0 *big.Int) (struct {
                                                                                      EndTime                *big.Int
                                                                                      Duration               *big.Int
                                                                                      EpochFee               *big.Int
                                                                                      TotalBaseRewardWeight  *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 760..772
                                                                                  gossip/sfc110/contract.go on lines 777..789
                                                                                  gossip/sfc202/contract.go on lines 642..654
                                                                                  gossip/sfc204/contract.go on lines 651..663
                                                                                  gossip/sfc204/contract.go on lines 668..680

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) LockedStakes(opts *bind.CallOpts, arg0 *big.Int) (struct {
                                                                                      FromEpoch *big.Int
                                                                                      EndTime   *big.Int
                                                                                      Duration  *big.Int
                                                                                  }, error) {
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 1 hr to fix
                                                                                  gossip/sfc204/contract.go on lines 951..964

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

                                                                                  func (_Contract *ContractFilterer) FilterPreparedToWithdrawStake(opts *bind.FilterOpts, stakerID []*big.Int) (*ContractPreparedToWithdrawStakeIterator, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 2467..2479
                                                                                  gossip/sfc110/contract.go on lines 3232..3244
                                                                                  gossip/sfc110/contract.go on lines 3531..3543
                                                                                  gossip/sfc110/contract.go on lines 4142..4154
                                                                                  gossip/sfc110/contract.go on lines 4869..4881
                                                                                  gossip/sfc110/contract.go on lines 5012..5024
                                                                                  gossip/sfc110/contract.go on lines 5470..5482
                                                                                  gossip/sfc202/contract.go on lines 2660..2672
                                                                                  gossip/sfc202/contract.go on lines 3425..3437
                                                                                  gossip/sfc202/contract.go on lines 3724..3736
                                                                                  gossip/sfc202/contract.go on lines 4023..4035
                                                                                  gossip/sfc202/contract.go on lines 5761..5773
                                                                                  gossip/sfc202/contract.go on lines 5904..5916
                                                                                  gossip/sfc202/contract.go on lines 6362..6374
                                                                                  gossip/sfc204/contract.go on lines 2503..2515
                                                                                  gossip/sfc204/contract.go on lines 3268..3280
                                                                                  gossip/sfc204/contract.go on lines 3567..3579
                                                                                  gossip/sfc204/contract.go on lines 3866..3878
                                                                                  gossip/sfc204/contract.go on lines 4610..4622
                                                                                  gossip/sfc204/contract.go on lines 5604..5616
                                                                                  gossip/sfc204/contract.go on lines 5901..5913

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

                                                                                  func (_Contract *ContractFilterer) FilterUpdatedStakerMetadata(opts *bind.FilterOpts, stakerID []*big.Int) (*ContractUpdatedStakerMetadataIterator, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 2467..2479
                                                                                  gossip/sfc110/contract.go on lines 3232..3244
                                                                                  gossip/sfc110/contract.go on lines 3531..3543
                                                                                  gossip/sfc110/contract.go on lines 4142..4154
                                                                                  gossip/sfc110/contract.go on lines 4869..4881
                                                                                  gossip/sfc110/contract.go on lines 5012..5024
                                                                                  gossip/sfc110/contract.go on lines 5470..5482
                                                                                  gossip/sfc202/contract.go on lines 2660..2672
                                                                                  gossip/sfc202/contract.go on lines 3425..3437
                                                                                  gossip/sfc202/contract.go on lines 3724..3736
                                                                                  gossip/sfc202/contract.go on lines 4023..4035
                                                                                  gossip/sfc202/contract.go on lines 4767..4779
                                                                                  gossip/sfc202/contract.go on lines 5761..5773
                                                                                  gossip/sfc202/contract.go on lines 6362..6374
                                                                                  gossip/sfc204/contract.go on lines 2503..2515
                                                                                  gossip/sfc204/contract.go on lines 3268..3280
                                                                                  gossip/sfc204/contract.go on lines 3567..3579
                                                                                  gossip/sfc204/contract.go on lines 3866..3878
                                                                                  gossip/sfc204/contract.go on lines 4610..4622
                                                                                  gossip/sfc204/contract.go on lines 5604..5616
                                                                                  gossip/sfc204/contract.go on lines 5901..5913

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

                                                                                  func (_Contract *ContractFilterer) FilterUpdatedStake(opts *bind.FilterOpts, stakerID []*big.Int) (*ContractUpdatedStakeIterator, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 2467..2479
                                                                                  gossip/sfc110/contract.go on lines 3232..3244
                                                                                  gossip/sfc110/contract.go on lines 3531..3543
                                                                                  gossip/sfc110/contract.go on lines 4142..4154
                                                                                  gossip/sfc110/contract.go on lines 4869..4881
                                                                                  gossip/sfc110/contract.go on lines 5012..5024
                                                                                  gossip/sfc110/contract.go on lines 5470..5482
                                                                                  gossip/sfc202/contract.go on lines 2660..2672
                                                                                  gossip/sfc202/contract.go on lines 3425..3437
                                                                                  gossip/sfc202/contract.go on lines 3724..3736
                                                                                  gossip/sfc202/contract.go on lines 4023..4035
                                                                                  gossip/sfc202/contract.go on lines 4767..4779
                                                                                  gossip/sfc202/contract.go on lines 5904..5916
                                                                                  gossip/sfc202/contract.go on lines 6362..6374
                                                                                  gossip/sfc204/contract.go on lines 2503..2515
                                                                                  gossip/sfc204/contract.go on lines 3268..3280
                                                                                  gossip/sfc204/contract.go on lines 3567..3579
                                                                                  gossip/sfc204/contract.go on lines 3866..3878
                                                                                  gossip/sfc204/contract.go on lines 4610..4622
                                                                                  gossip/sfc204/contract.go on lines 5604..5616
                                                                                  gossip/sfc204/contract.go on lines 5901..5913

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

                                                                                  func (_Contract *ContractFilterer) FilterClaimedValidatorReward(opts *bind.FilterOpts, stakerID []*big.Int) (*ContractClaimedValidatorRewardIterator, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 2467..2479
                                                                                  gossip/sfc110/contract.go on lines 3232..3244
                                                                                  gossip/sfc110/contract.go on lines 3531..3543
                                                                                  gossip/sfc110/contract.go on lines 4142..4154
                                                                                  gossip/sfc110/contract.go on lines 4869..4881
                                                                                  gossip/sfc110/contract.go on lines 5012..5024
                                                                                  gossip/sfc110/contract.go on lines 5470..5482
                                                                                  gossip/sfc202/contract.go on lines 3425..3437
                                                                                  gossip/sfc202/contract.go on lines 3724..3736
                                                                                  gossip/sfc202/contract.go on lines 4023..4035
                                                                                  gossip/sfc202/contract.go on lines 4767..4779
                                                                                  gossip/sfc202/contract.go on lines 5761..5773
                                                                                  gossip/sfc202/contract.go on lines 5904..5916
                                                                                  gossip/sfc202/contract.go on lines 6362..6374
                                                                                  gossip/sfc204/contract.go on lines 2503..2515
                                                                                  gossip/sfc204/contract.go on lines 3268..3280
                                                                                  gossip/sfc204/contract.go on lines 3567..3579
                                                                                  gossip/sfc204/contract.go on lines 3866..3878
                                                                                  gossip/sfc204/contract.go on lines 4610..4622
                                                                                  gossip/sfc204/contract.go on lines 5604..5616
                                                                                  gossip/sfc204/contract.go on lines 5901..5913

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

                                                                                  func (_Contract *ContractFilterer) FilterDeactivatedStake(opts *bind.FilterOpts, stakerID []*big.Int) (*ContractDeactivatedStakeIterator, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 2467..2479
                                                                                  gossip/sfc110/contract.go on lines 3232..3244
                                                                                  gossip/sfc110/contract.go on lines 3531..3543
                                                                                  gossip/sfc110/contract.go on lines 4142..4154
                                                                                  gossip/sfc110/contract.go on lines 4869..4881
                                                                                  gossip/sfc110/contract.go on lines 5012..5024
                                                                                  gossip/sfc110/contract.go on lines 5470..5482
                                                                                  gossip/sfc202/contract.go on lines 2660..2672
                                                                                  gossip/sfc202/contract.go on lines 3724..3736
                                                                                  gossip/sfc202/contract.go on lines 4023..4035
                                                                                  gossip/sfc202/contract.go on lines 4767..4779
                                                                                  gossip/sfc202/contract.go on lines 5761..5773
                                                                                  gossip/sfc202/contract.go on lines 5904..5916
                                                                                  gossip/sfc202/contract.go on lines 6362..6374
                                                                                  gossip/sfc204/contract.go on lines 2503..2515
                                                                                  gossip/sfc204/contract.go on lines 3268..3280
                                                                                  gossip/sfc204/contract.go on lines 3567..3579
                                                                                  gossip/sfc204/contract.go on lines 3866..3878
                                                                                  gossip/sfc204/contract.go on lines 4610..4622
                                                                                  gossip/sfc204/contract.go on lines 5604..5616
                                                                                  gossip/sfc204/contract.go on lines 5901..5913

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

                                                                                  func (_Contract *ContractFilterer) FilterIncreasedStake(opts *bind.FilterOpts, stakerID []*big.Int) (*ContractIncreasedStakeIterator, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 2467..2479
                                                                                  gossip/sfc110/contract.go on lines 3232..3244
                                                                                  gossip/sfc110/contract.go on lines 3531..3543
                                                                                  gossip/sfc110/contract.go on lines 4142..4154
                                                                                  gossip/sfc110/contract.go on lines 4869..4881
                                                                                  gossip/sfc110/contract.go on lines 5012..5024
                                                                                  gossip/sfc110/contract.go on lines 5470..5482
                                                                                  gossip/sfc202/contract.go on lines 2660..2672
                                                                                  gossip/sfc202/contract.go on lines 3425..3437
                                                                                  gossip/sfc202/contract.go on lines 4023..4035
                                                                                  gossip/sfc202/contract.go on lines 4767..4779
                                                                                  gossip/sfc202/contract.go on lines 5761..5773
                                                                                  gossip/sfc202/contract.go on lines 5904..5916
                                                                                  gossip/sfc202/contract.go on lines 6362..6374
                                                                                  gossip/sfc204/contract.go on lines 2503..2515
                                                                                  gossip/sfc204/contract.go on lines 3268..3280
                                                                                  gossip/sfc204/contract.go on lines 3567..3579
                                                                                  gossip/sfc204/contract.go on lines 3866..3878
                                                                                  gossip/sfc204/contract.go on lines 4610..4622
                                                                                  gossip/sfc204/contract.go on lines 5604..5616
                                                                                  gossip/sfc204/contract.go on lines 5901..5913

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

                                                                                  func (_Contract *ContractFilterer) FilterLockingStake(opts *bind.FilterOpts, stakerID []*big.Int) (*ContractLockingStakeIterator, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 2467..2479
                                                                                  gossip/sfc110/contract.go on lines 3232..3244
                                                                                  gossip/sfc110/contract.go on lines 3531..3543
                                                                                  gossip/sfc110/contract.go on lines 4142..4154
                                                                                  gossip/sfc110/contract.go on lines 4869..4881
                                                                                  gossip/sfc110/contract.go on lines 5012..5024
                                                                                  gossip/sfc110/contract.go on lines 5470..5482
                                                                                  gossip/sfc202/contract.go on lines 2660..2672
                                                                                  gossip/sfc202/contract.go on lines 3425..3437
                                                                                  gossip/sfc202/contract.go on lines 3724..3736
                                                                                  gossip/sfc202/contract.go on lines 4767..4779
                                                                                  gossip/sfc202/contract.go on lines 5761..5773
                                                                                  gossip/sfc202/contract.go on lines 5904..5916
                                                                                  gossip/sfc202/contract.go on lines 6362..6374
                                                                                  gossip/sfc204/contract.go on lines 2503..2515
                                                                                  gossip/sfc204/contract.go on lines 3268..3280
                                                                                  gossip/sfc204/contract.go on lines 3567..3579
                                                                                  gossip/sfc204/contract.go on lines 3866..3878
                                                                                  gossip/sfc204/contract.go on lines 4610..4622
                                                                                  gossip/sfc204/contract.go on lines 5604..5616
                                                                                  gossip/sfc204/contract.go on lines 5901..5913

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

                                                                                  func (_Contract *ContractFilterer) FilterWithdrawnStake(opts *bind.FilterOpts, stakerID []*big.Int) (*ContractWithdrawnStakeIterator, error) {
                                                                                  
                                                                                      var stakerIDRule []interface{}
                                                                                      for _, stakerIDItem := range stakerID {
                                                                                          stakerIDRule = append(stakerIDRule, stakerIDItem)
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 21 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 2467..2479
                                                                                  gossip/sfc110/contract.go on lines 3232..3244
                                                                                  gossip/sfc110/contract.go on lines 3531..3543
                                                                                  gossip/sfc110/contract.go on lines 4142..4154
                                                                                  gossip/sfc110/contract.go on lines 4869..4881
                                                                                  gossip/sfc110/contract.go on lines 5012..5024
                                                                                  gossip/sfc110/contract.go on lines 5470..5482
                                                                                  gossip/sfc202/contract.go on lines 2660..2672
                                                                                  gossip/sfc202/contract.go on lines 3425..3437
                                                                                  gossip/sfc202/contract.go on lines 3724..3736
                                                                                  gossip/sfc202/contract.go on lines 4023..4035
                                                                                  gossip/sfc202/contract.go on lines 4767..4779
                                                                                  gossip/sfc202/contract.go on lines 5761..5773
                                                                                  gossip/sfc202/contract.go on lines 5904..5916
                                                                                  gossip/sfc204/contract.go on lines 2503..2515
                                                                                  gossip/sfc204/contract.go on lines 3268..3280
                                                                                  gossip/sfc204/contract.go on lines 3567..3579
                                                                                  gossip/sfc204/contract.go on lines 3866..3878
                                                                                  gossip/sfc204/contract.go on lines 4610..4622
                                                                                  gossip/sfc204/contract.go on lines 5604..5616
                                                                                  gossip/sfc204/contract.go on lines 5901..5913

                                                                                  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

                                                                                  func (_Contract *ContractSession) Delegations(arg0 common.Address, arg1 *big.Int) (struct {
                                                                                      CreatedEpoch     *big.Int
                                                                                      CreatedTime      *big.Int
                                                                                      DeactivatedEpoch *big.Int
                                                                                      DeactivatedTime  *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 3 other locations - About 1 hr to fix
                                                                                  gossip/sfc202/contract.go on lines 545..555
                                                                                  gossip/sfc204/contract.go on lines 539..549
                                                                                  gossip/sfc204/contract.go on lines 554..564

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

                                                                                  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

                                                                                  func (_Contract *ContractCallerSession) Delegations(arg0 common.Address, arg1 *big.Int) (struct {
                                                                                      CreatedEpoch     *big.Int
                                                                                      CreatedTime      *big.Int
                                                                                      DeactivatedEpoch *big.Int
                                                                                      DeactivatedTime  *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 3 other locations - About 1 hr to fix
                                                                                  gossip/sfc202/contract.go on lines 530..540
                                                                                  gossip/sfc204/contract.go on lines 539..549
                                                                                  gossip/sfc204/contract.go on lines 554..564

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

                                                                                  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

                                                                                  func (_Contract *ContractSession) LegacyDelegations(arg0 common.Address) (struct {
                                                                                      CreatedEpoch     *big.Int
                                                                                      CreatedTime      *big.Int
                                                                                      DeactivatedEpoch *big.Int
                                                                                      DeactivatedTime  *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 3 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 648..658
                                                                                  gossip/sfc110/contract.go on lines 663..673
                                                                                  gossip/sfc202/contract.go on lines 943..953

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

                                                                                  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

                                                                                  func (_Contract *ContractCallerSession) LegacyDelegations(arg0 common.Address) (struct {
                                                                                      CreatedEpoch     *big.Int
                                                                                      CreatedTime      *big.Int
                                                                                      DeactivatedEpoch *big.Int
                                                                                      DeactivatedTime  *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 3 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 648..658
                                                                                  gossip/sfc110/contract.go on lines 663..673
                                                                                  gossip/sfc202/contract.go on lines 928..938

                                                                                  Duplicated Code

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

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

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

                                                                                  Tuning

                                                                                  This issue has a mass of 147.

                                                                                  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

                                                                                  func (_Contract *ContractSession) WithdrawalRequests(arg0 common.Address, arg1 *big.Int) (struct {
                                                                                      StakerID   *big.Int
                                                                                      Epoch      *big.Int
                                                                                      Time       *big.Int
                                                                                      Amount     *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 1552..1560
                                                                                  gossip/sfc110/contract.go on lines 1565..1573
                                                                                  gossip/sfc202/contract.go on lines 1765..1773
                                                                                  gossip/sfc204/contract.go on lines 1679..1687
                                                                                  gossip/sfc204/contract.go on lines 1692..1700

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

                                                                                  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

                                                                                  func (_Contract *ContractCallerSession) WithdrawalRequests(arg0 common.Address, arg1 *big.Int) (struct {
                                                                                      StakerID   *big.Int
                                                                                      Epoch      *big.Int
                                                                                      Time       *big.Int
                                                                                      Amount     *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 1552..1560
                                                                                  gossip/sfc110/contract.go on lines 1565..1573
                                                                                  gossip/sfc202/contract.go on lines 1752..1760
                                                                                  gossip/sfc204/contract.go on lines 1679..1687
                                                                                  gossip/sfc204/contract.go on lines 1692..1700

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

                                                                                  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

                                                                                  func (_Contract *ContractCallerSession) EpochValidator(e *big.Int, v *big.Int) (struct {
                                                                                      StakeAmount      *big.Int
                                                                                      DelegatedMe      *big.Int
                                                                                      BaseRewardWeight *big.Int
                                                                                      TxRewardWeight   *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 814..821
                                                                                  gossip/sfc110/contract.go on lines 826..833
                                                                                  gossip/sfc202/contract.go on lines 696..703
                                                                                  gossip/sfc204/contract.go on lines 705..712
                                                                                  gossip/sfc204/contract.go on lines 717..724

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

                                                                                  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

                                                                                  func (_Contract *ContractSession) EpochValidator(e *big.Int, v *big.Int) (struct {
                                                                                      StakeAmount      *big.Int
                                                                                      DelegatedMe      *big.Int
                                                                                      BaseRewardWeight *big.Int
                                                                                      TxRewardWeight   *big.Int
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 1 hr to fix
                                                                                  gossip/sfc110/contract.go on lines 814..821
                                                                                  gossip/sfc110/contract.go on lines 826..833
                                                                                  gossip/sfc202/contract.go on lines 708..715
                                                                                  gossip/sfc204/contract.go on lines 705..712
                                                                                  gossip/sfc204/contract.go on lines 717..724

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

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

                                                                                  func (_Contract *ContractSession) CalcDelegationRewards(delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      return _Contract.Contract.CalcDelegationRewards(&_Contract.CallOpts, delegator, toStakerID, _fromEpoch, maxEpochs)
                                                                                  }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 7 other locations - About 55 mins to fix
                                                                                  gossip/sfc202/contract.go on lines 238..240
                                                                                  gossip/sfc202/contract.go on lines 245..247
                                                                                  gossip/sfc202/contract.go on lines 277..279
                                                                                  gossip/sfc204/contract.go on lines 221..223
                                                                                  gossip/sfc204/contract.go on lines 228..230
                                                                                  gossip/sfc204/contract.go on lines 253..255
                                                                                  gossip/sfc204/contract.go on lines 260..262

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

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

                                                                                  func (_Contract *ContractSession) CalcDelegationCompoundRewards(delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      return _Contract.Contract.CalcDelegationCompoundRewards(&_Contract.CallOpts, delegator, toStakerID, _fromEpoch, maxEpochs)
                                                                                  }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 7 other locations - About 55 mins to fix
                                                                                  gossip/sfc202/contract.go on lines 245..247
                                                                                  gossip/sfc202/contract.go on lines 270..272
                                                                                  gossip/sfc202/contract.go on lines 277..279
                                                                                  gossip/sfc204/contract.go on lines 221..223
                                                                                  gossip/sfc204/contract.go on lines 228..230
                                                                                  gossip/sfc204/contract.go on lines 253..255
                                                                                  gossip/sfc204/contract.go on lines 260..262

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

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

                                                                                  func (_Contract *ContractCallerSession) CalcDelegationRewards(delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      return _Contract.Contract.CalcDelegationRewards(&_Contract.CallOpts, delegator, toStakerID, _fromEpoch, maxEpochs)
                                                                                  }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 7 other locations - About 55 mins to fix
                                                                                  gossip/sfc202/contract.go on lines 238..240
                                                                                  gossip/sfc202/contract.go on lines 245..247
                                                                                  gossip/sfc202/contract.go on lines 270..272
                                                                                  gossip/sfc204/contract.go on lines 221..223
                                                                                  gossip/sfc204/contract.go on lines 228..230
                                                                                  gossip/sfc204/contract.go on lines 253..255
                                                                                  gossip/sfc204/contract.go on lines 260..262

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

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

                                                                                  func (_Contract *ContractCallerSession) CalcDelegationCompoundRewards(delegator common.Address, toStakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      return _Contract.Contract.CalcDelegationCompoundRewards(&_Contract.CallOpts, delegator, toStakerID, _fromEpoch, maxEpochs)
                                                                                  }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 7 other locations - About 55 mins to fix
                                                                                  gossip/sfc202/contract.go on lines 238..240
                                                                                  gossip/sfc202/contract.go on lines 270..272
                                                                                  gossip/sfc202/contract.go on lines 277..279
                                                                                  gossip/sfc204/contract.go on lines 221..223
                                                                                  gossip/sfc204/contract.go on lines 228..230
                                                                                  gossip/sfc204/contract.go on lines 253..255
                                                                                  gossip/sfc204/contract.go on lines 260..262

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

                                                                                  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

                                                                                  func (_Contract *ContractCaller) RewardsStash(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 6 other locations - About 55 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 1150..1157
                                                                                  gossip/sfc202/contract.go on lines 426..433
                                                                                  gossip/sfc202/contract.go on lines 746..753
                                                                                  gossip/sfc204/contract.go on lines 435..442
                                                                                  gossip/sfc204/contract.go on lines 755..762
                                                                                  gossip/sfc204/contract.go on lines 1251..1258

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

                                                                                  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

                                                                                  func (_Contract *ContractCaller) DelegationEarlyWithdrawalPenalty(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 6 other locations - About 55 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 1150..1157
                                                                                  gossip/sfc202/contract.go on lines 746..753
                                                                                  gossip/sfc202/contract.go on lines 1324..1331
                                                                                  gossip/sfc204/contract.go on lines 435..442
                                                                                  gossip/sfc204/contract.go on lines 755..762
                                                                                  gossip/sfc204/contract.go on lines 1251..1258

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

                                                                                  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

                                                                                  func (_Contract *ContractCaller) GetDelegationRewardRatio(opts *bind.CallOpts, delegator common.Address, toStakerID *big.Int) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 6 other locations - About 55 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 1150..1157
                                                                                  gossip/sfc202/contract.go on lines 426..433
                                                                                  gossip/sfc202/contract.go on lines 1324..1331
                                                                                  gossip/sfc204/contract.go on lines 435..442
                                                                                  gossip/sfc204/contract.go on lines 755..762
                                                                                  gossip/sfc204/contract.go on lines 1251..1258

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

                                                                                  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

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

                                                                                  func NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error) {
                                                                                      contract, err := bindContract(address, backend, backend, backend)
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 4 other locations - About 50 mins to fix
                                                                                  gossip/ballot/contract.go on lines 109..115
                                                                                  gossip/sfc110/contract.go on lines 109..115
                                                                                  gossip/sfc204/contract.go on lines 92..98
                                                                                  gossip/sfcproxy/contract.go on lines 109..115

                                                                                  Duplicated Code

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

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

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

                                                                                  Tuning

                                                                                  This issue has a mass of 119.

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func bindContract(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
                                                                                      parsed, err := abi.JSON(strings.NewReader(ContractABI))
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                      }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 4 other locations - About 50 mins to fix
                                                                                  gossip/ballot/contract.go on lines 145..151
                                                                                  gossip/sfc110/contract.go on lines 145..151
                                                                                  gossip/sfc204/contract.go on lines 128..134
                                                                                  gossip/sfcproxy/contract.go on lines 145..151

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

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

                                                                                  func (_Contract *ContractSession) CalcValidatorCompoundRewards(stakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      return _Contract.Contract.CalcValidatorCompoundRewards(&_Contract.CallOpts, stakerID, _fromEpoch, maxEpochs)
                                                                                  }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 9 other locations - About 45 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 478..480
                                                                                  gossip/sfc110/contract.go on lines 485..487
                                                                                  gossip/sfc202/contract.go on lines 309..311
                                                                                  gossip/sfc202/contract.go on lines 334..336
                                                                                  gossip/sfc202/contract.go on lines 341..343
                                                                                  gossip/sfc204/contract.go on lines 285..287
                                                                                  gossip/sfc204/contract.go on lines 292..294
                                                                                  gossip/sfc204/contract.go on lines 343..345
                                                                                  gossip/sfc204/contract.go on lines 350..352

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

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

                                                                                  func (_Contract *ContractSession) CalcValidatorRewards(stakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      return _Contract.Contract.CalcValidatorRewards(&_Contract.CallOpts, stakerID, _fromEpoch, maxEpochs)
                                                                                  }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 9 other locations - About 45 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 478..480
                                                                                  gossip/sfc110/contract.go on lines 485..487
                                                                                  gossip/sfc202/contract.go on lines 302..304
                                                                                  gossip/sfc202/contract.go on lines 309..311
                                                                                  gossip/sfc202/contract.go on lines 341..343
                                                                                  gossip/sfc204/contract.go on lines 285..287
                                                                                  gossip/sfc204/contract.go on lines 292..294
                                                                                  gossip/sfc204/contract.go on lines 343..345
                                                                                  gossip/sfc204/contract.go on lines 350..352

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

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

                                                                                  func (_Contract *ContractCallerSession) CalcValidatorRewards(stakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      return _Contract.Contract.CalcValidatorRewards(&_Contract.CallOpts, stakerID, _fromEpoch, maxEpochs)
                                                                                  }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 9 other locations - About 45 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 478..480
                                                                                  gossip/sfc110/contract.go on lines 485..487
                                                                                  gossip/sfc202/contract.go on lines 302..304
                                                                                  gossip/sfc202/contract.go on lines 309..311
                                                                                  gossip/sfc202/contract.go on lines 334..336
                                                                                  gossip/sfc204/contract.go on lines 285..287
                                                                                  gossip/sfc204/contract.go on lines 292..294
                                                                                  gossip/sfc204/contract.go on lines 343..345
                                                                                  gossip/sfc204/contract.go on lines 350..352

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

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

                                                                                  func (_Contract *ContractCallerSession) CalcValidatorCompoundRewards(stakerID *big.Int, _fromEpoch *big.Int, maxEpochs *big.Int) (*big.Int, *big.Int, *big.Int, error) {
                                                                                      return _Contract.Contract.CalcValidatorCompoundRewards(&_Contract.CallOpts, stakerID, _fromEpoch, maxEpochs)
                                                                                  }
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 9 other locations - About 45 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 478..480
                                                                                  gossip/sfc110/contract.go on lines 485..487
                                                                                  gossip/sfc202/contract.go on lines 302..304
                                                                                  gossip/sfc202/contract.go on lines 334..336
                                                                                  gossip/sfc202/contract.go on lines 341..343
                                                                                  gossip/sfc204/contract.go on lines 285..287
                                                                                  gossip/sfc204/contract.go on lines 292..294
                                                                                  gossip/sfc204/contract.go on lines 343..345
                                                                                  gossip/sfc204/contract.go on lines 350..352

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

                                                                                  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

                                                                                  func (_Contract *ContractFilterer) FilterNetworkUpgradeActivated(opts *bind.FilterOpts) (*ContractNetworkUpgradeActivatedIterator, error) {
                                                                                  
                                                                                      logs, sub, err := _Contract.contract.FilterLogs(opts, "NetworkUpgradeActivated")
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 12 other locations - About 45 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 4438..4445
                                                                                  gossip/sfc110/contract.go on lines 4734..4741
                                                                                  gossip/sfc202/contract.go on lines 5063..5070
                                                                                  gossip/sfc202/contract.go on lines 5359..5366
                                                                                  gossip/sfc202/contract.go on lines 5492..5499
                                                                                  gossip/sfc202/contract.go on lines 5626..5633
                                                                                  gossip/sfc204/contract.go on lines 4009..4016
                                                                                  gossip/sfc204/contract.go on lines 4906..4913
                                                                                  gossip/sfc204/contract.go on lines 5202..5209
                                                                                  gossip/sfc204/contract.go on lines 5335..5342
                                                                                  gossip/sfc204/contract.go on lines 5469..5476
                                                                                  gossip/sfcproxy/contract.go on lines 404..411

                                                                                  Duplicated Code

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

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

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

                                                                                  Tuning

                                                                                  This issue has a mass of 116.

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) FilterUpdatedMinGasPrice(opts *bind.FilterOpts) (*ContractUpdatedMinGasPriceIterator, error) {
                                                                                  
                                                                                      logs, sub, err := _Contract.contract.FilterLogs(opts, "UpdatedMinGasPrice")
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 12 other locations - About 45 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 4438..4445
                                                                                  gossip/sfc110/contract.go on lines 4734..4741
                                                                                  gossip/sfc202/contract.go on lines 4166..4173
                                                                                  gossip/sfc202/contract.go on lines 5063..5070
                                                                                  gossip/sfc202/contract.go on lines 5359..5366
                                                                                  gossip/sfc202/contract.go on lines 5626..5633
                                                                                  gossip/sfc204/contract.go on lines 4009..4016
                                                                                  gossip/sfc204/contract.go on lines 4906..4913
                                                                                  gossip/sfc204/contract.go on lines 5202..5209
                                                                                  gossip/sfc204/contract.go on lines 5335..5342
                                                                                  gossip/sfc204/contract.go on lines 5469..5476
                                                                                  gossip/sfcproxy/contract.go on lines 404..411

                                                                                  Duplicated Code

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

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

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

                                                                                  Tuning

                                                                                  This issue has a mass of 116.

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) FilterUpdatedOfflinePenaltyThreshold(opts *bind.FilterOpts) (*ContractUpdatedOfflinePenaltyThresholdIterator, error) {
                                                                                  
                                                                                      logs, sub, err := _Contract.contract.FilterLogs(opts, "UpdatedOfflinePenaltyThreshold")
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 12 other locations - About 45 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 4438..4445
                                                                                  gossip/sfc110/contract.go on lines 4734..4741
                                                                                  gossip/sfc202/contract.go on lines 4166..4173
                                                                                  gossip/sfc202/contract.go on lines 5063..5070
                                                                                  gossip/sfc202/contract.go on lines 5359..5366
                                                                                  gossip/sfc202/contract.go on lines 5492..5499
                                                                                  gossip/sfc204/contract.go on lines 4009..4016
                                                                                  gossip/sfc204/contract.go on lines 4906..4913
                                                                                  gossip/sfc204/contract.go on lines 5202..5209
                                                                                  gossip/sfc204/contract.go on lines 5335..5342
                                                                                  gossip/sfc204/contract.go on lines 5469..5476
                                                                                  gossip/sfcproxy/contract.go on lines 404..411

                                                                                  Duplicated Code

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

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

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

                                                                                  Tuning

                                                                                  This issue has a mass of 116.

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) FilterUpdatedBaseRewardPerSec(opts *bind.FilterOpts) (*ContractUpdatedBaseRewardPerSecIterator, error) {
                                                                                  
                                                                                      logs, sub, err := _Contract.contract.FilterLogs(opts, "UpdatedBaseRewardPerSec")
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 12 other locations - About 45 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 4438..4445
                                                                                  gossip/sfc110/contract.go on lines 4734..4741
                                                                                  gossip/sfc202/contract.go on lines 4166..4173
                                                                                  gossip/sfc202/contract.go on lines 5359..5366
                                                                                  gossip/sfc202/contract.go on lines 5492..5499
                                                                                  gossip/sfc202/contract.go on lines 5626..5633
                                                                                  gossip/sfc204/contract.go on lines 4009..4016
                                                                                  gossip/sfc204/contract.go on lines 4906..4913
                                                                                  gossip/sfc204/contract.go on lines 5202..5209
                                                                                  gossip/sfc204/contract.go on lines 5335..5342
                                                                                  gossip/sfc204/contract.go on lines 5469..5476
                                                                                  gossip/sfcproxy/contract.go on lines 404..411

                                                                                  Duplicated Code

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

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

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

                                                                                  Tuning

                                                                                  This issue has a mass of 116.

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractFilterer) FilterUpdatedGasPowerAllocationRate(opts *bind.FilterOpts) (*ContractUpdatedGasPowerAllocationRateIterator, error) {
                                                                                  
                                                                                      logs, sub, err := _Contract.contract.FilterLogs(opts, "UpdatedGasPowerAllocationRate")
                                                                                      if err != nil {
                                                                                          return nil, err
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 12 other locations - About 45 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 4438..4445
                                                                                  gossip/sfc110/contract.go on lines 4734..4741
                                                                                  gossip/sfc202/contract.go on lines 4166..4173
                                                                                  gossip/sfc202/contract.go on lines 5063..5070
                                                                                  gossip/sfc202/contract.go on lines 5492..5499
                                                                                  gossip/sfc202/contract.go on lines 5626..5633
                                                                                  gossip/sfc204/contract.go on lines 4009..4016
                                                                                  gossip/sfc204/contract.go on lines 4906..4913
                                                                                  gossip/sfc204/contract.go on lines 5202..5209
                                                                                  gossip/sfc204/contract.go on lines 5335..5342
                                                                                  gossip/sfc204/contract.go on lines 5469..5476
                                                                                  gossip/sfcproxy/contract.go on lines 404..411

                                                                                  Duplicated Code

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

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

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

                                                                                  Tuning

                                                                                  This issue has a mass of 116.

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

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

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

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

                                                                                  Refactorings

                                                                                  Further Reading

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

                                                                                  func (_Contract *ContractSession) LockedDelegations(arg0 common.Address, arg1 *big.Int) (struct {
                                                                                      FromEpoch *big.Int
                                                                                      EndTime   *big.Int
                                                                                      Duration  *big.Int
                                                                                  }, error) {
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 3 other locations - About 45 mins to fix
                                                                                  gossip/sfc202/contract.go on lines 987..993
                                                                                  gossip/sfc204/contract.go on lines 929..935
                                                                                  gossip/sfc204/contract.go on lines 940..946

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

                                                                                  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

                                                                                  func (_Contract *ContractCallerSession) LockedDelegations(arg0 common.Address, arg1 *big.Int) (struct {
                                                                                      FromEpoch *big.Int
                                                                                      EndTime   *big.Int
                                                                                      Duration  *big.Int
                                                                                  }, error) {
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 3 other locations - About 45 mins to fix
                                                                                  gossip/sfc202/contract.go on lines 976..982
                                                                                  gossip/sfc204/contract.go on lines 929..935
                                                                                  gossip/sfc204/contract.go on lines 940..946

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) GetValidatorRewardRatio(opts *bind.CallOpts, stakerID *big.Int) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Minor
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 45 mins to fix
                                                                                  gossip/sfc204/contract.go on lines 807..814

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

                                                                                  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

                                                                                  func (_Contract *ContractCaller) GetStakerID(opts *bind.CallOpts, addr common.Address) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 40 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 298..305
                                                                                  gossip/sfc110/contract.go on lines 838..845
                                                                                  gossip/sfc202/contract.go on lines 194..201
                                                                                  gossip/sfc204/contract.go on lines 177..184
                                                                                  gossip/sfc204/contract.go on lines 781..788

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

                                                                                  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

                                                                                  func (_Contract *ContractCaller) SfcAddressToStakerID(opts *bind.CallOpts, sfcAddress common.Address) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 5 other locations - About 40 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 298..305
                                                                                  gossip/sfc110/contract.go on lines 838..845
                                                                                  gossip/sfc202/contract.go on lines 772..779
                                                                                  gossip/sfc204/contract.go on lines 177..184
                                                                                  gossip/sfc204/contract.go on lines 781..788

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) IsDelegationLockedUp(opts *bind.CallOpts, delegator common.Address, toStakerID *big.Int) (bool, error) {
                                                                                      var (
                                                                                          ret0 = new(bool)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Minor
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 40 mins to fix
                                                                                  gossip/sfc204/contract.go on lines 833..840

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) StakerMetadata(opts *bind.CallOpts, arg0 *big.Int) ([]byte, error) {
                                                                                      var (
                                                                                          ret0 = new([]byte)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Minor
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 35 mins to fix
                                                                                  gossip/sfc110/contract.go on lines 1306..1313

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

                                                                                  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

                                                                                  func (_Contract *ContractCallerSession) LockedStakes(arg0 *big.Int) (struct {
                                                                                      FromEpoch *big.Int
                                                                                      EndTime   *big.Int
                                                                                      Duration  *big.Int
                                                                                  }, error) {
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 3 other locations - About 35 mins to fix
                                                                                  gossip/sfc202/contract.go on lines 1016..1022
                                                                                  gossip/sfc204/contract.go on lines 969..975
                                                                                  gossip/sfc204/contract.go on lines 980..986

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

                                                                                  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

                                                                                  func (_Contract *ContractSession) LockedStakes(arg0 *big.Int) (struct {
                                                                                      FromEpoch *big.Int
                                                                                      EndTime   *big.Int
                                                                                      Duration  *big.Int
                                                                                  }, error) {
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 3 other locations - About 35 mins to fix
                                                                                  gossip/sfc202/contract.go on lines 1027..1033
                                                                                  gossip/sfc204/contract.go on lines 969..975
                                                                                  gossip/sfc204/contract.go on lines 980..986

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

                                                                                  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

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

                                                                                  func (_Contract *ContractTransactor) PrepareToWithdrawDelegationPartial(opts *bind.TransactOpts, wrID *big.Int, toStakerID *big.Int, amount *big.Int) (*types.Transaction, error) {
                                                                                      return _Contract.contract.Transact(opts, "prepareToWithdrawDelegationPartial", wrID, toStakerID, amount)
                                                                                  }
                                                                                  Severity: Minor
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 35 mins to fix
                                                                                  gossip/sfc204/contract.go on lines 2083..2085

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

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

                                                                                  func (_Contract *ContractCaller) DelegationsTotalAmount(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) ContractCommission(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) DelegationLockPeriodEpochs(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) DelegationsNum(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) UnlockedRewardRatio(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) MaxDelegatedRatio(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) StakeLockPeriodTime(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) MaxStakerMetadataSize(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) MinLockupDuration(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) MaxLockupDuration(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) StakersLastID(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) DelegationLockPeriodTime(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) MinDelegationIncrease(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

                                                                                  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

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

                                                                                  func (_Contract *ContractCaller) IsStakeLockedUp(opts *bind.CallOpts, staker *big.Int) (bool, error) {
                                                                                      var (
                                                                                          ret0 = new(bool)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Minor
                                                                                  Found in gossip/sfc202/contract.go and 1 other location - About 30 mins to fix
                                                                                  gossip/sfc204/contract.go on lines 885..892

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

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

                                                                                  func (_Contract *ContractCaller) MinDelegation(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) StakersNum(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) StakeLockPeriodEpochs(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) StakeTotalAmount(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) FirstLockedUpEpoch(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) MinDelegationDecrease(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) SlashedDelegationsTotalAmount(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) SlashedStakeTotalAmount(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) MinStakeDecrease(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) ValidatorCommission(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) CurrentSealedEpoch(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) MinStakeIncrease(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) TotalBurntLockupRewards(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) MinStake(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 374..381
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

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

                                                                                  func (_Contract *ContractCaller) CurrentEpoch(opts *bind.CallOpts) (*big.Int, error) {
                                                                                      var (
                                                                                          ret0 = new(*big.Int)
                                                                                      )
                                                                                      out := ret0
                                                                                  Severity: Major
                                                                                  Found in gossip/sfc202/contract.go and 84 other locations - About 30 mins to fix
                                                                                  gossip/ballot/contract.go on lines 326..333
                                                                                  gossip/sfc110/contract.go on lines 324..331
                                                                                  gossip/sfc110/contract.go on lines 350..357
                                                                                  gossip/sfc110/contract.go on lines 376..383
                                                                                  gossip/sfc110/contract.go on lines 402..409
                                                                                  gossip/sfc110/contract.go on lines 492..499
                                                                                  gossip/sfc110/contract.go on lines 518..525
                                                                                  gossip/sfc110/contract.go on lines 544..551
                                                                                  gossip/sfc110/contract.go on lines 570..577
                                                                                  gossip/sfc110/contract.go on lines 596..603
                                                                                  gossip/sfc110/contract.go on lines 678..685
                                                                                  gossip/sfc110/contract.go on lines 704..711
                                                                                  gossip/sfc110/contract.go on lines 890..897
                                                                                  gossip/sfc110/contract.go on lines 916..923
                                                                                  gossip/sfc110/contract.go on lines 942..949
                                                                                  gossip/sfc110/contract.go on lines 968..975
                                                                                  gossip/sfc110/contract.go on lines 994..1001
                                                                                  gossip/sfc110/contract.go on lines 1020..1027
                                                                                  gossip/sfc110/contract.go on lines 1046..1053
                                                                                  gossip/sfc110/contract.go on lines 1072..1079
                                                                                  gossip/sfc110/contract.go on lines 1176..1183
                                                                                  gossip/sfc110/contract.go on lines 1202..1209
                                                                                  gossip/sfc110/contract.go on lines 1228..1235
                                                                                  gossip/sfc110/contract.go on lines 1254..1261
                                                                                  gossip/sfc110/contract.go on lines 1280..1287
                                                                                  gossip/sfc110/contract.go on lines 1400..1407
                                                                                  gossip/sfc110/contract.go on lines 1426..1433
                                                                                  gossip/sfc110/contract.go on lines 1452..1459
                                                                                  gossip/sfc110/contract.go on lines 1478..1485
                                                                                  gossip/sfc110/contract.go on lines 1504..1511
                                                                                  gossip/sfc202/contract.go on lines 348..355
                                                                                  gossip/sfc202/contract.go on lines 400..407
                                                                                  gossip/sfc202/contract.go on lines 452..459
                                                                                  gossip/sfc202/contract.go on lines 478..485
                                                                                  gossip/sfc202/contract.go on lines 560..567
                                                                                  gossip/sfc202/contract.go on lines 586..593
                                                                                  gossip/sfc202/contract.go on lines 720..727
                                                                                  gossip/sfc202/contract.go on lines 1038..1045
                                                                                  gossip/sfc202/contract.go on lines 1064..1071
                                                                                  gossip/sfc202/contract.go on lines 1090..1097
                                                                                  gossip/sfc202/contract.go on lines 1116..1123
                                                                                  gossip/sfc202/contract.go on lines 1142..1149
                                                                                  gossip/sfc202/contract.go on lines 1168..1175
                                                                                  gossip/sfc202/contract.go on lines 1194..1201
                                                                                  gossip/sfc202/contract.go on lines 1220..1227
                                                                                  gossip/sfc202/contract.go on lines 1246..1253
                                                                                  gossip/sfc202/contract.go on lines 1272..1279
                                                                                  gossip/sfc202/contract.go on lines 1350..1357
                                                                                  gossip/sfc202/contract.go on lines 1376..1383
                                                                                  gossip/sfc202/contract.go on lines 1402..1409
                                                                                  gossip/sfc202/contract.go on lines 1428..1435
                                                                                  gossip/sfc202/contract.go on lines 1454..1461
                                                                                  gossip/sfc202/contract.go on lines 1574..1581
                                                                                  gossip/sfc202/contract.go on lines 1600..1607
                                                                                  gossip/sfc202/contract.go on lines 1626..1633
                                                                                  gossip/sfc202/contract.go on lines 1652..1659
                                                                                  gossip/sfc202/contract.go on lines 1678..1685
                                                                                  gossip/sfc204/contract.go on lines 357..364
                                                                                  gossip/sfc204/contract.go on lines 383..390
                                                                                  gossip/sfc204/contract.go on lines 409..416
                                                                                  gossip/sfc204/contract.go on lines 461..468
                                                                                  gossip/sfc204/contract.go on lines 487..494
                                                                                  gossip/sfc204/contract.go on lines 569..576
                                                                                  gossip/sfc204/contract.go on lines 595..602
                                                                                  gossip/sfc204/contract.go on lines 729..736
                                                                                  gossip/sfc204/contract.go on lines 991..998
                                                                                  gossip/sfc204/contract.go on lines 1017..1024
                                                                                  gossip/sfc204/contract.go on lines 1043..1050
                                                                                  gossip/sfc204/contract.go on lines 1069..1076
                                                                                  gossip/sfc204/contract.go on lines 1095..1102
                                                                                  gossip/sfc204/contract.go on lines 1121..1128
                                                                                  gossip/sfc204/contract.go on lines 1147..1154
                                                                                  gossip/sfc204/contract.go on lines 1173..1180
                                                                                  gossip/sfc204/contract.go on lines 1199..1206
                                                                                  gossip/sfc204/contract.go on lines 1277..1284
                                                                                  gossip/sfc204/contract.go on lines 1303..1310
                                                                                  gossip/sfc204/contract.go on lines 1329..1336
                                                                                  gossip/sfc204/contract.go on lines 1355..1362
                                                                                  gossip/sfc204/contract.go on lines 1407..1414
                                                                                  gossip/sfc204/contract.go on lines 1501..1508
                                                                                  gossip/sfc204/contract.go on lines 1527..1534
                                                                                  gossip/sfc204/contract.go on lines 1553..1560
                                                                                  gossip/sfc204/contract.go on lines 1579..1586
                                                                                  gossip/sfc204/contract.go on lines 1605..1612

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

                                                                                  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