decentdao / decent-contracts

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

Imports #52

Closed tbwebb22 closed 1 year ago

tbwebb22 commented 1 year ago

Description

This PR updates the import pattern used in the contracts to use the more explicit "from" pattern, to specify exactly which contracts to inherit.

This PR also includes the uint optimizations: 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)

Testing

Screenshots (if applicable)