ntropika-labs / potion-protocol

2 stars 3 forks source link

Feat deposit request interface cu 3mejfzn #150

Closed wonderbeel closed 1 year ago

wonderbeel commented 1 year ago

This PR updates the HedgingVault page to use DepositRequests to the RoundsInputVault to allow users to deposit liquidity in the vault and eventually cancel the request.

The UX works like this:

aurelianoB commented 1 year ago

Task linked: CU-3mejfzn Request Deposit Input

RazorSiM commented 1 year ago
  • there is always an input to select how much collateral we want to deposit (and eventually approve it if the user doesn't have enough allowance)

The user is not depositing collateral though. The user is depositing the Underlying. I'm looking at the code now and I feel there's something off in the useCollateralTokenContract.ts