Skip to content
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 V3 LP mini-app #77

Open
gabmontes opened this issue Oct 29, 2021 · 0 comments
Open

Uniswap V3 LP mini-app #77

gabmontes opened this issue Oct 29, 2021 · 0 comments
Labels
mini-app This is a request/spec of a new mini-app

Comments

@gabmontes
Copy link
Member

It is a problem today in DeFi that one cannot easily take a Uniswap V3 LP position, and deposit it into a lending platform or staking gadget. With Sushi or Uni-V2, the LP position is an ERC-20, which is trivially listed on a lending platform like Rari Fuse and used as collateral. Someone needs to do this with Uni-V3.

Uniswap provides staking contracts: https://docs.uniswap.org/protocol/reference/periphery/staker/UniswapV3Staker. However, there is no generalized factory which enables easy creation of ERC-20 LP tokens from arbitrary V3 LP positions.

Specification

  • User may create ERC-20 LP token using factory. UI: input 2 tokens, a couple LP position datum, and click "create".
  • User may list ERC-20 LP tokens created by factory.
  • User may deposit, withdraw token0 + token1 into LP token created by the factory.
  • User may claim fees based on the LP tokens they hold.

Thus: Factory creates LP token contracts. Each LP token is associated with a single Uniswap-V3 pair and position information (price curve/limit).

@gabmontes gabmontes added the mini-app This is a request/spec of a new mini-app label Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mini-app This is a request/spec of a new mini-app
Projects
None yet
Development

No branches or pull requests

1 participant