@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.js
CHANGED
|
@@ -4841,6 +4841,9 @@ var ParaswapQuoteProvider = class {
|
|
|
4841
4841
|
}
|
|
4842
4842
|
async getQuote(paraswapParams) {
|
|
4843
4843
|
const params = { ...paraswapParams };
|
|
4844
|
+
if (isNativeEvmToken(params.srcToken)) {
|
|
4845
|
+
params.srcToken = WRAPPED_ETH_ADDRESSES[this.chainId];
|
|
4846
|
+
}
|
|
4844
4847
|
if (isNativeEvmToken(params.destToken)) {
|
|
4845
4848
|
params.destToken = WRAPPED_ETH_ADDRESSES[this.chainId];
|
|
4846
4849
|
}
|