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

Deploy 117 - OETH Fixed Rate Dripper #2351

Merged
merged 13 commits into from
Jan 16, 2025
Merged

Deploy 117 - OETH Fixed Rate Dripper #2351

merged 13 commits into from
Jan 16, 2025

Conversation

clement-ux
Copy link
Contributor

@clement-ux clement-ux commented Jan 14, 2025

Dependencies

Deployment

  • 117_oeth_fixed_rate_dripper.js

Contract

Contract Address
current new OETHDripper Implementation 0x0929C0fbFF88e129ACaA51Bba0C959491325b4aD
new OETHFixedRateDripper Proxy 0xe3B3b4Fc77505EcfAACf6dD21619a8Cc12fcc501
new OETHFixedRateDripper Implementation 0x7F90FaDc4F4B155Cd2026Ed1Ac54343164e9E81D

Governance

[
  [
    "0xc0F42F73b8f01849a2DD99753524d4ba14317EB3",
    "0xc0F42F73b8f01849a2DD99753524d4ba14317EB3",
    "0x39254033945AA2E4809Cc2977E7087BEE48bd7Ab"
  ],
  [
    {
      "type": "BigNumber",
      "hex": "0x00"
    },
    {
      "type": "BigNumber",
      "hex": "0x00"
    },
    {
      "type": "BigNumber",
      "hex": "0x00"
    }
  ],
  [
    "upgradeTo(address)",
    "transferAllToken(address,address)",
    "setDripper(address)"
  ],
  [
    "0x0000000000000000000000000929c0fbff88e129acaa51bba0c959491325b4ad",
    "0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000e3b3b4fc77505ecfaacf6dd21619a8cc12fcc501",
    "0x000000000000000000000000e3b3b4fc77505ecfaacf6dd21619a8cc12fcc501"
  ]
]
0xda95691a00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004600000000000000000000000000000000000000000000000000000000000000003000000000000000000000000c0f42f73b8f01849a2dd99753524d4ba14317eb3000000000000000000000000c0f42f73b8f01849a2dd99753524d4ba14317eb300000000000000000000000039254033945aa2e4809cc2977e7087bee48bd7ab00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000001275706772616465546f286164647265737329000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000217472616e73666572416c6c546f6b656e28616464726573732c616464726573732900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001373657444726970706572286164647265737329000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000929c0fbff88e129acaa51bba0c959491325b4ad0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000e3b3b4fc77505ecfaacf6dd21619a8cc12fcc5010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000e3b3b4fc77505ecfaacf6dd21619a8cc12fcc5010000000000000000000000000000000000000000000000000000000000000000

Note

It would be nice to have this proposal merged before: #2350

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

@clement-ux clement-ux changed the title Clement/deploy 117 Deploy 117 - OETH Fixed Rate Dripper Jan 14, 2025
@clement-ux clement-ux marked this pull request as ready for review January 14, 2025 17:42
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

Diff:

Compared the "OETHFixedRateDripperProxy" contract with address 0xe3B3b4Fc77505EcfAACf6dD21619a8Cc12fcc501 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
Compared the "OETHDripper" contract with address 0x0929C0fbFF88e129ACaA51Bba0C959491325b4aD on mainnet
to local files under folders ".,node_modules"

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/SafeCast.sol
match   contracts/governance/Governable.sol
match   contracts/harvest/Dripper.sol
match   contracts/harvest/OETHDripper.sol
match   contracts/interfaces/IBasicToken.sol
match   contracts/interfaces/IStrategy.sol
match   contracts/interfaces/IVault.sol
match   contracts/token/OUSD.sol
match   contracts/utils/Helpers.sol
match   contracts/utils/Initializable.sol
match   contracts/vault/VaultStorage.sol
Compared the "OETHFixedRateDripper" contract with address 0x7F90FaDc4F4B155Cd2026Ed1Ac54343164e9E81D on mainnet
to local files under folders ".,node_modules"

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/SafeCast.sol
match   contracts/governance/Governable.sol
match   contracts/harvest/Dripper.sol
match   contracts/harvest/FixedRateDripper.sol
match   contracts/harvest/OETHFixedRateDripper.sol
match   contracts/interfaces/IBasicToken.sol
match   contracts/interfaces/IStrategy.sol
match   contracts/interfaces/IVault.sol
match   contracts/token/OUSD.sol
match   contracts/utils/Helpers.sol
match   contracts/utils/Initializable.sol
match   contracts/vault/VaultStorage.sol

