@shogun-sdk/intents-sdk 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/quote/paraswap.ts +7 -0
package/dist/index.cjs
CHANGED
|
@@ -4790,6 +4790,9 @@ var ParaswapQuoteProvider = class {
|
|
|
4790
4790
|
}
|
|
4791
4791
|
async getQuote(paraswapParams) {
|
|
4792
4792
|
const params = { ...paraswapParams };
|
|
4793
|
+
if (isNativeEvmToken(params.srcToken)) {
|
|
4794
|
+
params.srcToken = WRAPPED_ETH_ADDRESSES[this.chainId];
|
|
4795
|
+
}
|
|
4793
4796
|
if (isNativeEvmToken(params.destToken)) {
|
|
4794
4797
|
params.destToken = WRAPPED_ETH_ADDRESSES[this.chainId];
|
|
4795
4798
|
}
|