Closed wonderbeel closed 1 year ago
Task linked: CU-3mejfzn Request Deposit Input
- 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
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: