v4-core icon indicating copy to clipboard operation
v4-core copied to clipboard

fuzz test pool library for solvency

Open moodysalem opened this issue 2 years ago • 2 comments

this should be much easier to do now that pool logic is in a library. verify that via calls to modify position and swap, all positions will always be solvent. ~~we should probably use mythx for this. tried it with forge, but it has some drawbacks over echidna/mythx style fuzz tests, mainly does not test sequences of transactions, but handling reverts is also painful~~ https://github.com/Uniswap/core-next/commit/b18e172a151e9c6e7c22a63011bc048a2e393790

moodysalem avatar May 11 '22 17:05 moodysalem

I have an idea for how to do this with forge - giving it a shot

marktoda avatar Jun 08 '22 02:06 marktoda

@marktoda to redo this with invariant tests

hensha256 avatar Jun 01 '23 14:06 hensha256