Comments (3)
Alternative solution 2: restrict withdrawGainsFromSPtoCDP
to large positions with >$1000 worth of ETH as collateral. Also restrict liquidateCDPs
to sequences of CDPs that do not have stability deposits, i.e. revert if any CDP along the way is linked to an SP. CDPs with stability deposits can thus only be liquidated individually via liquidate()
.
Rationale:
- We'd also probably expect borrowers close to the MCR to be less likely to be stability pool users (except in black swan events). So
liquidateCDPs
should still be useful. - The main motivation behind
withdrawGainsFromSPtoCDP
is to make stability deposits more attractive and to eventually increase the amount of deposits. Given the expected wealth distribution in crypto, the stability pool will likely be dominated by whales anyway, so barring out small CDPs might not change the overall deposited amount too much.
from dev.
Liquidations no longer require a hint - I'll mark this issue closed.
Instead of calling withdrawFromSPtoCDP
and applying the Borrower's ETH gain earned by his stability deposit, liquidations now use a new function, getNewICRFromPendingSPGain
, to check what the ICR would be if the Borrower's pending ETH gain was applied.
If the CDP would be left active, the liquidation halts - otherwise, it proceeds.
With this approach no reinsertion is required (and nor a hint). It also gives a significant gas saving.
from dev.
Liquidations are now completely decoupled from SP gains. Liquidation of a trove is conditional only on the raw ICR of the trove.
Borrowers can still voluntarily call withdrawFromSPtoCDP
, and withdraw their ETH gain to their trove.
from dev.
Related Issues (20)
- how to show the redeem part in the dev env
- the ability to use the Avalanche C-Chain.
- Hi can u explain n edit this to true where its false and how can I add this file to the trading app HOT 1
- Typo in file name LSUDUsdToLUSDEth.sol HOT 1
- Unable to access https://liquity.app/
- Prerequisites not properly defined
- Repository for "concat-stream" missing
- Deployment requires discontinued testnets
- yarn install fail HOT 1
- `SortedTroves. insert` is vulnerable to developer error
- Liquidity
- Liquidity/dev
- Errors when running test HOT 11
- Uniswap doesn't have the required data to calculate yield HOT 9
- Test bug - a lib-ethers test calls getLQTYBalance instead of getLUSDBalance HOT 1
- docs: private development chain link is broken
- Docs: AdjustTrove documentation seem outdated
- Okan
- Chickenbond front end does not work with Ankr RPC HOT 3
- Fix UI layout for Mobile Browsers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dev.