-
Notifications
You must be signed in to change notification settings - Fork 0
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
Work Plan: Write Liquidation Auction Results to Vstorage #2
Comments
Establish scope of this taskWe'll use this section what to deliver exactly. We aim to clarify the work scope here. Will DeliverMake the necessary updates to what's written to vstorage. Work on on-chain code. Might Deliver
|
Considerations:
|
Work Plan
|
agoric-sdkLink to agoric-sdk fork: https://github.com/Jorge-Lopes/agoric-sdk-liquidation-visibility |
Update: as clarified on call yesterday scope of this work is does not extend to adding liquidation results to info.inter.trade or alternative dashboard |
Problem Definition
Currently when there are liquidatable vaults present in one of the
vaultManagers
, it's collateral is deposited into theauctioneer
and a dutch auction is run. The problem is that too little information is exposed tovstorage
for running financial analysis and being transparent overall.Desired data to be exposed on
vstorage
:Which vaults got liquidated and added to an auction. For each vault
Auction details. For each auction run:
Post-auction funds distribution:
Open Questions
Solution Analysis
During our analysis, below are what we've found:
Auction Details
Information Per Vault
vaultData
vaultData
No data correlating individual vaults to liquidations can be found in vstorage. This raises a requirement which we have to put new data to vstorage. When going over vaultManager code, we've found this in liquidateVauıtls method
Where vaultData has the following type definition;
This means vaultData will have the exact amounts of collateral and debt going into the liquidation which is what we want and can expose this to vstorage.
Post Auction Details
Currently vstorage does not have any data in it in the sense that we described above. See this comment.
However, we've located where this data is in the vaultManager;
Notice that we know what vaults are reinstated or marked as liquidated along with their respective balances. A plan object is built progressively by iterating over these vaults. Which has the type definition;
This plan object satisfies our needs in Post Auction Details more than enough. We can cherry pick which ones to expose in vstorage.
The text was updated successfully, but these errors were encountered: