SatoshiPortal / bullbitcoin-mobile

The Bull Bitcoin Mobile Wallet and Exchange App
MIT License
54 stars 18 forks source link

[Swap Fee Logic] Make swap fee display dynamic #262

Closed i5hi closed 2 months ago

i5hi commented 2 months ago

AllFees.fetch() no longer takes in an outputAmount value. So everytime we goto the recieve page, we can call this function and update the fees.

Boltz-fee comes back as a percentage, so as user types in an amount, we can dynamically calculate the fees and display it before the invoice is created.