ubiquity / ubiquity-dollar

Ubiquity Dollar (uAD) smart contracts and user interface.
https://uad.ubq.fi
Apache License 2.0
31 stars 82 forks source link

Update UBQ Farming UI #341

Open 0x4007 opened 1 year ago

0x4007 commented 1 year ago

We changed the flow from manual steps (add liquidity in curve, then lockup LP token in our staking contract) to now “ape in” which handles both in a single transaction. Check packages/contracts/src/dollar/DirectGovernanceFarmer.sol

The new UI should be built on top of the related smart contact code changes. The context is available in https://github.com/ubiquity/ubiquity-dollar/issues/243

image

You can upgrade the "Stake Liquidity to Receive UBQ" panel with one that allows users to:

  1. Deposit their uAD+3pool stables (uAD/USDC/USDT/DAI) allow them to select the amount of each of course.
  2. Specify the amount of weeks for lockup.
  3. Be sure to leave the MAX button functionality in here as well.

Using the apeIn method!

0x4007 commented 1 year ago

I think that if we can unify the design to make sense for both LP tokens and for stables then it should be fine to include all of the above. @zgorizzo69

zgorizzo69 commented 1 year ago

then from a UI point of view is a dropdown ok to select either the stables or the (uad-3crv) LP to provide to apeIn ?

0x4007 commented 1 year ago

I would prefer to do whatever the others (instadapp?) do. Off hand a dropdown seems nice but perhaps less convenient than crv.to's UI where they have the separate text input boxes (each with their own MAX button) to quickly add liquidity in several different assets simulatiously.

0x4007 commented 1 year ago

Hey @zgorizzo69 check the .zip file here for the source code of crv.to add liquidity UI!

https://github.com/ubiquity/ubiquity-dollar/issues/167#issuecomment-1156856658

0x4007 commented 1 year ago

I think we should reduce this bounty though because the UI code should be most of the way there already with Zashton's zip file.

Sorry for the rug zgo but we spent like $2000 purchasing the UI code and I almost forgot about it lol

0x4007 commented 1 year ago

Payout was made already but the issue is not tested or merged and can not be closed until this is complete.

https://github.com/ubiquity/ubiquity-dollar/pull/367#issuecomment-1348510955

@zgorizzo69 https://etherscan.io/tx/0x566884b38af8be1818497824a2dbb84a57bc0074dcf7a9069a242661387f32a8

0x4007 commented 1 year ago

hey @zgorizzo69 what should we do with this issue?

ubiquibot[bot] commented 11 months ago

Releasing the bounty back to dev pool because the allocated duration already ended! Last activity time: Mon Dec 05 2022 10:36:45 GMT+0000 (Coordinated Universal Time)

ubiquibot[bot] commented 4 months ago
! action has an uncaught error
ubiquibot[bot] commented 4 months ago
! action has an uncaught error