unlock-protocol / unlock

Ʉnlock is a protocol for memberships built on a blockchain.
https://unlock-protocol.com
MIT License
845 stars 252 forks source link

Show estimate of the final cost for a key when using cross chain purchase #14066

Open clemsos opened 5 months ago

clemsos commented 5 months ago

I am trying to buy a lock on Arb with MATIC. The price shown is 0.06262 MATIC. I had 1 MATIC in my wallet but the tx wont go through. After added another MATIC it worked, and it turned out that the final price was 1.803 MATIC (quite some difference). I guess the bulk of difference is gas / bridge / decent fee, but it may be better to show an estimate

Screenshot 2024-06-18 at 15 44 46

image

julien51 commented 5 months ago

Good point, we should show both the ERC20 + the cost in native tokens (used for fees + crosschain gas)

julien51 commented 4 months ago

Same for that one @0xTxbi ?

0xTxbi commented 4 months ago

sure thing, lgtm!