-
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
Enable LUSD Collateralization #609
Comments
To clarify this bounty should be focusing on enabling LUSD collateral support for the Ubiquity Dollar by forking FRAX's relevant contract. We should handle this initiative iteratively, and turn all the following points into separate bounties. For this particular bounty, to get started, lets just focus on forking FRAX's contract, clean up any issues we find, and switching the accepted collateral to LUSD? Does that sound like a good plan? If so, @zgorizzo69 can you confirm? Planned/Draft Bounties@zgorizzo69 I would like your feedback on these planned bounties. If we have a lot of back-and-forth we can open up a discussion but I hope that over a few comments/direct edits to this, we can figure out a sensible plan.
|
We should also think through what we will do about LUSD when it is above peg. I think we should allow mints and redemptions based on the current largest liquidity market's TWAP of LUSD instead of just hard coding $1 |
If we're not requiring any UBQ to mint, will it instead work with an assumption that we are always at a 100% collateral ratio? FRAX also uses the value of each token in USD, ie if LUSD is valued at $1.01 USD and uAD is valued at $1.00 then 1 LUSD can be used to mint 1.01 uAD. Are we keeping that structure? uAD can only be minted when it is marginally over peg, should the inverse be true for redemption? What is the expectation of behavior from users with this feature if either LUSD or uAD were to radically fall below peg? |
Yes we will aim for 100%+ collateralization. We can seed a some excess from the treasury funds. Beyond that, yield is planned to be generated using our vaults (focus on LP.)
Yes
Yes
|
note for the yield we can take a look at that |
Unfortunately there is a bug loading this link:
Based on the url, I'm guessing its staking yield for Liquity (last time I checked it was ~8% APR last week) which is different. What we want to do a little bit more similar to FRAX again with LPing part of the collateral in different assets (e.g. ETH-USDC for ~30% APR as I did with some of the treasury funds during the last year.) |
/start |
Too many assigned issues, you have reached your max of 2 |
FRAX uses Chainlink to get prices in USD. Are we planning on doing the same or do we have another source? |
We will need to use AMM TWAPs I suppose unless anybody has a better idea. After proof of stake, from what I understand, multi block AMM TWAP exploits are much more possible. @Draeieg has a complex oracle design which relies on the Curve Registry in the works which we could upgrade to in the future. |
full details of the oracle to be here #340 (comment) |
Do you have any updates @hashedMae? If you would like to release the bounty back to the DevPool, please comment |
work ongoing |
To use USD value we'd need to use a Chainlink Oracle for ETH:USD then use the LUSD:ETH and UAD:ETH values to get each in USD. We both don't want to use Chainlink Oracles because they're not permissionless and there's insufficient UAD:ETH liquidity to be reliable. The best option is to price each in 3CRV as that's the only place UAD has significant liquidity depth. |
Perhaps we can brainstorm options in the group chat to get a faster answer? I think it's a problem for future us to get the liquidity needed? We could proceed with this design assuming that there will be liquidity. We could also seed some liquidity, and eventually do liquidity mining incentives i.e. Curve bribes. Otherwise, I feel like there must be a way to do this without Chainlink. Perhaps we could try roundabout strategies like checking DAI-USDT ratio and then DAI-LUSD |
3Curve Pool contract has a |
Sounds promising but if we rely on 3crv doesn't that make our assets under management less pure than only a uAD-LUSD primary market? Using Curve the users should be able to go from uAD to any other stable assuming that Curve has an order router like Uniswap (I'm actually not 100% sure about this.) |
Do you have any updates @hashedMae? If you would like to release the bounty back to the DevPool, please comment |
We're just using the Oracle features of Curve Metapools and the price of the 3crv LP token. It's the closest we can get to prices in USD without using Chainlink. |
I've asked our group chat to provide some alternative proposals here as I'm unable to do a deep dive on research at this time. |
Do you have any updates @hashedMae? If you would like to release the bounty back to the DevPool, please comment |
nearly finished, just need to fill out the natspec |
Do you have any updates @hashedMae? If you would like to release the bounty back to the DevPool, please comment |
@ubiquibot shouldn't do this once a PR is published |
I'm not sure the deployment policy @0xcodercrane but this capability has already been merged in ubiquity/ubiquibot#257 |
Do you have any updates @hashedMae? If you would like to release the bounty back to the DevPool, please comment |
Releasing the bounty back to dev pool because the allocated duration already ended! |
/start |
Skipping |
Do you have any updates @zgorizzo69? If you would like to release the bounty back to the DevPool, please comment |
[ CLAIM 1200 DAI ]
|
In the same fashion as FRAX
we want a minting and redeeming uAD mechanism where users can deposit LUSD or sUSD and get uAD in return.
We don't require any gov token to mint.
uAD price should be greater than $1.005 to allow for minting otherwise users must purchase from the market
The text was updated successfully, but these errors were encountered: