Although BTRY was originally designed to work with the Lightning Network and relatively small payments, it may eventually be appropriate to let users to bet and, more importantly, withdraw prizes using Bitcoin's first layer.
This would require to have enough on-chain liquidity available to process all withdrawals. Splices may facilitate this process, otherwise we would need a mechanism to loop-out funds or close idle channels automatically.
Once the issue above is solved, we should add support for receiving bets and sending withdrawals via on-chain transactions.
Design
The pages bet and withdraw should have two tabs Lightning and On-chain for the users to switch between layers.
The new on-chain section should have three inputs:
Bitcoin address
Amount in BTC or satoshis
Fee rate in sat/vB (optional)
If specified, the final fee amount should be deducted from the total amount sent. A tooltip should be next to the fee input box title explaining this.
If the fee rate is not set, we should use LND's estimatefee fastest option, with a maximum value of 200.
Description
Although BTRY was originally designed to work with the Lightning Network and relatively small payments, it may eventually be appropriate to let users to bet and, more importantly, withdraw prizes using Bitcoin's first layer.
This would require to have enough on-chain liquidity available to process all withdrawals. Splices may facilitate this process, otherwise we would need a mechanism to loop-out funds or close idle channels automatically.
Once the issue above is solved, we should add support for receiving bets and sending withdrawals via on-chain transactions.
Design
The pages
bet
andwithdraw
should have two tabsLightning
andOn-chain
for the users to switch between layers.The new on-chain section should have three inputs:
If the fee rate is not set, we should use LND's
estimatefee
fastest option, with a maximum value of 200.