Context
ERC20 token balances, counts and almost all numbering/quantity-related Ethereum application data is stored in uint256 data types.
Choosing uint128 for resource quantities could result in overflows for applications that want to interoperate with Ethereum state.
On the risc0 side, uint128 seems to be the natural representation of numbers.
Scope
Carefully revisit which types should be used.
Context
ERC20 token balances, counts and almost all numbering/quantity-related Ethereum application data is stored in
uint256data types.Choosing
uint128for resource quantities could result in overflows for applications that want to interoperate with Ethereum state.On the risc0 side,
uint128seems to be the natural representation of numbers.Scope
Carefully revisit which types should be used.