Skip to content
Crypto Blog

Crypto guides and market analysis

ETH Must Be WETH Before a DEX Limit Order

To wrap ETH to WETH for a DEX limit order, deposit ETH into the chain’s WETH contract, then approve WETH and sign the order; keep gas ETH aside.

Crypto Blog Newsroom4 min read

ETH Must Be WETH Before a DEX Limit Order

To wrap ETH to WETH for a DEX limit order, deposit ETH into the chain’s WETH contract, then approve WETH and sign the order; keep gas ETH aside.

  • Deposit ratio: 1 ETH becomes 1 WETH.
  • Wrapping: send ETH with a call to deposit().
  • Order settlement: the filler pulls WETH using the ERC-20 transferFrom function.

Why a DEX limit order uses WETH

A DEX limit order uses WETH because the order is filled later by transferring ERC-20 tokens, while native ETH has no ERC-20 transferFrom function. The order can be signed off-chain and wait for a match, so the filler needs an allowance to move the offered token when settlement occurs.

WETH is ETH represented as an ERC-20 token. On Ethereum, the WETH9 contract credits one WETH for each ETH sent to its deposit() function. Its withdraw() function burns WETH and returns the corresponding ETH. The contract does not ask for an allowance to wrap: the ETH accompanies the deposit call itself.

Matcha swap is a decentralized exchange aggregator, and its limit-order flow uses 0x Protocol. The order signature authorizes the order terms; the WETH allowance separately lets the protocol’s designated spender transfer tokens for a fill. On Matcha swap, follow the spender and network shown in the approval prompt rather than approving an address copied from another chain or app.

The distinction matters for the linked matcha vs 1inch comparison: Matcha swap and 1inch are separate interfaces, while a WETH approval is granted to the spender specified for the order on the selected network. The token and spender must match the chain and order flow you are using.

Wrap ETH and submit the order

To prepare a limit order, start with ETH in the wallet and enough additional ETH for network gas. Choose the amount you want to offer, wrap that amount, approve WETH when asked, and sign the order.

  1. Choose the order amount. Enter the amount of ETH you intend to offer in the limit order. The amount you wrap should cover that offer; decide separately how much native ETH to retain for gas and any later transaction.
  2. Wrap that amount to WETH. Use the app’s wrap option if it provides one, or call deposit() on the canonical WETH contract for the selected chain. Confirm the network and contract before sending. The contract receives the ETH and credits the same amount of WETH to your wallet.

    Wrapping itself needs no token approval. You are sending ETH to the contract, not asking it to pull an ERC-20 balance.

  3. Approve WETH when prompted. Submit the approval for the order protocol’s spender if the app requests it. This is a separate transaction from wrapping and costs gas. Check that the token is WETH on the correct network and that the spender matches the app’s prompt. If you already have a sufficient allowance, the app may not need another approval.
  4. Sign the limit order. Review the order details in the wallet prompt and sign. This signature records the order; it does not wrap ETH or replace the ERC-20 allowance. The order can then be filled later using the approved WETH.
  5. Confirm the result. Verify that the WETH balance appears in the wallet or app and that the order is listed as open. Those checks show that the token is available and the order was submitted. Keep some native ETH for gas even after the order is open.

Wrap only the amount needed for the offer. WETH cannot pay Ethereum or L2 transaction fees, so spending all your ETH on wrapping can leave you unable to approve, sign, cancel, or manage the order. Unwrapping later requires another transaction and gas. Keeping the rest as native ETH avoids that extra step if you need funds for fees.

If your order amount changes, wrap enough WETH to cover the new offer and check whether the existing allowance still covers it. The process otherwise stays the same: the order protocol needs ERC-20 WETH to fill, and the wallet needs native ETH to pay gas.

Related

How do I unwrap WETH back to ETH?

To unwrap WETH, call withdraw() on the WETH contract for the amount you want returned. The contract burns that WETH and sends ETH back to your wallet. Keep native ETH available for the transaction’s gas; the withdrawal itself cannot be paid in WETH.

Is WETH always worth exactly one ETH?

WETH9 credits one WETH for each ETH deposited and returns one ETH for each WETH withdrawn through its contract functions. That 1:1 contract conversion is why WETH represents ETH for ERC-20 settlement. Use the canonical WETH contract for the chain you are on, since token contracts and addresses can differ across Ethereum and L2s.