-
Notifications
You must be signed in to change notification settings - Fork 85
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
Uniswap Strategy #252
Comments
Our current allocate structure will actually work as is for Uniswap. Allocate iterates over all assets and deposits in one strategy to maintain a target weight for that strategy. So adding a Uniswap strategy that supports DAI and USDT will have the result we want, a strategy that fills up with DAI and USDT. The In practice this is far from optimal, we will end up with very small amounts of DAI and much higher values of USDT, leaving a lot of uninvested USDT in the strategy. If we are looking at the DAI/USDC pool however, what we have might work fine. I do think we should figure out a better approach, but I wanted to point out our existing setup would work for certain cases because I think we might be able to get to where we need to be with smaller changes than you might think. Some ideas I'm tossing around:
It seems like some of what may be required can be based off the calculateRedeemOutputs code. |
Add a vault strategy that takes stablecoin deposits and supplies them to one or more of the following liquidity pools:
We will need to decide how to allocate deposits and withdrawals since Uniswap liquidity pools necessarily involve dealing with two tokens at a time as opposed to our Compound strategy, which can lend or withdraw any single token.
The text was updated successfully, but these errors were encountered: