Skip to content

Gas / Packing Notes #33

@GalloDaSballo

Description

@GalloDaSballo

Bold balance can be packed by using the remaining slot

2**136 - 1 / 1e18 is 8e40
Meaning we can represent 8e+31 billion BOLD, which leave ample room to prevent overflows

struct GlobalState {
uint88 countedVoteLQTY; // Total LQTY that is included in vote counting
uint32 countedVoteLQTYAverageTimestamp; // Average timestamp: derived initiativeAllocation.averageTimestamp
}

    struct GlobalState {
        uint88 countedVoteLQTY; // Total LQTY that is included in vote counting
        uint32 countedVoteLQTYAverageTimestamp; // Average timestamp: derived initiativeAllocation.averageTimestamp
    } /// TODO: Bold balance? Prob cheaper

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