Open apbendi opened 1 year ago
Set up invariant testing and add invariant tests where appropriate.
For example, testing that the total weight being voted with never exceeds the voting weight delegated by the gov token (would revert if so).
References for invariant testing patterns, lmk if you have any questions when implementing:
This should also help - https://github.com/foundry-rs/foundry/tree/master/testdata/fuzz/invariant
Set up invariant testing and add invariant tests where appropriate.
For example, testing that the total weight being voted with never exceeds the voting weight delegated by the gov token (would revert if so).