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

Test forking of the goerli network #555

Open
3 tasks
valiafetisov opened this issue Dec 1, 2022 · 6 comments
Open
3 tasks

Test forking of the goerli network #555

valiafetisov opened this issue Dec 1, 2022 · 6 comments

Comments

@valiafetisov
Copy link
Contributor

Goal

Simulations work on goerli

Context

In order to work with the new spell on goerli, we should validate that it works if our setup works on goerli.

Tasks

  • Test collateral simulation script on goerli
  • Document any problems here, propose solutions
  • Fix, if required
@valiafetisov
Copy link
Contributor Author

valiafetisov commented Dec 1, 2022

Currently, simulation script "Simulate collateral auction per collateral type" fails with Error: No contract address found for "CDP_REGISTRY". The frontend started without any problems, as expected

Actual error thrown (after adding additional logging) is:

No contract address found for "CDP_REGISTRY" Error: call revert exception; VM Exception while processing transaction: reverted with reason string "dss-chain-log/invalid-key" [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="getAddress(bytes32)", data="0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000196473732d636861696e2d6c6f672f696e76616c69642d6b657900000000000000", errorArgs=["dss-chain-log/invalid-key"], errorName="Error", errorSignature="Error(string)", reason="dss-chain-log/invalid-key", code=CALL_EXCEPTION, version=abi/5.6.4)

@valiafetisov
Copy link
Contributor Author

valiafetisov commented Dec 1, 2022

It turns out chainlog on goerli doesn't have CDP_REGISTRY contract for whatever reason. Not sure if it's deployed whatsoever? Next actions:

  • Find if it's deployed, but wasn't added to the chainlog
  • Check if we can remove this dependency to create vaults

@valiafetisov
Copy link
Contributor Author

CDP_REGISTRY address on the mainnet: https://etherscan.io/address/0xBe0274664Ca7A68d6b5dF826FB3CcB7c620bADF3

@KirillDogadin-std
Copy link
Contributor

KirillDogadin-std commented Dec 5, 2022

Does not seem like we can just easily remove this dependency:

  • there's not only the cdp registry missing, but also the cropper contract infrastructure. so, for instance, we are not able to find the target contract to execute actions on because PROXY_ACTIONS_CROPPER is also missing from the chainlog.
  • due to the above it seems to me like we would have to rewrite at least half the logic in order to make this work in both places (unless we hardcode the logic for goerli somehow).

Let me know if i should look further.

@valiafetisov
Copy link
Contributor Author

Cdp registry on goerli is

Great. Have you found it just by searching in the spells-goerli repo?

PROXY_ACTIONS_CROPPER

This seems unrelated to the GNO onboarding, as this collateral doesn't seem to require a cropper.

By (temporary) hardcoding the CDP_REGISTRY address I was able to create a ETH-A vault on goerli in #556. Technically, CDP_REGISTRY should only be required for the proxied collaterals, so we might reimplement this dependency as a fallback, not main code

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

No branches or pull requests

2 participants