Zap Entry Path Routing Fuzz
Closed this issue · 0 comments
dapp-whisperer commented
See ETH entry here where 1 wei is lost in division when converting to stETH.
isCollateralIncrease :
True
collateralTokenDelta :
5000000000000000000
stEthDelta :
4999999999999999999
- add fuzz tests for ETH entry paths (openCdp, adjustCdp)
- check that
stEthDelta
matchescollateralTokenDelta
in event and in reality (looking at CDP after the fact)
- check that
- add fuzz tests for WETH entry paths (openCdp, adjustCdp)
- check that
stEthDelta
matchescollateralTokenDelta
in event and in reality (looking at CDP after the fact) - add fuzz tests for WSTETH entry paths (openCdp, adjustCdp)
- check that
stEthDelta
matches expectedcollateralTokenDelta
*wsteth "ppfs"
in event and in reality (looking at CDP after the fact)
- only revert if rounding error exceeds a threshold of 1 wei
- rather than revert on one wei, print out scenarios where a diff is seen