@pendle/sdk-boros 0.3.17 → 0.3.18
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.
|
@@ -3,11 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.customPendleContractErrorMessageHandler = void 0;
|
|
4
4
|
const defaultHandler_1 = require("./defaultHandler");
|
|
5
5
|
exports.customPendleContractErrorMessageHandler = (0, defaultHandler_1.createPendlecontractErrorMessageHandler)({
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
AMMCutOffReached: () => 'Deposits Closed (Market Maturing)',
|
|
7
|
+
AMMInsufficientCashOut: () => 'Slippage Too High',
|
|
8
|
+
AMMInsufficientLpOut: () => 'Slippage Too High',
|
|
9
|
+
AMMInsufficientSizeOut: () => 'Slippage Too High',
|
|
10
|
+
AMMTotalSupplyCapExceeded: () => 'Vault Cap Hit',
|
|
8
11
|
MMInsufficientIM: () => 'Not enough margin',
|
|
9
|
-
|
|
12
|
+
MarketLastTradedRateTooFar: () => 'Large Rate Deviation',
|
|
10
13
|
MarketMaxOrdersExceeded: () => 'Exceeded max orders',
|
|
14
|
+
MarketOICapExceeded: () => 'Exceeded OI Cap',
|
|
15
|
+
MarketOrderFOKNotFilled: () => 'Insufficient liquidity',
|
|
16
|
+
MarketOrderRateOutOfBound: () => 'Rate Too Far Off',
|
|
17
|
+
MarketSelfSwap: () => 'Self swapping error',
|
|
11
18
|
TradeUndesiredRate: () => 'Slippage too high',
|
|
12
19
|
}, (errorName, ...args) => `${errorName}(${(0, defaultHandler_1.joinArgs)(args)})`);
|
|
13
20
|
//# sourceMappingURL=customHandler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customHandler.js","sourceRoot":"","sources":["../../../src/errors/PendleContractError/customHandler.ts"],"names":[],"mappings":";;;AAAA,qDAAqF;AAIxE,QAAA,uCAAuC,GAClD,IAAA,wDAAuC,EACrC;IACE,
|
|
1
|
+
{"version":3,"file":"customHandler.js","sourceRoot":"","sources":["../../../src/errors/PendleContractError/customHandler.ts"],"names":[],"mappings":";;;AAAA,qDAAqF;AAIxE,QAAA,uCAAuC,GAClD,IAAA,wDAAuC,EACrC;IACE,gBAAgB,EAAE,GAAG,EAAE,CAAC,mCAAmC;IAC3D,sBAAsB,EAAE,GAAG,EAAE,CAAC,mBAAmB;IACjD,oBAAoB,EAAE,GAAG,EAAE,CAAC,mBAAmB;IAC/C,sBAAsB,EAAE,GAAG,EAAE,CAAC,mBAAmB;IACjD,yBAAyB,EAAE,GAAG,EAAE,CAAC,eAAe;IAChD,gBAAgB,EAAE,GAAG,EAAE,CAAC,mBAAmB;IAC3C,0BAA0B,EAAE,GAAG,EAAE,CAAC,sBAAsB;IACxD,uBAAuB,EAAE,GAAG,EAAE,CAAC,qBAAqB;IACpD,mBAAmB,EAAE,GAAG,EAAE,CAAC,iBAAiB;IAC5C,uBAAuB,EAAE,GAAG,EAAE,CAAC,wBAAwB;IACvD,yBAAyB,EAAE,GAAG,EAAE,CAAC,kBAAkB;IACnD,cAAc,EAAE,GAAG,EAAE,CAAC,qBAAqB;IAC3C,kBAAkB,EAAE,GAAG,EAAE,CAAC,mBAAmB;CAC9C,EAED,CAAC,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,CAAC,GAAG,SAAS,IAAI,IAAA,yBAAQ,EAAC,IAAI,CAAC,GAAG,CAC1D,CAAC"}
|