Skip to content

Commit

Permalink
fix: move executor address
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Grimal committed Jan 9, 2025
1 parent 5fd37ac commit 65260fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/liquidation-sdk-viem/src/LiquidationEncoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { readContract } from "viem/actions";
import { daiUsdsConverterAbi, mkrSkyConverterAbi } from "./abis.js";
import { curveStableSwapNGAbi, sUsdsAbi } from "./abis.js";
import { curvePools, mainnetAddresses } from "./addresses.js";
import { curvePools, executorAddress, mainnetAddresses } from "./addresses.js";
import { fetchBestSwap } from "./swap/index.js";
import { Pendle, Sky, Usual } from "./tokens/index.js";

Expand Down Expand Up @@ -469,9 +469,7 @@ export class LiquidationEncoder<
const tries: SwapAttempt[] = [];
let dstAmount = 0n;

const from =
process.env.EXECUTOR_ADDRESS ||
"0xfed6096f550864f8e1175f1e9dfa105ac911e5b4";
const from = process.env.EXECUTOR_ADDRESS || executorAddress;

while (true) {
const bestSwap = await fetchBestSwap({
Expand Down
2 changes: 2 additions & 0 deletions packages/liquidation-sdk-viem/src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ export const curvePools = {
"usd0usd0++": "0x1d08E7adC263CfC70b1BaBe6dC5Bb339c16Eec52",
usd0usdc: "0x14100f81e33C33Ecc7CDac70181Fb45B6E78569F",
} as const;

export const executorAddress = "0xfed6096f550864f8e1175f1e9dfa105ac911e5b4";

0 comments on commit 65260fa

Please sign in to comment.