connext / monorepo

Connext is a modular stack for trust-minimized, generalized communication between blockchains.

Home Page:https://docs.connext.network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ICE: 16] Router can't withdraw ezETH in UI

ekbainova opened this issue · comments

commented

Describe the bug
The bug filed by bwarelabs and Dialectic

Not only ezETH, also stablecoin.

...We are having some issues when trying to unwrap xezeth back to ezEth in the UI.
We don't receive any Metamask pop-up to allow tokens to be spend, only that error.

Screenshots
telegram-cloud-photo-size-4-5983471360313246247-y.jpg

SLA: 1 wd

      const contract_data =
        contractData || getContractData(chain_id, contracts!);
      const { xERC20, decimals, lockbox } = contract_data || {};
      const _amount = parseUnits(data?.amount, decimals);

      console.log("[unwrap]", { contract_address: xERC20, amount: _amount });
      const contract = new Contract(lockbox, ABI, signer);
      const response = await contract.withdraw(_amount);

Something in this logic doesn't account for allowance?

commented

@jwtong any updates?

Maybe need @just-a-node to weigh in whether we're missing an allowance call

Yeah, it should check allowance first and call it if needed before wrap/unwrap.

commented

This is what i see. Screenshot 2024-06-13 at 15.07.21.png