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

Deployed 112 and 113 - Morpho Gauntlet USDC and USDT Strategies for OUSD #2328

Merged
merged 6 commits into from
Dec 30, 2024

Conversation

naddison36
Copy link
Collaborator

@naddison36 naddison36 commented Dec 18, 2024

Dependencies

Deployment

Deploy scripts

  • 112_ousd_morpho_gauntlet_usdc.js
  • 113_ousd_morpho_gauntlet_usdt.js

Contracts

Contract Address
MorphoGauntletPrimeUSDCStrategyProxy 0x2B8f37893EE713A4E9fF0cEb79F27539f20a32a1
Generalized4626Strategy 0xC4368860766F1409BeFfE6713CC170945022dE0A
MorphoGauntletPrimeUSDTStrategyProxy 0xe3ae7C80a1B02Ccd3FB0227773553AEB14e32F26
Generalized4626USDTStrategy 0xd7a5997EabF06Ab8F2414A4C5a2470706EC4Baa7

Governance

Morpho Gauntlet USDC Strategy

Proposal payload

[
  [
    "0xE75D77B1865Ae93c7eaa3040B038D7aA7BC02F70",
    "0x21Fb5812D70B3396880D30e90D9e5C1202266c89",
    "0x2B8f37893EE713A4E9fF0cEb79F27539f20a32a1"
  ],
  [
    {
      "type": "BigNumber",
      "hex": "0x00"
    },
    {
      "type": "BigNumber",
      "hex": "0x00"
    },
    {
      "type": "BigNumber",
      "hex": "0x00"
    }
  ],
  [
    "approveStrategy(address)",
    "setSupportedStrategy(address,bool)",
    "setHarvesterAddress(address)"
  ],
  [
    "0x0000000000000000000000002b8f37893ee713a4e9ff0ceb79f27539f20a32a1",
    "0x0000000000000000000000002b8f37893ee713a4e9ff0ceb79f27539f20a32a10000000000000000000000000000000000000000000000000000000000000001",
    "0x00000000000000000000000021fb5812d70b3396880d30e90d9e5c1202266c89"
  ]
]
0xda95691a00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004600000000000000000000000000000000000000000000000000000000000000003000000000000000000000000e75d77b1865ae93c7eaa3040b038d7aa7bc02f7000000000000000000000000021fb5812d70b3396880d30e90d9e5c1202266c890000000000000000000000002b8f37893ee713a4e9ff0ceb79f27539f20a32a100000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000018617070726f7665537472617465677928616464726573732900000000000000000000000000000000000000000000000000000000000000000000000000000022736574537570706f72746564537472617465677928616464726573732c626f6f6c29000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c73657448617276657374657241646472657373286164647265737329000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000200000000000000000000000002b8f37893ee713a4e9ff0ceb79f27539f20a32a100000000000000000000000000000000000000000000000000000000000000400000000000000000000000002b8f37893ee713a4e9ff0ceb79f27539f20a32a10000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000021fb5812d70b3396880d30e90d9e5c1202266c890000000000000000000000000000000000000000000000000000000000000039416464204d6f7270686f204761756e746c6574205072696d65205553444320537472617465677920746f20746865204f555344205661756c7400000000000000

Morpho Gauntlet USDT Strategy

Proposal payload

[
  [
    "0xE75D77B1865Ae93c7eaa3040B038D7aA7BC02F70",
    "0x21Fb5812D70B3396880D30e90D9e5C1202266c89",
    "0xe3ae7C80a1B02Ccd3FB0227773553AEB14e32F26"
  ],
  [
    {
      "type": "BigNumber",
      "hex": "0x00"
    },
    {
      "type": "BigNumber",
      "hex": "0x00"
    },
    {
      "type": "BigNumber",
      "hex": "0x00"
    }
  ],
  [
    "approveStrategy(address)",
    "setSupportedStrategy(address,bool)",
    "setHarvesterAddress(address)"
  ],
  [
    "0x000000000000000000000000e3ae7c80a1b02ccd3fb0227773553aeb14e32f26",
    "0x000000000000000000000000e3ae7c80a1b02ccd3fb0227773553aeb14e32f260000000000000000000000000000000000000000000000000000000000000001",
    "0x00000000000000000000000021fb5812d70b3396880d30e90d9e5c1202266c89"
  ]
]
0xda95691a00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004600000000000000000000000000000000000000000000000000000000000000003000000000000000000000000e75d77b1865ae93c7eaa3040b038d7aa7bc02f7000000000000000000000000021fb5812d70b3396880d30e90d9e5c1202266c89000000000000000000000000e3ae7c80a1b02ccd3fb0227773553aeb14e32f2600000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000018617070726f7665537472617465677928616464726573732900000000000000000000000000000000000000000000000000000000000000000000000000000022736574537570706f72746564537472617465677928616464726573732c626f6f6c29000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c73657448617276657374657241646472657373286164647265737329000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000e3ae7c80a1b02ccd3fb0227773553aeb14e32f260000000000000000000000000000000000000000000000000000000000000040000000000000000000000000e3ae7c80a1b02ccd3fb0227773553aeb14e32f260000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000021fb5812d70b3396880d30e90d9e5c1202266c890000000000000000000000000000000000000000000000000000000000000039416464204d6f7270686f204761756e746c6574205072696d65205553445420537472617465677920746f20746865204f555344205661756c7400000000000000

