Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/foundry-gas-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
FOUNDRY_FUZZ_SEED: 0x${{ github.event.pull_request.base.sha || github.sha }}

- name: Compare gas reports
uses: Rubilmax/foundry-gas-diff@v3.16
uses: Rubilmax/foundry-gas-diff@v3.21
with:
summaryQuantile: 0.9 # only display the 10% most significant gas diffs in the summary (defaults to 20%)
sortCriteria: avg,max # sort diff rows by criteria
Expand Down
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
via_ir = true
src = "src"
test = "test"
allow_internal_expect_revert = true

[profile.ci]
fuzz = { runs = 10_000 }
Expand Down
1 change: 1 addition & 0 deletions script/BaseDeploy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ contract BaseDeploy is CreateXScript {
|| block.chainid == 1_313_161_554 // Aurora
|| block.chainid == 196 // X Layer
|| block.chainid == 480 // Worldchain
|| block.chainid == 146 // Sonic
) {
return 0x0D946b7Fd00c9277c558710693076a592c2be27F;
}
Expand Down
3 changes: 2 additions & 1 deletion src/strategy-registry/EarnStrategyRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,13 @@ contract EarnStrategyRegistry is IEarnStrategyRegistry {
// slither-disable-next-line reentrancy-no-eth
bytes memory migrationResultData =
oldStrategy.migrateToNewStrategy(proposedStrategyUpdate.newStrategy, migrationData);
proposedStrategyUpdate.newStrategy.strategyRegistered(strategyId, oldStrategy, migrationResultData);

(address[] memory newStrategyTokens, uint256[] memory newStrategyBalances) =
proposedStrategyUpdate.newStrategy.totalBalances();
_revertIfNewStrategyBalancesAreLowerThanOldStrategyBalances(
oldStrategyTokens, oldStrategyBalances, newStrategyTokens, newStrategyBalances
);
proposedStrategyUpdate.newStrategy.strategyRegistered(strategyId, oldStrategy, migrationResultData);
}

function _revertIfNotStrategy(IEarnStrategy strategyToCheck) internal view {
Expand Down
Loading