# wETH

Wrapped Ether (WETH) is **a token pegged to Ether (ETH)**. WETH is used in several platforms and DApps that support ERC-20 tokens. While ETH is used to pay for network transaction fees, it doesn't have the same functionality as ERC-20 tokens.&#x20;

You can easily convert ETH into WETH through a process known as wrapping it. Obviously wETH contract has also the capability to do it the other way round (from WETH to ETH) this process is called unwrap.

**XdYe wETH** Smart Contract can be found at:&#x20;

{% embed url="<https://github.com/rogerCapone/XdYe_Smart_Contracts/blob/main/WETH.sol>" %}
XdYe wETH Contract Source Code
{% endembed %}

### Contract main functions

* *`deposit()`*

This method is used for wrapping ETH in to wETH *(in XdYe case VT to wVT)*

* *`withdraw()`*

This method is used for unwrapping wETH to ETH *(in XdYe case wVT to VT)*

* *`totalSupply()`*

This method returns the total amount of ETH contained inside the WETH contract

{% hint style="warning" %}
**Attention:** If you are deploying it on mainnet, be sure you use the correct contract reference in order to perform the wrap. Check out your blockchain explorer in order to find it.&#x20;
{% endhint %}

As we are working on TestNet *(Volta)* we are using our own WETH implementation.