shahthepro
shahthepro previously approved these changes Jan 16, 2025
Copy link

Warnings
⚠️ 👀 This PR needs at least 2 reviewers

Generated by 🚫 dangerJS against b2bb713

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 53.04%. Comparing base (82baad3) to head (b2bb713).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
contracts/contracts/harvest/Dripper.sol 0.00% 3 Missing ⚠️
...ntracts/contracts/harvest/OETHFixedRateDripper.sol 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2351      +/-   ##
==========================================
- Coverage   53.09%   53.04%   -0.06%     
==========================================
  Files          82       83       +1     
  Lines        4196     4200       +4     
  Branches     1101     1102       +1     
==========================================
  Hits         2228     2228              
- Misses       1965     1969       +4     
  Partials        3        3              

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


/// @dev Transfer out all ERC20 held by the contract. Governor only.
/// @param _asset ERC20 token address
function transferAllToken(address _asset, address _receiver)
Copy link
Member

Choose a reason for hiding this comment

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

its ok for now, but ideally the feature change PR would be separate from the deploy PR of that feature. Like you had a separate feature PR here then you can fork off of the feature branch to create the deployment branch that only has the deployment related files.

@sparrowDom
Copy link
Member

sparrowDom commented Jan 16, 2025

  • 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

code diff checks

npx sol2uml diff 0x0929C0fbFF88e129ACaA51Bba0C959491325b4aD .,node_modules
Compared the "OETHDripper" contract with address 0x0929C0fbFF88e129ACaA51Bba0C959491325b4aD on mainnet
to local files under folders ".,node_modules"

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/SafeCast.sol
match   contracts/governance/Governable.sol
match   contracts/harvest/Dripper.sol
match   contracts/harvest/OETHDripper.sol
match   contracts/interfaces/IBasicToken.sol
match   contracts/interfaces/IStrategy.sol
match   contracts/interfaces/IVault.sol
match   contracts/token/OUSD.sol
match   contracts/utils/Helpers.sol
match   contracts/utils/Initializable.sol
match   contracts/vault/VaultStorage.sol

npx sol2uml diff 0xe3B3b4Fc77505EcfAACf6dD21619a8Cc12fcc501 .,node_modules
Compared the "OETHFixedRateDripperProxy" contract with address 0xe3B3b4Fc77505EcfAACf6dD21619a8Cc12fcc501 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

npx sol2uml diff 0x7F90FaDc4F4B155Cd2026Ed1Ac54343164e9E81D .,node_modules
Compared the "OETHFixedRateDripper" contract with address 0x7F90FaDc4F4B155Cd2026Ed1Ac54343164e9E81D on mainnet
to local files under folders ".,node_modules"

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/SafeCast.sol
match   contracts/governance/Governable.sol
match   contracts/harvest/Dripper.sol
match   contracts/harvest/FixedRateDripper.sol
match   contracts/harvest/OETHFixedRateDripper.sol
match   contracts/interfaces/IBasicToken.sol
match   contracts/interfaces/IStrategy.sol
match   contracts/interfaces/IVault.sol
match   contracts/token/OUSD.sol
match   contracts/utils/Helpers.sol
match   contracts/utils/Initializable.sol
match   contracts/vault/VaultStorage.sol

@DanielVF
Copy link
Collaborator


image

@shahthepro shahthepro merged commit 5ff14c4 into master Jan 16, 2025
17 of 20 checks passed
@shahthepro shahthepro deleted the clement/deploy_117 branch January 16, 2025 15:04
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