interface icon indicating copy to clipboard operation
interface copied to clipboard

Wrap stETH

Open willhennessy opened this issue 4 years ago • 4 comments

Description: add support for native wrapping and unwrapping of stETH <-> wstETH, similar to how to handle native wrapping of ETH <-> wETH.

UX:

  • Display the Wrap button instead of Swap
  • Price quotes and Auto Router UI should be hidden
  • P1: support on L2 networks
  • P2: support on testnets
Screen Shot 2021-11-29 at 1 53 22 PM

Scope: roughly 1 day of engineering work. Don't think we can fit this in December, so leaving open as a good first issue for the community!

willhennessy avatar Nov 29 '21 18:11 willhennessy

I will try this improvement

qqqzhch avatar Jan 16 '23 02:01 qqqzhch

collect some useful information

stETH https://etherscan.io/address/0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84#code wstETH https://etherscan.io/token/0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0#code

About the smart contract of wstETH

stETH -> wstETH use function wrap

wstETH -> stETH use function unwrap

qqqzhch avatar Jan 16 '23 08:01 qqqzhch

For eth and weth warp and Related codes is WRAPPED_NATIVE_CURRENCY in constants/tokens.ts useWrapCallback in useWrapCallback.tsx

stETH <-> wstETH warp between erc20

Is it a new configuration e.g. WRAPPED_ERC20_CURRENCY and useErc20WrapCallback.tsx ? @willhennessy

qqqzhch avatar Jan 22 '23 09:01 qqqzhch

is this issue still open?

Lucianosc avatar Jan 30 '25 13:01 Lucianosc