Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCG Audit Remediations #13

Merged
merged 1,232 commits into from
Nov 23, 2024
Merged

OCG Audit Remediations #13

merged 1,232 commits into from
Nov 23, 2024

Conversation

Oighty
Copy link
Contributor

@Oighty Oighty commented Oct 17, 2024

Remediations for the issues found in the OCG yAudit. The intent is to deploy a new version of the GovernorBravoDelegate and update the implementation to fix the few edge cases that were found.

The issues that were fixed are M3, L2, L3, L4, and I5.

M1 is not fixed because the likelihood is very low and the impact is minimal (would just need to resubmit the proposal). Additionally, it would require a change to the storage layout which we wish to avoid.

M2 is not truly fixable without deploying a new gOHM token, which would be a large amount of work. The impact of the issue is constrained to the amount of OHM that is flashloanable (less than 1% of supply). We also have the option to mitigate this issue entirely by enabling the staking warm-up (but with UX costs for users) if needed in the future.

L1 is more of an inconvenience than a true issue in that overpaying for an execution that requires native ETH can result in the executor overpaying. This can be resolved by refunding them at a later time.

Oighty and others added 14 commits October 17, 2024 11:25
# Conflicts:
#	.github/workflows/CI.yml
#	.gitignore
#	.prettierignore
#	.solhintignore
#	CODE_STD.md
#	README.md
#	foundry.toml
#	lib/clones-with-immutable-args~bophades-develop
#	lib/ds-test~bophades-develop
#	lib/forge-proposal-simulator~bophades-develop
#	lib/forge-std~bophades-develop
#	lib/openzeppelin-contracts~bophades-develop
#	lib/solidity-examples~bophades-develop
#	lib/solmate~bophades-develop
#	package.json
#	remappings.txt
#	shell/full_install.sh
#	src/interfaces/IStaking.sol
#	src/policies/Distributor/Distributor.sol
#	src/policies/Heart.sol
#	src/policies/interfaces/IDistributor.sol
#	src/policies/interfaces/IHeart.sol
#	src/proposals/OCG.md
#	src/proposals/README.md
#	src/proposals/addresses.json
#	src/test/mocks/MockLegacyAuthority.sol
#	src/test/mocks/MockOhm.sol
#	src/test/policies/BoostedLiquidity/BLVaultLidoFork.t.sol
#	src/test/policies/BoostedLiquidity/BLVaultLusdFork.t.sol
#	src/test/policies/BoostedLiquidity/BLVaultManagerLidoFork.t.sol
#	src/test/policies/BoostedLiquidity/BLVaultManagerLusdFork.t.sol
#	src/test/policies/Heart.t.sol
#	src/test/sim/RangeSim.sol
Merge bophades/develop into olympus-v3 repo
…ocg-upgrade-merge

# Conflicts:
#	src/scripts/deploy/deploy.json
Copy link

LCOV of commit fe508c5 during CI #62

Summary coverage rate:
  lines......: 69.4% (1365 of 1966 lines)
  functions..: 72.2% (296 of 410 functions)
  branches...: no data found

Files changed coverage rate:
                                                       |Lines       |Functions  |Branches    
  Filename                                             |Rate     Num|Rate    Num|Rate     Num
  ===========================================================================================
  src/modules/INSTR/OlympusInstructions.sol            |86.4%     22|75.0%     4|    -      0
  src/modules/VOTES/OlympusVotes.sol                   |85.7%     14|90.0%    10|    -      0
  src/policies/Distributor/Distributor.sol             |72.5%     40|81.8%    11|    -      0
  src/policies/Heart.sol                               |76.9%     39|83.3%    12|    -      0
  src/policies/Parthenon.sol                           |94.1%     85| 100%     8|    -      0
  src/policies/VohmVault.sol                           |38.9%     18|66.7%     6|    -      0

@Oighty Oighty merged commit 8b7a7eb into master Nov 23, 2024
2 checks passed
@Oighty Oighty deleted the ocg-upgrade branch November 23, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants