@rabby-wallet/rabby-swap 0.0.16 → 0.0.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.
- package/dist/dexs/paraswap.js +2 -2
- package/package.json +1 -1
- package/src/dexs/paraswap.ts +3 -2
package/dist/dexs/paraswap.js
CHANGED
|
@@ -68,7 +68,7 @@ export const getQuote = (options) => __awaiter(void 0, void 0, void 0, function*
|
|
|
68
68
|
userAddress: options.userAddress,
|
|
69
69
|
network: chainId,
|
|
70
70
|
includeContractMethods: "simpleSwap,multiSwap,megaSwap",
|
|
71
|
-
excludeDEXS:
|
|
71
|
+
excludeDEXS: "ParaSwapPool,ParaSwapLimitOrders,Hashflow",
|
|
72
72
|
partner: "Rabby",
|
|
73
73
|
});
|
|
74
74
|
const params = {
|
|
@@ -84,6 +84,7 @@ export const getQuote = (options) => __awaiter(void 0, void 0, void 0, function*
|
|
|
84
84
|
slippage: Math.floor(options.slippage * 100),
|
|
85
85
|
priceRoute: priceRoute,
|
|
86
86
|
partner: "Rabby",
|
|
87
|
+
deadline: Math.floor(Date.now() / 1000) + 21600,
|
|
87
88
|
};
|
|
88
89
|
if (options.feeRate !== null && options.feeRate !== undefined) {
|
|
89
90
|
params.partnerFeeBps = (options.feeRate * 100).toString();
|
|
@@ -93,7 +94,6 @@ export const getQuote = (options) => __awaiter(void 0, void 0, void 0, function*
|
|
|
93
94
|
params: {
|
|
94
95
|
ignoreChecks: true,
|
|
95
96
|
ignoreGasEstimate: true,
|
|
96
|
-
deadline: Math.floor(Date.now() / 1000) + 60 * 30,
|
|
97
97
|
},
|
|
98
98
|
});
|
|
99
99
|
return {
|
package/package.json
CHANGED
package/src/dexs/paraswap.ts
CHANGED
|
@@ -98,6 +98,7 @@ interface SwapParams {
|
|
|
98
98
|
srcAmount: string;
|
|
99
99
|
priceRoute: PriceRoute;
|
|
100
100
|
partner: string;
|
|
101
|
+
deadline: number;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
const getPriceRoute = async (params: PriceParams): Promise<PriceResponse> => {
|
|
@@ -128,7 +129,7 @@ export const getQuote = async (options: QuoteParams): Promise<QuoteResult> => {
|
|
|
128
129
|
userAddress: options.userAddress,
|
|
129
130
|
network: chainId,
|
|
130
131
|
includeContractMethods: "simpleSwap,multiSwap,megaSwap",
|
|
131
|
-
excludeDEXS:
|
|
132
|
+
excludeDEXS: "ParaSwapPool,ParaSwapLimitOrders,Hashflow",
|
|
132
133
|
partner: "Rabby",
|
|
133
134
|
});
|
|
134
135
|
|
|
@@ -147,6 +148,7 @@ export const getQuote = async (options: QuoteParams): Promise<QuoteResult> => {
|
|
|
147
148
|
slippage: Math.floor(options.slippage * 100),
|
|
148
149
|
priceRoute: priceRoute,
|
|
149
150
|
partner: "Rabby",
|
|
151
|
+
deadline: Math.floor(Date.now() / 1000) + 21600,
|
|
150
152
|
};
|
|
151
153
|
|
|
152
154
|
if (options.feeRate !== null && options.feeRate !== undefined) {
|
|
@@ -158,7 +160,6 @@ export const getQuote = async (options: QuoteParams): Promise<QuoteResult> => {
|
|
|
158
160
|
params: {
|
|
159
161
|
ignoreChecks: true,
|
|
160
162
|
ignoreGasEstimate: true,
|
|
161
|
-
deadline: Math.floor(Date.now() / 1000) + 60 * 30,
|
|
162
163
|
},
|
|
163
164
|
});
|
|
164
165
|
|