Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ contract NativeStakingSSVStrategy is
/// It is important to note that this variable is not concerned with WETH that is a result of full/partial
/// withdrawal of the validators. It is strictly concerned with WETH that has been deposited and is waiting to
/// be staked.
uint256 depositedWethAccountedFor;
uint256 public depositedWethAccountedFor;

// For future use
uint256[49] private __gap;
Expand Down
18 changes: 18 additions & 0 deletions contracts/deploy/holesky/009_upgrade_strategy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { upgradeNativeStakingSSVStrategy } = require("../deployActions");

const mainExport = async () => {
console.log("Running 009 deployment on Holesky...");

console.log("Upgrading native staking strategy");
await upgradeNativeStakingSSVStrategy();

console.log("Running 009 deployment done");
return true;
};

mainExport.id = "009_upgrade_strategy";
mainExport.tags = [];
mainExport.dependencies = [];
mainExport.skip = () => false;

module.exports = mainExport;
3 changes: 2 additions & 1 deletion contracts/deployments/holesky/.migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"005_deploy_new_harvester": 1714998707,
"006_update_registrator": 1715184342,
"007_upgrade_strategy": 1715251466,
"008_upgrade_strategy": 1715341541
"008_upgrade_strategy": 1715341541,
"009_upgrade_strategy": 1716360052
}
180 changes: 126 additions & 54 deletions contracts/deployments/holesky/NativeStakingSSVStrategy.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

128 changes: 65 additions & 63 deletions contracts/docs/NativeStakingSSVStrategySquashed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
200 changes: 102 additions & 98 deletions contracts/docs/NativeStakingSSVStrategyStorage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion contracts/test/behaviour/ssvStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const shouldBehaveLikeAnSsvStrategy = (context) => {
const { weth, domen, nativeStakingSSVStrategy, oethVault, strategist } =
await context();

// Add 32 WETH to the strategy via a Vualt deposit
// Add WETH to the strategy via a Vualt deposit
await weth.connect(domen).transfer(oethVault.address, amount);

return await oethVault
Expand Down