# Shielding ETH vs ERC-20 Tokens

## **Shielding ETH** <a href="#shielding-eth" id="shielding-eth"></a>

ETH shielding uses a single call:

```
// Assume wrapper is the cETH wrapper address
await wrapper.wrap(
  yourAddress,      // recipient
  ethers.parseEther("1.0")  // amount in wei
  { value: ethers.parseEther("1.01") }  // includes fee
);
```

The wrapper:

1. Receives your ETH
2. Deducts the shield fee
3. Holds the remaining ETH in escrow
4. Mints equivalent cETH to your address (rate-adjusted)

## **Shielding ERC-20 Tokens** <a href="#shielding-erc-20-tokens" id="shielding-erc-20-tokens"></a>

ERC-20 shielding requires two steps: **approve → wrap**

```
// Step 1: Approve wrapper to spend your USDC
await usdcToken.approve(wrapperAddress, amount + fee);

// Step 2: Shield
await wrapper.wrap(yourAddress, amount);
```

The wrapper:

1. Transfers tokens from you to itself (via transferFrom)
2. Transfers fee to protocol fee recipient
3. Holds the principal in escrow
4. Mints equivalent cTokens to your address


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zaiffer.gitbook.io/wiki/zaiffer/shielding-tokens-wrapping/shielding-eth-vs-erc-20-tokens.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
