@@ -19,7 +19,7 @@ import { type Address, Hex, getAddress, isAddressEqual } from "viem"
19
19
20
20
const soldOutCoolOff : Record < string , number > = { }
21
21
22
- const SOLD_OUT_COOL_OFF_TIME = 5 * 60 * 1000
22
+ const SOLD_OUT_COOL_OFF_TIME = 60 * 60 * 1000
23
23
24
24
// https://api-v2.pendle.finance/core/docs#/Chains/ChainsController_getSupportedChainIds
25
25
export const PENDLE_METADATA : QuoteSourceMetadata < PendleSupport > = {
@@ -75,7 +75,6 @@ export class CustomPendleQuoteSource
75
75
params : QuoteParams < PendleSupport , PendleConfig > ,
76
76
) : Promise < SourceQuoteResponse < PendleData > > {
77
77
const { dstAmount, to, data } = await this . getQuote ( params )
78
-
79
78
const quote = {
80
79
sellAmount : params . request . order . sellAmount ,
81
80
buyAmount : BigInt ( dstAmount ) ,
@@ -204,7 +203,7 @@ export class CustomPendleQuoteSource
204
203
( await response . text ( ) ) || `Failed with status ${ response . status } `
205
204
206
205
if ( response . status === 400 ) {
207
- console . log ( "[PENDLE ERROR]" , msg , url )
206
+ console . log ( "[PENDLE ERROR]" , msg , swapParams . receiver , url )
208
207
if ( msg . includes ( "SY limit exceeded" ) ) {
209
208
soldOutCoolOff [ `${ buyToken } ${ chainId } ` ] = Date . now ( )
210
209
}
0 commit comments