Skip to content

Error transferring ERC20 tokens use callWithSyncFee #46

@crisramb665

Description

@crisramb665

Hi guys. I'm currently using the relay-kit to make ERC20 token transfers, using also the safe-relay-kit as a leverage to make those transfer form a Safe wallet account. But I've detected an issue trying to transfer some specific tokens such as DAI or USDT on Polygon mainnet. When I attempt to execute the relay transaction using callWithSyncFee that comes from safe-relay-kit, it seems it went through successfully (or at least this is what the gelato API is showing), but suddenly the explorer confirms the transaction was reverted.

Making a deep debugging using Tenderly and some unit-tests I realized The execution was reverted due to out of gas, but I made sure my Safe wallet has the enough MATIC funds to cover the gas and fees and has the enough ERC20 token balance. I even set a custom gas limit up to 500.000, which is too high for Polygon. I attach some transactions an their responses in order to resolve this quick.

I used this safe wallet to make the tests, but it's happening on several safe wallets: matic:0x0E4e8EC7bd334AF73Ed8d87457007664812737Fe

I also attach a Tenderly execution trace just to provide you guys the major quantity of clues.
https://dashboard.tenderly.co/tx/137/0xa7150fdd0453ce8a8162ca26a03555abb21832d396eaf4dfa6db89b50d7cd778?trace=0.1.5.0

I tried to remove the gas limit or even increase it even more and the transactions didn't go through either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions