snapshot-labs / boost

A protocol for token distribution
MIT License
13 stars 5 forks source link

Pack BoostConfig struct #16

Closed Orland0x closed 1 year ago

Orland0x commented 1 year ago

We can pack the start and end timestamps into a single slot in the BoostConfig to save gas

Orland0x commented 1 year ago

Actually can pack one of the addresses in with the timestamps. 32 bits for each timestamp then 160 for the address = 224 bits