If a mainnet contract has no way of accessing important data for testing, you can use vm.eth_getLogs to parse out events data and assert. I ran into this with OZ AccessControl checking DEFAULT_ADMIN_ROLE for a deployment ACL configuration test.
- 3 replies
- 0 recasts
- 4 reactions
Yesterday @MakerDAO set up a DAI Direct Deposit Module (D3M) to deploy 100m of DAI (through @sparkdotfi ) to a Metamorpho vault that could be borrowed against sUSDe and USDe. In just 24h, the entire 100m was borrowed by DeFi users at a mean APY of 39.1%, generating over $39 million in annualized fees for MakerDAO.
- 1 reply
- 1 recast
- 4 reactions
I love this
- 0 replies
- 0 recasts
- 2 reactions
