-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
6,575 additions
and
4,324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +0,0 @@ | ||
diff -druN ../score/DelegationManager.sol core/DelegationManager.sol | ||
--- ../score/DelegationManager.sol 2023-09-26 13:12:35 | ||
+++ core/DelegationManager.sol 2023-09-26 13:40:04 | ||
@@ -307,10 +307,12 @@ | ||
* @dev Callable only by the StrategyManager or EigenPodManager. | ||
*/ | ||
function decreaseDelegatedShares( | ||
- address staker, | ||
- IStrategy[] calldata strategies, | ||
- uint256[] calldata shares | ||
- ) external onlyStrategyManagerOrEigenPodManager { | ||
+ address staker, | ||
+ // MUNGED calldata => memory | ||
+ IStrategy[] memory strategies, | ||
+ uint256[] memory shares | ||
+ // MUNGED external => public | ||
+ ) public onlyStrategyManagerOrEigenPodManager { | ||
// if the staker is delegated to an operator | ||
if (isDelegated(staker)) { | ||
address operator = delegatedTo[staker]; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity =0.8.12; | ||
|
||
import "../munged/pods/EigenPodManager.sol"; | ||
|
||
contract EigenPodManagerHarness is EigenPodManager { | ||
|
||
constructor( | ||
IETHPOSDeposit _ethPOS, | ||
IBeacon _eigenPodBeacon, | ||
IStrategyManager _strategyManager, | ||
ISlasher _slasher, | ||
IDelegationManager _delegationManager | ||
) | ||
EigenPodManager(_ethPOS, _eigenPodBeacon, _strategyManager, _slasher, _delegationManager) {} | ||
|
||
function get_podOwnerShares(address podOwner) public view returns (int256) { | ||
return podOwnerShares[podOwner]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
if [[ "$2" ]] | ||
then | ||
RULE="--rule $2" | ||
fi | ||
|
||
solc-select use 0.8.12 | ||
|
||
certoraRun certora/harnesses/EigenPodManagerHarness.sol \ | ||
certora/munged/core/DelegationManager.sol certora/munged/pods/EigenPod.sol certora/munged/strategies/StrategyBase.sol certora/munged/core/StrategyManager.sol \ | ||
certora/munged/core/Slasher.sol certora/munged/permissions/PauserRegistry.sol \ | ||
--verify EigenPodManagerHarness:certora/specs/pods/EigenPodManager.spec \ | ||
--optimistic_loop \ | ||
--prover_args '-optimisticFallback true' \ | ||
--optimistic_hashing \ | ||
$RULE \ | ||
--loop_iter 3 \ | ||
--packages @openzeppelin=lib/openzeppelin-contracts @openzeppelin-upgrades=lib/openzeppelin-contracts-upgradeable \ | ||
--msg "EigenPodManager $1 $2" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.