-
Notifications
You must be signed in to change notification settings - Fork 84
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
Sonic Deploy 002 - Oracle Router #2354
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## nicka/sonic #2354 +/- ##
===============================================
- Coverage 54.25% 52.72% -1.53%
===============================================
Files 89 89
Lines 4396 4396
Branches 1158 1158
===============================================
- Hits 2385 2318 -67
- Misses 2008 2075 +67
Partials 3 3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this 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
- OSonicOracleRouter
- Deployed contract's verified code (and all dependencies) match the code in master
- Small difference in the
OETHFixedOracle.sol
.
- Small difference in the
- Contract constructors have correct arguments
-
Address(0)
-
- The transactions that interacted with the newly deployed contract match the deploy script.
- No interaction.
- Governance proposal matches the deploy script
- Call function
0x372aa224
(setPriceProvider(address)
selector) on0xa3c0eCA00D2B76b4d1F170b0AB3FdeA16C180186
(VaultProxy) with args0x4f5239bccbd266bdbc7233dae9159e279fa447d1
(deployed oracle router).
- Call function
- Smoke tests pass after fork test execution of the governance proposal
Diff
sol2uml diff 0x4f5239bcCbd266Bdbc7233dAE9159e279fa447D1 .,node_modules -n sonic
(node:3021) 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)
Changed contracts/oracle/OETHFixedOracle.sol
contract OSonicOracleRouter is OETHFixedOracle {
constructor() OETHFixedOracle(0x0000000000000000000000000000000000000000) {}
}
Compared the "OETHFixedOracle" contract with address 0x4f5239bcCbd266Bdbc7233dAE9159e279fa447D1 on sonic
to local files under folders ".,node_modules"
match @openzeppelin/contracts/utils/math/SafeCast.sol
match @openzeppelin/contracts/utils/math/SafeMath.sol
match contracts/interfaces/chainlink/AggregatorV3Interface.sol
match contracts/interfaces/IBasicToken.sol
match contracts/interfaces/IOracle.sol
match contracts/oracle/AbstractOracleRouter.sol
changed contracts/oracle/OETHFixedOracle.sol
match contracts/oracle/OETHOracleRouter.sol
match contracts/utils/Helpers.sol
match contracts/utils/StableMath.sol
I propose we use this deploy, that corrects the Oracle Router contract name: #2355 |
I'm in favor too, sol2uml doesn't show any this differences in this new deploy. |
Closing in favour of #2355 |
Dependencies
Deployment
Deploy scripts
contracts/deploy/sonic/002_oracle_router.js
Contracts
The
OSonicOracleRouter
contract is a deployment of theOETHFixedOracle
contract. Locally in the repo it's theOSonicOracleRouter
contract but is verified asOETHFixedOracle
on SonicScan.Governance
The following governance actions need to go through the
Timelock
contract via the Admin 5/8 multisigSchedule Batch in Timelock
Execute Batch in Timelock
Deploy checklist
Two reviewers complete the following checklist: