keep-network / tbtc-dapp

Deposit BTC and redeem TBTC
http://dapp.test.tbtc.network/
MIT License
33 stars 31 forks source link

Make lot sizes inactive in the tbtc dapp if there are not enough operators in pool #386

Open dnkta opened 3 years ago

dnkta commented 3 years ago

Hello everyone,

I have a suggestion for the tBTC dapp.

When someone wants to mint 5 or 10 tBTC and there are not enough operators with ETH available for bonding, currently you can still select 5 or 10 tBTC and go to STEP 2/5 where it says Initiating deposit. Then nothing happens until you check the error log to see that there are not enough operators in pool.

I would suggest to create a check at "Select Lot Size" and if there are not enough operators with ETH available, make the 5 or 10 tBTC option inactive/grayed out.

pdyraga commented 3 years ago

Thanks for this suggestion @dnkta, this is indeed a very good idea. I guess some UX challenge is going to be to clearly express why those buttons are greyed out. Also, I am not sure if it is possible to read the required information from the sortition pool 🤔