saddle-finance / saddle-frontend

An open source UI for saddle.finance 🤠
https://saddle.exchange
54 stars 58 forks source link

Staking / unstaking SLP into SDL/ETH gauge #1094

Closed hammeiam closed 2 years ago

hammeiam commented 2 years ago

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:

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 commented 2 years ago

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. https://github.com/saddle-finance/saddle-frontend/pull/1099

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