decentdao / decent-contracts

Govern at startup speed
https://app.decentdao.org
MIT License
3 stars 3 forks source link

Uint optimize #51

Closed tbwebb22 closed 1 year ago

tbwebb22 commented 1 year ago

Description

This PR changes some variables stored as uint256 to uint32 for gas savings. Some state variables and structs were re-ordered to take advantage of variable packing. Some values, such as quorumNumerator and quorumDenominator did not result in gas savings by changing to a smaller uint, due to the extra variable casting that this causes.

Notes

Issue / Notion doc (if applicable)

https://github.com/decent-dao/fractal-contracts/issues/41

Testing

Screenshots (if applicable)