Riordan Panayides
5c2f027a7a
Merge pull request #20 from ricardojmendez/commitment-level
...
Optional commitment level
2022-04-12 12:52:53 +01:00
Riordan Panayides
da1a5195f5
Merge branch 'main' into commitment-level
2022-04-12 12:51:10 +01:00
Riordan Panayides
3435a7680b
Merge pull request #21 from blockworks-foundation/settle
...
Settle positive PNL
2022-04-12 12:48:55 +01:00
Riordan Panayides
410bfc5691
Upgrade mango-client
2022-04-12 12:13:19 +01:00
Riordan Panayides
14736b4308
Merge pull request #17 from ricardojmendez/settling-perp-pnl
...
Settling Perp PnL on an account before we liquidate perp and token
2022-04-12 11:51:12 +01:00
Ricardo J. Mendez
79e5caa158
Optional commitment level
...
The Triton team recommends using the commitment level `confirmed` in
order to avoid BlockhashNotFound errors. Adding a parameter.
2022-02-24 14:03:10 +01:00
Riordan Panayides
d4b6db7649
Update default minEquity, update readme
2022-02-23 10:25:05 +00:00
Riordan Panayides
2a189ac952
Merge pull request #18 from ricardojmendez/skip-min-equity
...
Passing on accounts without a minimum of equity
2022-02-23 10:17:59 +00:00
Riordan Panayides
68d45dc7ab
Merge pull request #19 from blockworks-foundation/ckamm/readme
...
Expand readme to cover liquidatable-accounts-feed
2022-02-23 10:13:22 +00:00
Christian Kamm
84c07c81e8
Expand readme to cover liquidatable-accounts-feed
2022-02-22 12:53:23 +01:00
Riordan Panayides
1a957787e2
Fix logic for liquidating bankrupt negative quote position
2022-02-20 20:56:54 +00:00
Ricardo J. Mendez
1e1d7c527e
Passing on accounts without a minimum of equity
...
My liquidator was getting stuck on a loop with accounts with 0
equity but that were reported as negative health. This will also
help avoiding accounts that you don't consider worth the opportunity
cost.
2022-02-20 07:23:46 +01:00
Ricardo J. Mendez
6655afee8f
Improvements on settling perp pnl
...
This is an optimization on f97370f following Dafy's suggestion here:
https://github.com/blockworks-foundation/liquidator-v3/pull/17#issuecomment-1020808416
It uses the client's settlePosPnl function instead of doing all the work
itself. It required making the mangoAccounts array global so we can have
access to it when liquidating from the RPC endpoint, but I'm not getting
any movement from the feed anyway.
2022-02-16 11:44:26 +01:00
Christian Kamm
c3d18aa04f
Merge pull request #16 from blockworks-foundation/ckamm/liquidatable-feed
...
Support using the liquidatable accounts feed as data source
2022-02-07 17:28:02 +01:00
Christian Kamm
42969d1d38
Feed: Fix processing of potentially liquidatable accounts
2022-02-04 20:44:04 +01:00
Christian Kamm
ff53e19294
Support using the liquidatable accounts feed as data source
2022-02-04 12:35:47 +01:00
Riordan Panayides
8336a84da0
Fix hardcoded keypair path
2022-02-04 01:29:16 +00:00
Riordan Panayides
37306632b1
Fix liquidator test
2022-02-02 15:50:44 +00:00
Riordan Panayides
0c1ca7889d
Merge pull request #14 from mschneider/updated-deps
...
update mocha & jest
2022-01-11 02:02:12 +00:00
Maximilian Schneider
59e8f32ac8
update mocha & jest
2022-01-10 17:44:56 -08:00
Riordan Panayides
cc1a4bf3b7
Fix ansi-regex vuln
2022-01-10 23:40:54 +00:00
Riordan Panayides
7da01dcfdd
Merge pull request #11 from ricardojmendez/qol-tweaks
...
Allowing extra spaces on the TARGET environment variable
2022-01-10 23:32:09 +00:00
Riordan Panayides
73427175dc
Merge pull request #12 from silas-x/main
...
Automated security scanning
2022-01-10 23:31:30 +00:00
Riordan Panayides
bfb79fb727
Merge pull request #13 from mschneider/error-reporting
...
Improved error reporting
2022-01-10 23:30:47 +00:00
Riordan Panayides
90a09c0e58
Merge branch 'main' into error-reporting
2022-01-10 23:30:36 +00:00
Riordan Panayides
789a50cf3e
Upgrade mango-client, fix index bug
2022-01-10 23:28:18 +00:00
Maximilian Schneider
91dd326ce0
improved error reporting for promises
2022-01-10 12:55:42 -08:00
Maximilian Schneider
d2b96bb742
update dependencies
2022-01-10 12:54:41 -08:00
silas
c0d7810ad3
Delete semgrep-scan.yml
2022-01-09 12:43:34 +00:00
silas
e24b249110
Create semgrep-scan.yml
2022-01-09 11:24:30 +00:00
silas
50c6be8506
New feature: automated dependency scanning
...
Fail on crit, log rest.
2022-01-09 11:21:12 +00:00
silas
a1eb8034a6
New feature: automated code scanning
...
configured to ts/js
2022-01-09 11:20:22 +00:00
Riordan Panayides
49cfb7d260
Merge branch 'main' of github.com:blockworks-foundation/liquidator-v3
2022-01-04 16:15:34 +00:00
Riordan Panayides
af1d1c5f43
Upgrade mango-client
2022-01-04 16:14:34 +00:00
Ricardo J. Mendez
3e58974b41
Allowing extra spaces on the TARGET environment variable
...
The value is hard to read, and being able to column-align it with the
tokens makes it easier to scan if one is configuring it correctly and
avoid mistakes, in case one plans to keep more than one of these to
non-zero values.
2021-12-14 14:33:37 +01:00
Riordan Panayides
2ff7dbaf62
Upgrade mango-client
2021-12-13 22:55:05 +00:00
Riordan Panayides
7674cd4899
Merge branch 'main' of github.com:blockworks-foundation/liquidator-v3 into main
2021-12-13 17:23:50 +00:00
Riordan Panayides
ae27720787
Fix spot buy to close price
2021-12-13 17:23:45 +00:00
Riordan Panayides
a0ea741bc1
Merge pull request #10 from ricardojmendez/docs
...
Fixed INTERVAL_REBALANCE explanation
2021-12-13 13:47:16 +00:00
Ricardo J. Mendez
8137496a13
Fixed INTERVAL_REBALANCE explanation
2021-12-13 10:45:27 +01:00
Riordan Panayides
90ab7c5eb4
Remove errant log line
2021-12-06 14:48:11 +00:00
Riordan Panayides
0285b43d86
Merge pull request #9 from blockworks-foundation/pan/improvements
...
Bug Fixes & Performance Enhancements
2021-12-06 14:38:06 +00:00
Riordan Panayides
bddffb59ea
Fix logging
2021-12-06 14:37:20 +00:00
Riordan Panayides
82197ee1d5
Move ts-node to runtime dependencies, add INTERVAL_REBALANCE to readme
2021-12-06 00:55:49 +00:00
Riordan Panayides
8604faa152
Improve error logging, add rebalance interval
2021-12-06 00:43:29 +00:00
Riordan Panayides
af1df8ddaf
add crank instruction to perp order
2021-12-05 23:07:12 +00:00
Riordan Panayides
d99d987b6e
Upgrade client
2021-12-05 19:22:32 +00:00
Riordan Panayides
a9d1f7cc60
try reloading open orders on account update
2021-12-05 19:19:50 +00:00
Riordan Panayides
4071ce5f5f
Add rebalancing interval
2021-12-05 19:19:11 +00:00
Riordan Panayides
604cc420bc
Fix liquidateSpot bug
2021-12-05 16:04:03 +00:00