composables/collectionActivity/helpers.ts
Function getFlippers
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getFlippers = (interactions: InteractionWithNFT[]): Flippers => {
const { NFTS, changeHandsInteractions }
= preProccessForFindingFlippers(interactions)
// Create an object that will hold all the flipper data
Function getOwners
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getOwners = (nfts) => {
const owners: Owners = {}
nfts.forEach((nft) => {
const interactions = nft.events.map(e => e.interaction)