Skip to content

Commit

Permalink
chore: keep all /swap/* endpoints hot
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki committed Jan 11, 2025
1 parent 44a2298 commit 405cf8f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions api/cron-ping-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 405cf8f

Please sign in to comment.