Axis-Fi / axis-core

Axis Protocol
https://axis.finance
Other
6 stars 1 forks source link

EMPA: Standardize storage size vs. computation for token amounts and prices #54

Closed Oighty closed 5 months ago

Oighty commented 6 months ago

Objective

Ensure consistency for auctions on how token amounts are stored and computed against. More specifically, develop a consistent way to store values as uint96, but ensure overflows are handled when performing mulDiv operations, likely by using uint256 on the stack and in memory. Care must be taken when converting uint256 back to uint96 for storage.

0xJem commented 5 months ago

I think we've done this