Skip to content

Group collectable data into a struct rather than having different variables #2

Description

@JasoonS

Currently the each variable relating to a token is in its own mapping. It could be more efficient to make a single collectable 'struct' to store all these variables. (for a single map lookup in functions that use/modify multiple variables).

Just a thought about a potential downside, if we use ZeppelinOS for upgradability, then we won't be able to modify the shape of that struct. But we could keep on adding new mappings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions