Deploy a stEth/wstEth wrapper and integrate it with the Ladle to allow wrapping/unwrapping of stEth as part of a batch.
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.
The proposal includes two mainnet executions, the second one to be approved by the multisig.
- 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.
- 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.
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)