Sonic mainnet: queue wOS oracle hotfix to remove OS/S dependency#166
Sonic mainnet: queue wOS oracle hotfix to remove OS/S dependency#166Git-on-my-level wants to merge 2 commits intomainfrom
Conversation
|
Claude finished @Git-on-my-level's task —— View job Code Review Complete ✅Reviewing PR #166: Sonic mainnet wOS oracle hotfix to remove OS/S dependency Todo List:
📋 Code Review Feedback✅ Strengths
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ee6d2837b9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
|
|
||
| const [priceInfo, isAlive] = await wrapper.getPriceInfo(wOSAddress); | ||
| const rewiredPrice = BigInt(priceInfo[0]); |
There was a problem hiding this comment.
Parse getPriceInfo result without indexing bigint
wrapper.getPriceInfo(wOSAddress) returns (price, isAlive), so after const [priceInfo, isAlive] = ... the priceInfo variable is already the price value; indexing it with priceInfo[0] produces undefined and BigInt(undefined) throws. In runs where the script executes changes directly (for example, deployer has ORACLE_MANAGER_ROLE on mainnet), this causes the post-update verification path to fail even when the feed rewrite succeeded.
Useful? React with 👍 / 👎.
| /** | ||
| * Build Safe payload for removeCompositeFeed(asset). | ||
| */ | ||
| function createRemoveCompositeFeedTx(wrapperAddress: string, asset: string, wrapperInterface: any): SafeTransactionData { |
There was a problem hiding this comment.
we dont need remove, add overwrites completely
|
Claude finished @Git-on-my-level's task —— View job Claude Code finished reviewing the PR ✅ Todo List:
📋 Code Review Feedback✅ Strengths
|
|
Deployed to mainnet, need to commit artifacts |
Summary
wOScomposite USD feed to remove theOS/SdependencywOS/USDaswOS/OS * S/USD(implicitOS = Sassumption)GovernanceExecutorso updates are queued/executed via governance SafeS/USDforwOScomposite feedDeploy behavior
deploy/20_wos_oracle_hotfix/01_queue_remove_os_s_dependency.tsisMainnet)removeCompositeFeed+addCompositeFeedwOSalready points to directS/USDValidation
corepack yarn lint:eslintcorepack yarn hardhat compile