Deploy checklist

Two reviewers complete the following checklist:

- [ ] All deployed contracts are listed in the deploy PR's description
- [ ] Deployed contract's verified code (and all dependencies) match the code in master
- [ ] Contract constructors have correct arguments
- [ ] The transactions that interacted with the newly deployed contract match the deploy script.
- [ ] Governance proposal matches the deploy script
- [ ] Smoke tests pass after fork test execution of the governance proposal

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 53.32%. Comparing base (f4bb1af) to head (8968d8f).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
...ntracts/strategies/Generalized4626USDTStrategy.sol 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2328      +/-   ##
==========================================
+ Coverage   52.15%   53.32%   +1.17%     
==========================================
  Files          80       80              
  Lines        4101     4101              
  Branches     1079     1079              
==========================================
+ Hits         2139     2187      +48     
+ Misses       1959     1911      -48     
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

clement-ux
clement-ux previously approved these changes Dec 18, 2024
Copy link
Contributor

@clement-ux clement-ux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • All deployed contracts are listed in the deploy PR's description
    • MorphoGauntletPrimeUSDCStrategyProxy
    • MorphoGauntletPrimeUSDTStrategyProxy
    • Generalized4626Strategy
    • Generalized4626USDTStrategy
  • Deployed contract's verified code (and all dependencies) match the code in master
    • MorphoGauntletPrimeUSDCStrategyProxy
    • MorphoGauntletPrimeUSDTStrategyProxy
    • Generalized4626Strategy
    • Generalized4626USDTStrategy
  • Contract constructors have correct arguments
    • MorphoGauntletPrimeUSDCStrategyProxy No constructor
    • MorphoGauntletPrimeUSDTStrategyProxy No constructor
    • Generalized4626Strategy:
      • 0xdd0f28e19c1780eb6396170735d45153d261490d: Gauntlet USDC Prime (plateform address)
      • 0xe75d77b1865ae93c7eaa3040b038d7aa7bc02f70: Vault Proxy (vault address)
      • 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48: USDC (assetToken)
    • Generalized4626USDTStrategy:
      • 0x8cb3649114051ca5119141a34c200d65dc0faa73: Gauntlet USDT Prime (plateform address)
      • 0xe75d77b1865ae93c7eaa3040b038d7aa7bc02f70: Vault Proxy (vault address)
      • 0xdac17f958d2ee523a2206206994597c13d831ec7: USDT (assetToken)
  • The transactions that interacted with the newly deployed contract match the deploy script.
  • Governance proposal matches the deploy script

Code Diff

  • MorphoGauntletPrimeUSDCStrategyProxy
sol2uml diff 0x2B8f37893EE713A4E9fF0cEb79F27539f20a32a1 .,node_modules
(node:3652) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Compared the "MorphoGauntletPrimeUSDCStrategyProxy" contract with address 0x2B8f37893EE713A4E9fF0cEb79F27539f20a32a1 on mainnet
to local files under folders ".,node_modules"

match   @openzeppelin/contracts/utils/Address.sol
match   contracts/governance/Governable.sol
match   contracts/proxies/InitializeGovernedUpgradeabilityProxy.sol
match   contracts/proxies/Proxies.sol
  • Generalized4626Strategy
sol2uml diff 0xC4368860766F1409BeFfE6713CC170945022dE0A .,node_modules
(node:3712) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Compared the "Generalized4626Strategy" contract with address 0xC4368860766F1409BeFfE6713CC170945022dE0A on mainnet
to local files under folders ".,node_modules"

