Move ts-node to runtime dependencies, add INTERVAL_REBALANCE to readme
This commit is contained in:
parent
8604faa152
commit
82197ee1d5
|
@ -21,6 +21,7 @@ To run the liquidator you will need:
|
|||
| `INTERVAL` | `3500` | Milliseconds to wait before checking for sick accounts |
|
||||
| `INTERVAL_ACCOUNTS` | `600000` | Milliseconds to wait before reloading all Mango accounts |
|
||||
| `INTERVAL_WEBSOCKET` | `300000` | Milliseconds to wait before reconnecting to the websocket |
|
||||
| `INTERVAL_REBALANCE` | `10000` | Milliseconds to wait before reconnecting to the websocket |
|
||||
| `LIQOR_PK` | N/A | Liqor Mango Account Public Key, by default uses the largest value account owned by the keypair |
|
||||
| `WEBHOOK_URL` | N/A | Discord webhook URL to post liquidation events and errors to |
|
||||
| `LIAB_LIMIT` | `0.9` | Percentage of your available margin to use when taking on liabs |
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
"eslint-config-prettier": "^7.2.0",
|
||||
"mocha": "^8.4.0",
|
||||
"prettier": "^2.0.5",
|
||||
"ts-node": "^9.1.1",
|
||||
"typedoc": "^0.22.5",
|
||||
"typescript": "^4.1.3"
|
||||
},
|
||||
|
@ -49,6 +48,7 @@
|
|||
"bn.js": "^5.2.0",
|
||||
"buffer-layout": "^1.2.1",
|
||||
"dotenv": "^10.0.0",
|
||||
"dotenv-expand": "^5.1.0"
|
||||
"dotenv-expand": "^5.1.0",
|
||||
"ts-node": "^9.1.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ const refreshAccountsInterval = parseInt(
|
|||
const refreshWebsocketInterval = parseInt(
|
||||
process.env.INTERVAL_WEBSOCKET || '300000',
|
||||
);
|
||||
const rebalanceInterval = parseInt(process.env.INTERVAL_WEBSOCKET || '10000');
|
||||
const rebalanceInterval = parseInt(process.env.INTERVAL_REBALANCE || '10000');
|
||||
const checkTriggers = process.env.CHECK_TRIGGERS
|
||||
? process.env.CHECK_TRIGGERS === 'true'
|
||||
: true;
|
||||
|
|
Loading…
Reference in New Issue