Full disclosure; we are not yet sure what we want to do with this, but it is cool, and we hope others can build off of it (or find uses we have not yet thought of)
SyntheticRebaseDollar is an auto rebasing index that tracks the dollar value of the collateral that creates it.
Deposit $100 worth of LINK and you receive 100 srUSD. If the value of LINK increases by +50%, you will have 150 srUSD. There is no rebase trigger, this happens automatically every time the value of underlying collateral changes. There is no need to manually trigger a rebase, values are adjusted in real time (or per block time to be exact).
srUSD is an index based on the collateral provided, current collateral includes;
- ETH, renBTC, wBTC
- LINK, MKR, REN, SNX, YFI
- DAI, SUSD, TUSD, USDC, USDT
The index is entirely based on deposits. So if the majority of deposits are LINK, MKR, REN, SNX, YFI, then this is essentially a defi index. If it is DAI, SUSD, TUSD, USDC, USDT, it is a stable coin index.
How it works
- Deposit collateral
- Calculate USD value of collateral based on Chainlink feeds
- Mint an amount of srUSD equal to the value in USD
The adjustment factor is calculated in real time. This measures the value of collateral whenever viewed and creates a 1e4 base adjustment factor.
This allows function such as balanceOf() and totalSupply() to adjust in real time to match the value of collateral.
When you want to withdraw your collateral, you simply burn the srUSD you minted and withdraw the collateral.
As simple as that.
Here is the contract; 0xaa90d9cc2f41a150489da5fffba2060a2938ffdc
At time of creation this was a prototype part of another ecosystems we are working on;
SyntheticTrader: A permissionless USD settled leveraged long/short synthetic derivative protocol built ontop of StableCredit.
We look forward to suggestions on how to further develop this product.