Open willhennessy opened 2 years ago
I will try this improvement
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
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
Description: add support for native wrapping and unwrapping of stETH <-> wstETH, similar to how to handle native wrapping of ETH <-> wETH.
UX:
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!