Agoric / agoric-sdk

monorepo for the Agoric Javascript smart contract platform
Apache License 2.0
323 stars 204 forks source link

Basic implementation of liquidations via OTC offers #5493

Open rowgraus opened 2 years ago

rowgraus commented 2 years ago

Timing: Mainnet 1 (somewhere between nice-to-have and must-have)

Needs full spec, but key elements:

  1. Adjustment to the liquidation contract to look for outstanding offers to buy collateral at an advantageous price. Product questions to answer: a) How senior is this check? I.e., does the liquidation contract only take offers if it can't sell via the AMM? Or does it check here first?) b) How does the liquidation engine ensure the offered price is good enough c) Core use case is for large liquidations: how does liquidation look at this relative to tranche-ing of sales

  2. Contract to accept OTC offers for liquidations Product questions: a) When do we expect people to provide these offers relative to the timing of the liquidation b) What is the interface c) How is this advertised? Broadly or do we need to recruit specific partners with capital?

Tartuffo commented 2 years ago

@rowgraus what needs to be done here for MN-1?

rowgraus commented 2 years ago

Ticket updated with thoughts. @btulloh to work on definition during July