interlay / interbtc-ui

Kintsugi and Interlay App - BTC DeFi
https://app.interlay.io/
Apache License 2.0
32 stars 30 forks source link

Replace request fails - Ambiguous BalanceTooLow Error #745

Open philippb90 opened 1 year ago

philippb90 commented 1 year ago

Describe the bug When making a replace request without enough griefing collateral in INTR, the transaction fails with BalanceTooLow, which sounds more like the user entered an iBTC amount that is too high (at least for me)?

To Reproduce Steps to reproduce the behavior:

  1. Go to Vaults -> My Vault
  2. Click on 'Replace Vault'
  3. Enter amount and click 'Request'
  4. The transaction will fail with the error

Expected behavior It should show the estimated griefing collateral for replace in the UI, just like the one for issuing. The griefing collateral should also be added to the docs (e.g. as % of USD value to be replaced).

Screenshots image

sander2 commented 1 year ago

Someone from the community ran into this as well - I think this should be given some priority

nud3l commented 1 year ago

The UI should verify that whoever is making the request has enough griefing collateral before the user can make the transaction.