lifinance / widget

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
https://li.fi/widget
Apache License 2.0
129 stars 85 forks source link

No swaps on Fantom works in Widget 3.0.0 #266

Closed paintoshi closed 4 months ago

paintoshi commented 4 months ago

I've upgraded to Widget 3.0.0 in a next.js app router project. The old version works with all networks, as seen on https://tinyswap.app/

The new widget works fine with Polygon network for example, but not Fantom. I've tried different tokens, even FTM -> wFTM, but all transactions fail due to missing hash. I'm using Rabby wallet extension in Chrome and the Rabby simulation of the transaction works fine, so shouldn't be a problem. It seems to me there is a bug in the li.fi library.

Update 1: It works fine in Metamask chrome extension, but fails consistently with Rabby wallet. However, Rabby wallet works fine with any other app, even the old Li.Fi widget version.

This is the branch with my upgrade: https://github.com/paintoshi/tinyswap/tree/app-router

Replicate:

  1. yarn install
  2. yarn dev
  3. Connect with Rabby wallet
  4. Swap any Fantom tokens
  5. Transaction will fail

Screenshots:

image

image

image

image

Chrome console error:

image

chybisov commented 4 months ago

Should be fixed in 3.1.0. Please upgrade 🙂

paintoshi commented 4 months ago

Confirmed solved