Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.89 KB

YPP-0010.md

File metadata and controls

28 lines (22 loc) · 1.89 KB

Proposal

Deploy a stEth/wstEth wrapper and integrate it with the Ladle to allow wrapping/unwrapping of stEth as part of a batch.

Background

We already accept wstEth as a collateral, but the number of wstEth holders as compared to stEth holders is very small. Allowing to wrap stEth into wstEth as part of a batch would increase the potential impact of having stEth as a collateral.

Details

The proposal includes two mainnet executions, the second one to be approved by the multisig.

  1. Deploy the StEthConverter using this script. The StEthConverter doesn't have any relationship to the Yield Protocol, and knows only of the stEth and wstEth contracts.
  2. Configure stEth, wstEth and the StEthConverter in the Ladle, allowing to move stEth and wstEth tokens, and routing calls to the StEthConverter. This configuration would be done with this script.

Testing

The testing can be done on a mainnet fork using this script

$ npx hardhat test scripts/governance/add/addStEthConverter/addStETHConverter.test.ts --network localhost
Creating Typechain artifacts in directory typechain for target ethers-v5
Successfully generated Typechain artifacts!

StEthConverter
ChainId: 1
Running on a fork, impersonating 0xC7aE076086623ecEA2450e364C838916a043F9a8
    ✓ routes calls through the Ladle (298240 gas)
    ✓ transfers wstEth through the Ladle (210210 gas)
    ✓ transfers stEth through the Ladle (183577 gas)

  3 passing (12s)