From f427949e4565ecd9893b49b949c6c6434ec93462 Mon Sep 17 00:00:00 2001 From: Luke Hamilton Date: Fri, 3 May 2024 15:53:24 -0400 Subject: [PATCH] feat: add SNX keeper' --- src/liquidation.ts | 1 + src/oracles.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/liquidation.ts b/src/liquidation.ts index 870d7f7..4477720 100644 --- a/src/liquidation.ts +++ b/src/liquidation.ts @@ -11,6 +11,7 @@ const typeMapping: any = { '0x5745544800000000000000000000000000000000000000000000000000000000': 'WETH', '0x5753544554480000000000000000000000000000000000000000000000000000': 'WSTETH', '0x4f50000000000000000000000000000000000000000000000000000000000000': 'OP', + '0x534e580000000000000000000000000000000000000000000000000000000000': 'SNX', '0x5742544300000000000000000000000000000000000000000000000000000000': 'WBTC', '0x53544f4e45530000000000000000000000000000000000000000000000000000': 'STN', '0x544f54454d000000000000000000000000000000000000000000000000000000': 'TTM', diff --git a/src/oracles.ts b/src/oracles.ts index d1c65e1..d9042d6 100644 --- a/src/oracles.ts +++ b/src/oracles.ts @@ -4,7 +4,7 @@ import { getTxFeeAndCheckBalance, processTx, getVariables } from './utils/misc'; dotenv.config(); const sepoliacollateralTypes: string[] = ['WETH', 'OP', 'WBTC', 'STN', 'TTM']; -const mainnetCollateralTypes: string[] = ['WETH', 'OP', 'WSTETH']; +const mainnetCollateralTypes: string[] = ['WETH', 'OP', 'WSTETH', 'SNX']; const collateralTypes = process.env.NETWORK === 'optimism-sepolia' ? sepoliacollateralTypes : mainnetCollateralTypes;