-
Notifications
You must be signed in to change notification settings - Fork 40
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
Kinked Swap Pool #105
Kinked Swap Pool #105
Conversation
…ot allow arbitrage opp (which it turns out my example did by mistake :) )
Great PR, thanks for sharing it. I was trying to understand the Oracles graph, and I had some doubts: (I will ignore fees in every case, assuming they don't exist)
Thanks again ❤️ |
The directions are the opposite. It's from the protocol's perspective on how much to pay for buying a gem in the top left (say USDC). NAV = Net Asset Value, the book value of the assets in this example. |
Closing with permission from @hexonaut |
NOTE: This is no longer needed. Leaving in case someone needs a kinked pool in the future. Pools that will be used have been merged into ALM Controller PR: #104
This will merge the PSM into the D3M design by pre-minting the DAI into the swap pool. The pool will be designed to target a particular desired exposure to an asset and use negative fees to pay arbitragers to fill the pool.
Contains the following new features beyond the original PSM:
assetBalance()
to return market valuation and theD3MHub
will compare assets vs liabilities to determine how much to send to surplus buffer (or take back).ratio
parameter is added to set a desired gem/dai ratio. Additionallytin
andtout
are split into two versions (one for below the desired gem/dai ratio and one above). This serves a few use cases:tout
fee would switch to a higher value to prevent full unwind). In the GUSD case this would be like keeping 490m GUSD and 10m DAI so that interest can be paid periodically without going over the 500m debt ceiling.ratio
can be set to some low amount say 40% where if the gem/dai ratio drops below this then thetout
increases to a larger number for market price discovery.Uses: