Wrapping
A wrapped version of anS offers a non-rebasing option while still earning yield, making it ideal for use as a building block in other smart contracts. These wrapped tokens may also provide tax benefits in certain jurisdictions.
How Wrapped Tokens Work
When you wrap anS, you receive a fixed number of wanS tokens. This amount does not increase over timeβyou will hold the same number of wanS tomorrow as you do today. However, the amount of anS you can redeem when unwrapping grows as yield accrues.
For example:
You wrap 10,000 anS and receive 9,423 wanS.
Over time, you still hold 9,423 wanS.
When you unwrap, you might redeem 11,500 anS due to accrued yield.
Both anS and wanS earn yield at the same rate and behave like standard ERC-20 tokens, making them easy to transfer and integrate.
ERC-4626 Compliance
wanS was one of the first implementations of the ERC-4626 standard, which extends ERC-20 by providing features for depositing, withdrawing, and tracking balances in tokenized vaults.
Wrapping and Unwrapping
Wrapping: You can wrap anS through the swap interface on the Angles dApp.
Unwrapping: You can easily convert wrapped tokens back into their yield-bearing forms without ERC-20 approvals, minimum terms, or lockup periods. Use the Angles dApp's swap form or Sonicscan's
withdraw
function for precise control over the amount to unwrap.
Lossless Wrapping
With these options, users can enjoy yield generation and seamless integration into DeFi protocols, all while maintaining full flexibility and control.
Last updated