match   @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
match   @openzeppelin/contracts/token/ERC20/IERC20.sol
match   @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
match   @openzeppelin/contracts/utils/Address.sol
match   @openzeppelin/contracts/utils/math/SafeMath.sol
match   contracts/governance/Governable.sol
match   contracts/interfaces/IBasicToken.sol
match   contracts/interfaces/IStrategy.sol
match   contracts/interfaces/IVault.sol
match   contracts/strategies/Generalized4626Strategy.sol
match   contracts/token/OUSD.sol
match   contracts/utils/Helpers.sol
match   contracts/utils/Initializable.sol
match   contracts/utils/InitializableAbstractStrategy.sol
match   contracts/utils/InitializableERC20Detailed.sol
match   contracts/utils/StableMath.sol
match   contracts/vault/VaultStorage.sol
match   lib/openzeppelin/interfaces/IERC4626.sol
  • MorphoGauntletPrimeUSDTStrategyProxy
sol2uml diff 0xe3ae7C80a1B02Ccd3FB0227773553AEB14e32F26 .,node_modules
(node:3766) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Compared the "MorphoGauntletPrimeUSDTStrategyProxy" contract with address 0xe3ae7C80a1B02Ccd3FB0227773553AEB14e32F26 on mainnet
to local files under folders ".,node_modules"

match   @openzeppelin/contracts/utils/Address.sol
match   contracts/governance/Governable.sol
match   contracts/proxies/InitializeGovernedUpgradeabilityProxy.sol
match   contracts/proxies/Proxies.sol
  • Generalized4626USDTStrategy
sol2uml diff 0xd7a5997EabF06Ab8F2414A4C5a2470706EC4Baa7 .,node_modules
(node:3811) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Compared the "Generalized4626USDTStrategy" contract with address 0xd7a5997EabF06Ab8F2414A4C5a2470706EC4Baa7 on mainnet
to local files under folders ".,node_modules"

match   @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
match   @openzeppelin/contracts/token/ERC20/IERC20.sol
match   @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
match   @openzeppelin/contracts/utils/Address.sol
match   @openzeppelin/contracts/utils/math/SafeMath.sol
match   contracts/governance/Governable.sol
match   contracts/interfaces/IBasicToken.sol
match   contracts/interfaces/IStrategy.sol
match   contracts/interfaces/IVault.sol
match   contracts/strategies/Generalized4626Strategy.sol
match   contracts/strategies/Generalized4626USDTStrategy.sol
match   contracts/token/OUSD.sol
match   contracts/utils/Helpers.sol
match   contracts/utils/Initializable.sol
match   contracts/utils/InitializableAbstractStrategy.sol
match   contracts/utils/InitializableERC20Detailed.sol
match   contracts/utils/StableMath.sol
match   contracts/vault/VaultStorage.sol
match   lib/openzeppelin/interfaces/IERC4626.sol

shahthepro
shahthepro previously approved these changes Dec 18, 2024
Copy link
Collaborator

@shahthepro shahthepro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • All deployed contracts are listed in the deploy PR's description
  • Deployed contract's verified code (and all dependencies) match the code in master
  • Contract constructors have correct arguments
  • The transactions that interacted with the newly deployed contract match the deploy script.
  • Governance proposal matches the deploy script
  • Smoke tests pass after fork test execution of the governance proposal

@shahthepro shahthepro dismissed stale reviews from clement-ux and themself via 29d7e99 December 18, 2024 12:03
Copy link

github-actions bot commented Dec 18, 2024

Warnings
⚠️ 👀 This PR needs at least 2 reviewers

Generated by 🚫 dangerJS against 8968d8f

clement-ux
clement-ux previously approved these changes Dec 18, 2024
Copy link
Member

@sparrowDom sparrowDom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • All deployed contracts are listed in the deploy PR's description
  • Deployed contract's verified code (and all dependencies) match the code in master
  • Contract constructors have correct arguments
  • The transactions that interacted with the newly deployed contract match the deploy script.
  • Governance proposal matches the deploy script
  • Smoke tests pass after fork test execution of the governance proposal

@naddison36 naddison36 merged commit 8449003 into master Dec 30, 2024
15 of 19 checks passed
@naddison36 naddison36 deleted the nicka/deploy-morpho-gauntlet branch December 30, 2024 08:28
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.

4 participants