unlock-protocol / unlock

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

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

Open clemsos opened 1 month ago

clemsos commented 1 month 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 1 month ago

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

julien51 commented 2 days ago

Same for that one @0xTxbi ?

0xTxbi commented 2 days ago

sure thing, lgtm!