Overview
The Wrapped Native contract wraps native tokens (e.g. Ether) into an ERC-20 token. Wrapped Native is designed to be a more gas efficient, modern, more fully featured canonical replacement for WETH9 that can be deployed to a consistent, deterministic address on all chains.
Wrapped Native features the following improvements over WETH9.
- Deterministically Deployable By Anyone To A Consistent Address On Any Chain!
- More Gas Efficient Operations Than WETH9!
approveandtransferfunctions are payable - will auto-deposit whenmsg.value > 0. This feature will allow a user to wrap and approve a protocol in a single action instead of two, improving UX and saving gas.depositTo- allows a depositor to specify the address to give WNATIVE to.
Much more gas efficient for operations such as native refunds from protocols compared todeposit + transfer.withdrawToAccount- allows a withdrawer to withdraw to a different address.withdrawSplit- allows a withdrawer to withdraw and send native tokens to several addresses at once.- Permit Functions - allows for transfers and withdrawals to be approved to spenders/operators gaslessly using EIP-712 signatures. Permitted withdrawals allow gas sponsorship to unwrap wrapped native tokens on the user's behalf, for a small convenience fee specified by the app. This is useful when user has no native tokens on a new chain but they have received wrapped native tokens.
Deployment
Wrapped Native can be deployed to any EVM blockchain at address 0x6000030000842044000077551D00cfc6b4005900 using Limit Break's infrastructure deployment tool at https://developers.apptokens.com/infrastructure.
