@sip-protocol/sdk 0.3.1 → 0.3.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/browser.js +9 -0
- package/dist/browser.mjs +1 -1
- package/dist/chunk-EU4UEWWG.mjs +12164 -0
- package/dist/index.js +9 -0
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/settlement/backends/near-intents.ts +11 -0
package/dist/browser.js
CHANGED
|
@@ -4986,6 +4986,15 @@ var NEARIntentsBackend = class {
|
|
|
4986
4986
|
"senderAddress"
|
|
4987
4987
|
);
|
|
4988
4988
|
}
|
|
4989
|
+
if (params.slippageTolerance !== void 0) {
|
|
4990
|
+
if (params.slippageTolerance < 0 || params.slippageTolerance > 1e4) {
|
|
4991
|
+
throw new ValidationError(
|
|
4992
|
+
"slippageTolerance must be between 0-10000 basis points (0-100%)",
|
|
4993
|
+
"slippageTolerance",
|
|
4994
|
+
{ provided: params.slippageTolerance, validRange: "0-10000" }
|
|
4995
|
+
);
|
|
4996
|
+
}
|
|
4997
|
+
}
|
|
4989
4998
|
if (!this.capabilities.supportedSourceChains.includes(params.fromChain)) {
|
|
4990
4999
|
throw new ValidationError(
|
|
4991
5000
|
`Source chain ${params.fromChain} is not supported`,
|