-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add support for CRVV1ETHSTETH collateral vaults. #484
Comments
22 days ago the following post was made: it claimed that CRVV1ETHSTETH does not have numbers as vault ids. the linke in the comment is https://tracker-vaults.makerdao.network/collateral/CRVV1ETHSTETH-A following this link i find that now all the vaults there have their ids 🎉. opening https://etherscan.io/address/0x5ef30b9986345249bc32d8928b7ee64de9435e39 and using 'Read Contract' tool i've inspected the vault with id 29456. I was able to fetch the owner and the collateral type.
I can investigate further about what has changed and what was the case in the past. The hypothesis/speculation would be that the CDP_MANAGER still had the knowledge about this vaults but the vaults tracker was not up-to-date. Instead the tracker listed the vault contract addresses. (each vault id in the cdp manager has the corresponding vault contract that holds funds via VAT). So i would guess that the tracker just listed the vault addresses before the update. Later it updated it and ids have been fetched.
|
Doesn't seem to be true https://unified-auctions.makerdao.com/vaults?network=mainnet&vault=29456 |
Able to fetch the vault but currently not fetching its values correctly, right? |
Alright, this seems ugly. The storage of the vault address is done differently. Apparently opening the vault with this collateral absolutely requires a dss-proxy.
Todo/unanswered questions
to find out the contents of the vault 29456:
this is aligned with the vaults tracker (~100k $ of debt) |
Proposal on implementation
|
Can you directly try to call
Since the event is indexed, this seems to be not as hacky as with other events.
Should we then concentrate this change in a single place? A function to |
did not find a thing that would prevent this implementation way. But thinking about it more it seems like a more safe option to still do the direct comparison with the address of the contract that we get from the chainlog. Because the edge case: several other contracts could potentially have
👍
👍 |
Maybe I'm missing the point, but I'm not against this. I am just saying that instead of |
ok, makes sense, my point derived from yours is & was:
|
The edge case detected that is relevant for the simulation of this collateral and perhaps several others. As mentioned before, the join contract here is of type "Cropper" which is a proxy contract that has an implementation specified in the other contract. Specifically for CRVV1ETH here we have the following chain of
Therefore the edgecase description for the simulation of liquidation for CRVV1ETH sounds as follows:
Possible approaches to solve this:
|
As far as I understand the solutions is the workaround for "withdrawing tokens from VAT". Maybe it was invalid assumption to start with (that it will be easier to modify VAT amounts) instead of token amounts? Would taking a different approach to possess desired amount of tokens (outlined in #495) solve this particular problem? Then, I would split the scope of this issue to fixing information retrieval for CRVV1ETH vaults and move on to #495. |
Ok, let's scope this issue so that it can display and potentially liquidate the vaults of the type. the rest is up to discussion in the #495 |
Goal
Have vault module in
core/
be able to operate with collaterals of typeCRVV1ETHSTETH
just as it does with all the other types (e.g.ETH-A
). CRVV1ETHSTETH Vaults should be fetched, listed, mapped intoVaultTransaction
type. Simulations that involve interaction with collateral vaults should supportCRVV1ETHSTETH
as well.Context
CRVV1ETHSTETH
is handled differently on the chain. Usually vaults have the id that is handed out by CDP-Manager contract. With this one it is not the case. Which means that there is a different way of interaction with CRVV1ETHSTETH vaults.Assets
#479 has added the simulations, #460 adds the support for vaults in the core
Tasks
The text was updated successfully, but these errors were encountered: