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

Staking / unstaking SLP into SDL/ETH gauge #1094

Closed
Tracked by #1056
hammeiam opened this issue Jun 20, 2022 · 1 comment
Closed
Tracked by #1056

Staking / unstaking SLP into SDL/ETH gauge #1094

hammeiam opened this issue Jun 20, 2022 · 1 comment
Assignees

Comments

@hammeiam
Copy link
Contributor

hammeiam commented Jun 20, 2022

We would like to display and promote the SDL/WETH Sushi pool in our UI. We do not currently have a way to natively interact with non-saddle pools, so this will be some custom logic. Here are the requirements:

  • The UI should look mostly like a regular pool, but without the Volume
  • Should only be displayed on mainnet, only when IS_VESDL_LIVE is true
  • Should always be the first pool shown
  • Should have a place to show the user's staked balance (I believe our existing pools already have UI for this)
  • When the user clicks "stake" or "unstake", UI should appear that shows the user's stakeable balance, collects their input, and has a button to initiate a transaction. See https://app.alchemix.fi/farms as an example. This should probably reuse our TokenInput component if possible.
  • We only need the UI for this ticket, I can add the contract logic shortly.
  • It would be nice to somehow differentiate it from the normal Saddle pools, but we can figure this out later.

I'm open to any other ideas to make this component more usable - I trust your judgement.

Screen Shot 2022-06-20 at 10 31 03 PM

Screen Shot 2022-06-20 at 12 24 09 PM

@hammeiam
Copy link
Contributor Author

Note, I have a PR up which exposes the Sushi Contract. This PR will automatically fetch the user's sushi lp token balance and make it available via the UserStateProvider. The pool's totalSupply will be available in redux. #1099

In another PR, I will account for the sushi pool in gauges and gauge aprs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants