Skip to content

Commit 73c3be4

Browse files
committed
bump pendle cool off time
1 parent 8fabf2b commit 73c3be4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/swapService/strategies/balmySDK/pendleQuoteSource.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { type Address, Hex, getAddress, isAddressEqual } from "viem"
1919

2020
const soldOutCoolOff: Record<string, number> = {}
2121

22-
const SOLD_OUT_COOL_OFF_TIME = 5 * 60 * 1000
22+
const SOLD_OUT_COOL_OFF_TIME = 60 * 60 * 1000
2323

2424
// https://api-v2.pendle.finance/core/docs#/Chains/ChainsController_getSupportedChainIds
2525
export const PENDLE_METADATA: QuoteSourceMetadata<PendleSupport> = {
@@ -75,7 +75,6 @@ export class CustomPendleQuoteSource
7575
params: QuoteParams<PendleSupport, PendleConfig>,
7676
): Promise<SourceQuoteResponse<PendleData>> {
7777
const { dstAmount, to, data } = await this.getQuote(params)
78-
7978
const quote = {
8079
sellAmount: params.request.order.sellAmount,
8180
buyAmount: BigInt(dstAmount),
@@ -204,7 +203,7 @@ export class CustomPendleQuoteSource
204203
(await response.text()) || `Failed with status ${response.status}`
205204

206205
if (response.status === 400) {
207-
console.log("[PENDLE ERROR]", msg, url)
206+
console.log("[PENDLE ERROR]", msg, swapParams.receiver, url)
208207
if (msg.includes("SY limit exceeded")) {
209208
soldOutCoolOff[`${buyToken}${chainId}`] = Date.now()
210209
}

0 commit comments

Comments
 (0)