Skip to content

feat: generic mock oracle middleware and cbBTC deployment script on fork - #931

Open
KirienzoEth wants to merge 5 commits into
feature/cb-btcfrom
feature/generic-mock-oracle-middleware
Open

feat: generic mock oracle middleware and cbBTC deployment script on fork#931
KirienzoEth wants to merge 5 commits into
feature/cb-btcfrom
feature/generic-mock-oracle-middleware

Conversation

@KirienzoEth

Copy link
Copy Markdown
Contributor

This PR adds a generic MockOracleMiddlewareWithPyth contract.
As the cbBTC does not have any notable feature from a technical perspective, there's no need for custome code. This can be the case for a lot of ERC20 tokens, so instead of creating a dedicated mock, I pushed one that can be used with any underlying that doesn't need custom logic (contrary to the wstETH for example).

This PR also adds the deployement script to deploy the cbBTC USDN Protocol on a fork, the deployed protocol will use the generic MockOracleMiddlewareWithPyth.

Closes RA2BL-1207

@KirienzoEth
KirienzoEth changed the base branch from main to feature/cb-btc August 28, 2025 09:50
@beeb
beeb self-requested a review September 3, 2025 09:45
Comment thread script/fork/DeployUsdnCbbtcUsdFork.s.sol Outdated
@KirienzoEth
KirienzoEth requested a review from beeb September 16, 2025 11:15

@beeb beeb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtmmmmm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants