Skip to content
RED SAG Skills
mediumStudy question · answer published in Blockchain interview questions, so no pointssmart-contract-securityarithmetic

Casting uint256 to uint96

A staking contract stores amounts as uint96 to pack storage and writes stake = uint96(amount). What happens if amount exceeds type(uint96).max?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions