From 405cf8f533c78a344889a38be7faf52d7ff1f4a0 Mon Sep 17 00:00:00 2001 From: Dong-Ha Kim Date: Sat, 11 Jan 2025 12:27:58 +0100 Subject: [PATCH] chore: keep all /swap/* endpoints hot --- api/cron-ping-endpoints.ts | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/api/cron-ping-endpoints.ts b/api/cron-ping-endpoints.ts index 7656eddb0..6bdc1fe2d 100644 --- a/api/cron-ping-endpoints.ts +++ b/api/cron-ping-endpoints.ts @@ -24,6 +24,51 @@ const endpoints = [ }, updateIntervalSec: 10, }, + { + url: "https://preview.across.to/api/swap/auth", + params: { + amount: ethers.utils.parseUnits("1", 6).toString(), + tradeType: "minOutput", + inputToken: TOKEN_SYMBOLS_MAP.USDC.addresses[CHAIN_IDs.ARBITRUM], + originChainId: CHAIN_IDs.ARBITRUM, + outputToken: TOKEN_SYMBOLS_MAP.USDC.addresses[CHAIN_IDs.OPTIMISM], + destinationChainId: CHAIN_IDs.OPTIMISM, + depositor: "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D", + skipOriginTxEstimation: true, + refundOnOrigin: false, + }, + updateIntervalSec: 10, + }, + { + url: "https://preview.across.to/api/swap/permit", + params: { + amount: ethers.utils.parseUnits("1", 6).toString(), + tradeType: "minOutput", + inputToken: TOKEN_SYMBOLS_MAP.USDC.addresses[CHAIN_IDs.ARBITRUM], + originChainId: CHAIN_IDs.ARBITRUM, + outputToken: TOKEN_SYMBOLS_MAP.USDC.addresses[CHAIN_IDs.OPTIMISM], + destinationChainId: CHAIN_IDs.OPTIMISM, + depositor: "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D", + skipOriginTxEstimation: true, + refundOnOrigin: false, + }, + updateIntervalSec: 10, + }, + { + url: "https://preview.across.to/api/swap", + params: { + amount: ethers.utils.parseUnits("1", 6).toString(), + tradeType: "minOutput", + inputToken: TOKEN_SYMBOLS_MAP.USDC.addresses[CHAIN_IDs.ARBITRUM], + originChainId: CHAIN_IDs.ARBITRUM, + outputToken: TOKEN_SYMBOLS_MAP.USDC.addresses[CHAIN_IDs.OPTIMISM], + destinationChainId: CHAIN_IDs.OPTIMISM, + depositor: "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D", + skipOriginTxEstimation: true, + refundOnOrigin: false, + }, + updateIntervalSec: 10, + }, ]; const maxDurationSec = 60;