-
Notifications
You must be signed in to change notification settings - Fork 91
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
Research: overcollateralization mechanic #908
Comments
Any idea on time estimate? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I've updated the description, time estimate is fine |
@rndquu So this issue is being caused by sudden price pump? |
@rndquu @pavlovcik To resolve this, we should apply a major change to protocol contracts I guess, |
This doesn't seem like a good approach. We should aim to make minimal changes to our protocol, especially because we just paid for an audit. |
Indeed not a good approach |
@pavlovcik @molecula451 I understand your concern |
Yes, check:
We don't use any AMOs right now
Take the FRAX token to see expected price fluctuations
We should take any audited stablecoin contract with overcollateralization mechanic and apply it to the project |
@rndquu @pavlovcik |
Given that we are not a CDP protocol its not possible |
This issue implies adding CDP mechanic to the protocol, similar to how Maker generates DAI, so LUSD should definitely have related contracts |
I don't understand the issue with FRAX's economic model. I'm also not open to this direction, unless it's intended to be some type of internal mechanism for us to create some type of small "insurance" policy. To be honest I don't really understand the vision here. Seems useless to only support CDP for a stablecoin |
@rndquu I re-read the original audit proposal and as I understand, we should allow redeems only below $1.00 and mints above $1.00. Wouldn't this be mathematically impossible to have the proposed problem with insolvency? I feel that I am not understanding the problem.
If UUSD is worth $0.50, using 10 UUSD to redeem should not give the user 5 LUSD, it should always be 10 LUSD. That's how we keep the peg. If UUSD is worth $2.00, redemptions should be disabled. Instead the user should sell on the market. |
Chainlink oracles update faster than curve's TWAP (that is used for checking UUSD price) hence it is possible in theory to mint with UUSD < $1.00 and redeem with UUSD > $1.00. Although in a very rare case.
We could transfer AMO yield to the pool which could serve as a "small insurance policy". |
Aave solves the same issue of possible insolvency (if liquidations/oracles are late or in case of a smart contract bug) via a safety module. How it works:
I understand that current issue is improbable but I still don't want to close it since if we acquire a decent amount of liquidity and face a too volatile marker which would make the ubiquity pool undercollateralized then somebody would find this github issue and make another https://rekt.news/ post out of it. |
I think copying AAVE as sort of a "default answer" is acceptable. They have a good security track record. |
There is only one audit's issue that we haven't fixed yet: sherlock-audit/2023-12-ubiquity-judging#60
This is not critical but during a black swan event it will make the pool insolvent to some extent. We should add the overcollateralization mechanic (similar to
DAI
,CRVUSD
orLUSD
) which is much more resistant to sudden collateral depegs.This is a research issue, as a result we should get a detailed step by step guide of what audited contracts we should fork/revamp and how they fit (i.e. how we should use them) in the overall Dollar protocol architecture.
When the overcollateralization mechanic is implemented we could:
Dollar
tokens only on secondary markets)Dollar
token USD peg which is much more resistant to sudden collateral depegsThe text was updated successfully, but these errors were encountered: