Skip to content
Request a review

HyperEVM Development · L1 Precompiles & Interop · 6/8

HyperEVM Contract Challenge

Test your knowledge of yield vault share-based accounting, deposit/withdrawal mechanics, and ERC-4626 vault patterns.

1. In a share-based vault, how many shares should be minted for the very first deposit of 1000 USDC?

2. A vault has totalAssets=11000 and totalShares=10000 (after yield accrual). If a new user deposits 1100 USDC, how many shares do they receive?

3. What should the share price return when the vault has zero total shares?

4. A user holds 500 shares in a vault with totalAssets=22000 and totalShares=10000. How much do they receive on withdrawal?

5. In vault simulation, what is the correct order of operations between deposits and yields?