Skip to content

Enhancement: Surface denied/unsupported token errors before execution #81

@askeluv

Description

@askeluv

Description

Some tokens silently fail during trading — BRETT is on LiFi's deny list and had no OKX liquidity, AERO reverted on-chain without a clear reason (LiFi returned 502). In both cases the CLI doesn't tell the user why it failed.

Current Behavior

  • Denied tokens: quote may succeed but execution fails or reverts, wasting gas
  • Reverted swaps: user sees a generic revert with no explanation

Expected Behavior

  • Check token support/deny lists before quoting (LiFi and OKX both expose this)
  • Surface the deny-list reason in the error message
  • On revert, attempt to decode the revert reason and display it

Examples from Testing

  • BRETT (0x532f27101965dd16442E59d40670FaF5eBB142E4) — LiFi deny list, no OKX liquidity
  • AERO — ETH→AERO reverted on-chain, LiFi 502: reverted tx
  • Cost: 2 failed txs wasted ~$0.02 gas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions