Skip to content
Skills
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Home
/
Blockchain Developer
/
Hard
/
Which way to round in a vault
hard
20 pts · first answer counts
token-standards
smart-contract-security
Which way to round in a vault
In an ERC-4626 vault, which rounding rules keep the vault safe?
Choose one answer
A.
Always round up, so users get the benefit
B.
Round in favour of the vault: shares minted on deposit round down, and shares burned on withdraw round up
C.
Always round to the nearest whole number
D.
Rounding does not matter, because each error is under 1 wei
Submit answer
Report a problem
← msg.value inside a multicall
Constant product swap output →