Skip to content

Commit

Permalink
Switching from ankr to alchemy for base (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard authored Mar 30, 2024
1 parent c8be75a commit b8270af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "index.ts",
"license": "MIT",
"engines": {
"node": "16.x.x",
"node": "20.x.x",
"yarn": ">=1.0.0 <2.0.0"
},
"devDependencies": {
Expand Down
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const OPTIMISM_ALCHEMY_URL = `wss://opt-mainnet.g.alchemy.com/v2/${process.env
.ALCHEMY_API_KEY!}`;
const ARBITRUM_ALCHEMY_URL = `wss://arb-mainnet.g.alchemy.com/v2/${process.env
.ALCHEMY_API_KEY!}`;
const BASE_ANKR_URL = `wss://rpc.ankr.com/base/ws/${process.env.ANKR_API_KEY!}`;
const BASE_ALCHEMY_URL = `wss://base-mainnet.g.alchemy.com/v2/${process.env
.ALCHEMY_API_KEY!}`;
const SLACK_WEBHOOK_URL = `https://hooks.slack.com/services/${process.env.SLACK_WEBHOOK0}/${process.env.SLACK_WEBHOOK1}/${process.env.SLACK_WEBHOOK2}`;
const port = process.env.PORT || 8080;
const app = express();
Expand All @@ -23,7 +24,7 @@ const limiter = new Bottleneck({
});
const LIQUIDATOR_ADDRESS = "0xe20fcDBC99fcfaCfEb319CC4536294Bd13d350A4";
const liquidators: Liquidator[] = [
new Liquidator(BASE_ANKR_URL, LIQUIDATOR_ADDRESS, limiter),
new Liquidator(BASE_ALCHEMY_URL, LIQUIDATOR_ADDRESS, limiter),
new Liquidator(OPTIMISM_ALCHEMY_URL, LIQUIDATOR_ADDRESS, limiter),
new Liquidator(ARBITRUM_ALCHEMY_URL, LIQUIDATOR_ADDRESS, limiter),
];
Expand Down

0 comments on commit b8270af

Please sign in to comment.