It is proposed to upgrade the smart contracts that will make it possible to deposit and withdraw from ETH or any stablecoin on mStable into imUSD, and the imUSD vault in one transaction.
In detail the following alterations are proposed:
depositSavings with an optional referrer address, that would trigger a Referral eventUnwrapper with its main method unwrapAndSendredeemAndUnwrapwithdrawAndUnwrapThe following contracts need to be updated via proxy:
0x78BefCa7de27d07DC6e71da295Cc2946681A6c7B0xF38522f63f40f9Dd81aBAfD2B8EFc2EC958a30160x30647a72Dc82d7Fbb1123EA74716aB8A317Eac19
-Mainnet imBTC (SavingsContractV2 → SavingsContractV3) 0x17d8CBB6Bce8cEE970a4027d1198F6700A7a6c240x32aBa856Dc5fFd5A56Bcd182b13380e5C855aa290x5290Ad3d83476CA6A2b178Cd9727eE1EF72432afRFC: Save Unwrapper Proposal: MIP 25 Discussion: MIP 25: Save Unwrapper
Should the upgrades be deployed as specified in MIP 25?