bosonprotocol / contracts

[DEPRECATED] Boson Protocol v1
GNU Lesser General Public License v3.0
69 stars 17 forks source link

UHS-01C: Potential Tight-Packing Optimization #338

Closed zajck closed 2 years ago

zajck commented 2 years ago

Close #331

Beside the struct change, I needed to adjust calculation at one point.

Could not use SafeMath for uint248 directly, since it returns uint256, so two explicit conversions are added