Configuration

Description of environment variables.

Environment Variable

Descritption

LIQUIDATOR_ACCOUNT_ADDRESS

Ethereum address of the liquidator account that will call the liquidation.

LIQUIDATOR_ACCOUNT_PRIVATE_KEY

Private key of the liquidator account.

TRADING_ACCOUNT_ADDRESS

Ethereum address of the trading helper account that will sell asset on trading venues.

TRADING_ACCOUNT_PRIVATE

Private key of the trading helper account.

TRIGGER_THRESHOLD

The threshold value of P1/P2P_1/P_2 that will trigger the liquidation. By default it's 1.01

GAS_STATION_URL

URL of the gas station API to use.

GAS_PRICE_MULTIPLIER

It will multiply the fast gas price you get from GAS_STATION_URL.

GAS_PRICE_UPDATE_INTERVAL_MS

How frequently to poll for new gas price.

ACCOUNT_POLL_INTERVAL_MS

How frequently to poll for liquidatable accounts.

ORACLE_PRICE_POLL_INTERVAL_MS

How frequently to poll for asset price from chainlink oracle.

TRADING_PRICE_POLL_INTERVAL_MS

How frequently to poll for asset price from trading venues.

TRADING_VENUE_URL

URL of the trading venue you want to use.

SINGLE_LIQUIDATION_THRESHOLD

If the liquidation amount is smaller than this value, don't do that liquidation.

TRADING_THRESHOLD

If the asset accumulates to this value on the liquidator's side, trigger the trading with trading helper account.