Skip to content

Commit

Permalink
Merge branch 'eigenpodupdates' of https://github.com/Layr-Labs/eigenl…
Browse files Browse the repository at this point in the history
…ayer-contracts into eigenpodupdates
  • Loading branch information
Sidu28 committed Aug 7, 2023
2 parents 4c8b360 + c679c2c commit dfda728
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 435 deletions.
4 changes: 4 additions & 0 deletions certora/harnesses/StrategyManagerHarness.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ contract StrategyManagerHarness is StrategyManager {
}
}

if (strategies[i] == beaconChainETHStrategy) {
//withdraw the beaconChainETH to the recipient
eigenPodManager.withdrawRestakedBeaconChainETH(slashedAddress, recipient, shareAmounts[i]);
}
else {
// withdraw the shares and send funds to the recipient
strategies[i].withdraw(recipient, tokens[i], shareAmounts[i]);
Expand Down
8 changes: 4 additions & 4 deletions certora/specs/core/StrategyManager.spec
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ definition methodCanIncreaseShares(method f) returns bool =
* `queueWithdrawal`, `slashShares`, or `recordBeaconChainETHBalanceUpdate` has been called
*/
definition methodCanDecreaseShares(method f) returns bool =
f.selector == queueWithdrawal(uint256[],address[],uint256[],address,bool).selector
|| f.selector == slashShares(address,address,address[],address[],uint256[],uint256[]).selector
|| f.selector == slashSharesSinglet(address,address,address,address,uint256,uint256).selector
|| f.selector == recordBeaconChainETHBalanceUpdate(address,uint256,uint256, uint256).selector;
f.selector == sig:queueWithdrawal(uint256[],address[],uint256[],address,bool).selector
|| f.selector == sig:slashShares(address,address,address[],address[],uint256[],uint256[]).selector
|| f.selector == sig:slashSharesSinglet(address,address,address,address,uint256,uint256).selector
|| f.selector == sig:recordBeaconChainETHBalanceUpdate(address,uint256,int256).selector;

rule sharesAmountsChangeOnlyWhenAppropriateFunctionsCalled(address staker, address strategy) {
uint256 sharesBefore = stakerStrategyShares(staker, strategy);
Expand Down
Loading

0 comments on commit dfda728

Please sign in to comment.