paraswap-dex-lib icon indicating copy to clipboard operation
paraswap-dex-lib copied to clipboard

wUSDM Plugin

Open guidoPeirano opened this issue 6 months ago • 0 comments

Following the schema of wstETH's plugin I developed a plugin to route the wrapping of USDM into wUSDM. This is not a 1 to 1 mapping, because wUSDM is ERC4626 compliant while wstETH is not, but I think it is close enough to do the task at hand.

The idea of this plugin is to add the routing from USDM to wUSDM and viceversa through the wUSDM contract, by using the deposit and redeem methods.

Tests were added, although one was failing which was the same test case that failed in one of wstETH tests with the same error, so I believe it should be ok still.

guidoPeirano avatar Aug 22 '24 19:08 guidoPeirano