Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e32ae22
Remove harvest of old Convex AMO strategy
naddison36 Dec 24, 2025
40ae1eb
Fix imports
naddison36 Dec 24, 2025
8caeceb
Upgrade rollup dependencies
naddison36 Dec 24, 2025
284e057
Updated README
naddison36 Dec 24, 2025
82650e7
Remove hardhat dependency so the Action can be uploaded
naddison36 Dec 24, 2025
66ed3a9
Only call harvestAndTransfer if there is a strategy to harvest
naddison36 Dec 24, 2025
e85418f
Added check of chainId to Action
naddison36 Dec 24, 2025
d7768a3
Removed harvest of old OUSD Morpho strategies and added new OUSD v2 s…
naddison36 Dec 29, 2025
a9fd677
Automate claiming MORPHO rewards from the new OUSD v2 strategy
naddison36 Dec 29, 2025
61193da
Fix strategies in OUSD fork tests
naddison36 Dec 29, 2025
5cd2cc9
Fix fork tests claiming MORPHO rewards
naddison36 Dec 29, 2025
ede7951
Bumped ssv-scanner version
naddison36 Dec 29, 2025
aa07878
Fix old native staking fork test which is still using the fix rate dr…
naddison36 Dec 29, 2025
274c13a
prettier
naddison36 Dec 29, 2025
25d77aa
more changes to fork tests claiming MORPHO rewards
naddison36 Dec 29, 2025
5aa6dd0
Merge remote-tracking branch 'origin/master' into nicka/harvest-update
naddison36 Dec 29, 2025
442f97c
Deploy script to add MORPHO as rewards token to Morpho OUSD v2 Strategy
naddison36 Dec 30, 2025
28acfe1
Fix fork tests for Morpho rewards
naddison36 Dec 30, 2025
a01eb4d
Fix Harvest Action
naddison36 Dec 30, 2025
5110f21
Merge remote-tracking branch 'origin/master' into nicka/harvest-update
naddison36 Dec 30, 2025
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
54 changes: 35 additions & 19 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,37 +322,53 @@ DEFENDER_TEAM_SECRET=
The following will bundle the Actions code ready for upload.

```
cd ./scripts/defender-actions
cd contracts
pnpm rollup -c ./scripts/defender-actions/rollup.config.cjs
```

If you get error like the below, you will need to install `@rollup/rollup-darwin-x64`

```
Error: Cannot find module @rollup/rollup-darwin-x64. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
```

If you are on Apple Silicon (M1/M2/M3) and you node is emulated x64, then the following will return `x64` rather than `arm64`.

npx rollup -c
```
node -p "process.arch"
```

If x64, run the following to install the required rollup package.

```
pnpm add -D @rollup/rollup-darwin-x64
```

The following will upload the different Action bundles to Defender.

```sh
# change to the defender-actions folder
cd ./scripts/defender-actions
npx rollup -c
cd contracts
pnpm rollup -c ./scripts/defender-actions/rollup.config.cjs

# Set the DEFENDER_TEAM_KEY and DEFENDER_TEAM_SECRET environment variables in the .env file

# Set the DEBUG environment variable to oeth* for the Defender Action
yarn hardhat setActionVars --id f4b5b8d4-82ff-483f-bfae-9fef015790ca
yarn hardhat setActionVars --id e2929f53-db56-49b2-b054-35f7df7fc4fb
yarn hardhat setActionVars --id 12c153c8-c5ca-420b-9696-e80c827996d1
yarn hardhat setActionVars --id 6e4f764d-4126-45a5-b7d9-1ab90cd3ffd6
yarn hardhat setActionVars --id 84988850-6816-4074-8e7b-c11cb2b32e7e
yarn hardhat setActionVars --id f92ea662-fc34-433b-8beb-b34e9ab74685
yarn hardhat setActionVars --id b1d831f1-29d4-4943-bb2e-8e625b76e82c
pnpm hardhat setActionVars --id e2929f53-db56-49b2-b054-35f7df7fc4fb
pnpm hardhat setActionVars --id 6e4f764d-4126-45a5-b7d9-1ab90cd3ffd6
pnpm hardhat setActionVars --id 84988850-6816-4074-8e7b-c11cb2b32e7e
pnpm hardhat setActionVars --id f92ea662-fc34-433b-8beb-b34e9ab74685
pnpm hardhat setActionVars --id b1d831f1-29d4-4943-bb2e-8e625b76e82c
pnpm hardhat setActionVars --id 6567d7c6-7ec7-44bd-b95b-470dd1ff780b
pnpm hardhat setActionVars --id 6a633bb0-aff8-4b37-aaae-b4c6f244ed87

# Mainnet
yarn hardhat updateAction --id f4b5b8d4-82ff-483f-bfae-9fef015790ca --file registerValidators
yarn hardhat updateAction --id 12c153c8-c5ca-420b-9696-e80c827996d1 --file stakeValidators
yarn hardhat updateAction --id e2929f53-db56-49b2-b054-35f7df7fc4fb --file doAccounting
yarn hardhat updateAction --id 6e4f764d-4126-45a5-b7d9-1ab90cd3ffd6 --file harvest
yarn hardhat updateAction --id 84988850-6816-4074-8e7b-c11cb2b32e7e --file sonicRequestWithdrawal
yarn hardhat updateAction --id f92ea662-fc34-433b-8beb-b34e9ab74685 --file sonicClaimWithdrawals
yarn hardhat updateAction --id b1d831f1-29d4-4943-bb2e-8e625b76e82c --file claimBribes
pnpm hardhat updateAction --id e2929f53-db56-49b2-b054-35f7df7fc4fb --file doAccounting
pnpm hardhat updateAction --id 6e4f764d-4126-45a5-b7d9-1ab90cd3ffd6 --file harvest
pnpm hardhat updateAction --id 84988850-6816-4074-8e7b-c11cb2b32e7e --file sonicRequestWithdrawal
pnpm hardhat updateAction --id f92ea662-fc34-433b-8beb-b34e9ab74685 --file sonicClaimWithdrawals
pnpm hardhat updateAction --id b1d831f1-29d4-4943-bb2e-8e625b76e82c --file claimBribes
pnpm hardhat updateAction --id 6567d7c6-7ec7-44bd-b95b-470dd1ff780b --file manageBribeOnSonic
pnpm hardhat updateAction --id 6a633bb0-aff8-4b37-aaae-b4c6f244ed87 --file managePassThrough
```

`rollup` can be installed globally to avoid the `npx` prefix.
Expand Down
Loading
Loading