You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 11, 2024. It is now read-only.
On Weth related to stable coins, it is normal to use Weth as the base. The getWrapEthStepIfNeeded does not handle these cases when WETH is used as base. My workaround was:
Create an isQuote flag and then on the step:
let wethAmountNeeded = isQuote ? amount.multipliedBy(price) : amount;
Before calling the step we need to check if Weth is the quote or base, could be used the following function: