Skip to content

feat: create shortdn fork deployment script #911

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blablalf
Copy link
Contributor

@blablalf blablalf commented Apr 17, 2025

This PR is not ready to be reviewed.

  • Moved the fork files into standardized folders in order to able the backend team to increase dynamization of docker image creation for forked env.
  • Take a look at the todo comments into the DeployUsdnWusdnFork.s.sol. It would be nice if we add a mock version of WusdnToEthOracleMiddlewareWithPyth contract. It would allow us to just have to call these instructions in order to use wusdnToEthOracleMiddleware_:
MockWusdnToEthOracleMiddlewareWithPyth(wusdnToEthOracleMiddleware_).setVerifySignature(false);
MockWusdnToEthOracleMiddlewareWithPyth(wusdnToEthOracleMiddleware_).setWstethMockedPrice(price);

Otherwise, we need to link price value (wUSDN/ETH price's) into wusdnToEthOracleMiddleware_ and a way to not verify the pyth signature during the rest of the protocol deployment.

  • The usual USDN contract has been updated (UsdnNoRebase) and has no more multiple roles but just owner with onlyOwner modifier. This means that the backend test that triggers the USDN events is broken (because we cannot give the roles to msg.sender anymore since they are required by the protocol) and will need to be rewritted into the ShortDN version of the backend. The USDN Protocol address could be impersonnated in order to be able to trigger the USDN events easily.

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.

1 participant