Skip to content

Commit

Permalink
support withdrawAndHarvest
Browse files Browse the repository at this point in the history
  • Loading branch information
nd-certora committed Apr 16, 2021
1 parent 4e6f786 commit 85c012a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/MasterChefV2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ rule preserveTotalAssetOfUser(method f, uint256 pid, address user,
withdraw(e, pid, amount, to);
} else if (f.selector == emergencyWithdraw(uint256, address).selector) {
emergencyWithdraw(e, pid, to);
} else if (f.selector == withdrawAndHarvest(uint256,uint256,address).selector) {
withdrawAndHarvest(e, pid, amount, to);
} else {
calldataarg args;
f(e, args);
Expand Down Expand Up @@ -385,7 +387,10 @@ function callFunctionWithParams(method f, uint256 pid, address sender, address t
harvest(e, pid, to);
} else if (f.selector == emergencyWithdraw(uint256, address).selector) {
emergencyWithdraw(e, pid, to);
} else {
} else if (f.selector == withdrawAndHarvest(uint256,uint256,address).selector) {
withdrawAndHarvest(e, pid, amount, to);
}
else {
calldataarg args;
f(e,args);
}
Expand Down

0 comments on commit 85c012a

Please sign in to comment.