kodadot/nft-gallery

View on GitHub
composables/collectionActivity/helpers.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function getFlippers has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const getFlippers = (interactions: InteractionWithNFT[]): Flippers => {
  const { NFTS, changeHandsInteractions }
    = preProccessForFindingFlippers(interactions)

  // Create an object that will hold all the flipper data
Severity: Minor
Found in composables/collectionActivity/helpers.ts - About 1 hr to fix

    Function getOwners has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const getOwners = (nfts) => {
      const owners: Owners = {}
    
      nfts.forEach((nft) => {
        const interactions = nft.events.map(e => e.interaction)
    Severity: Minor
    Found in composables/collectionActivity/helpers.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status