mirror of
https://github.com/paradigmxyz/solidity-lean.git
synced 2026-11-15 19:56:39 +00:00
fix(uniswap-v2): pair premise apart, skim control
Name the pair statement's premise PairAllowanceApart: the words allowance[address(0)][s] that the ERC20 invariant reads avoid the pair's 13 fixed slots. Drop the balanceOf[address(0)] half, which the kernel computes (TrustedBase.image3), and show the premise holds for a hash model, so it is not False in disguise. Add an axiom audit of every pair headline, checked by #guard_msgs. Run skim(0x3000) with token balances 11000/10500 over reserves 10000/10000 on the exact bytes and the checked source (reserves kept), and on a mutant that forces the reserves to the balances first, as solar's compile and SolidCore's translation of the mutant source (reserves 11000/10500). The published spec refuses every successful skim observable with reserve0 moved (skimUpdate_refused, kernel).
This commit is contained in:
parent
423bf6d984
commit
6cb2c0141e
10 changed files with 247 additions and 34 deletions
2
Contracts/UniswapV2/.gitignore
vendored
2
Contracts/UniswapV2/.gitignore
vendored
Loading…
Add table
Add a link
Reference in a new issue