Commit Graph

2808 Commits

Author SHA1 Message Date
Serge Farny ae5e22fb7a Program: add a tier string in banks (not used program side)
(cherry picked from commit bd3ab0df99)
2024-08-12 09:19:33 +02:00
Serge Farny 7a3075b6f2 Program: prepare v0.24.3 2024-08-12 09:19:33 +02:00
Serge Farny 2aeaeb604a Liquidator: rebalancing - append sequence check before validating TX size 2024-08-10 14:22:51 +02:00
Serge Farny 142609ab53 Fix 2024-08-10 14:22:51 +02:00
Serge Farny 001027c981 program; fix health check ix gate (#940) 2024-08-10 14:22:51 +02:00
Serge Farny 2eb94b5286 liquidator: rebalance with openbook (limit order) (#938)
liquidator: rebalance with limit order
2024-08-10 14:22:51 +02:00
Serge Farny 49b461f32d program: remove delegate account withdrawal limit (#939)
This is necessary for new liquidator feature of rebalancing using limit orders:
We need to close the token and market slot so that it's available for new liquidation, but at the same time, it's possible that the min order quantity for a given market is still bigger than allowed max withdrawal.
2024-08-10 14:22:51 +02:00
Serge Farny 2d064e4fd1 liquidator: add a sequence check in rebalancing (#926)
liquidator: add a sequence check in rebalancing
2024-08-10 14:22:51 +02:00
Serge Farny e4002acf8f Serge/liquidator split tcs and liquidation (#914)
liquidator: split TCS triggering and liquidation job

Concurrent execution of candidate lookup and tx building/sending
- Also added an health assertion IX to protect liqor in multi liquidation scenario
- And a timeout for jupiter v6 queries (avoid blocking liquidation because of slow TCS)
2024-08-10 14:22:51 +02:00
Serge Farny 69d866008c Programs: fix for audit v0.25.0 (#970)
* Programs: remove anchor close has it is done manually anyway

* Programs: fix a bug where a pegged order might be skipped even if it was valid

(cherry picked from commit 905cc01414)
(cherry picked from commit 47c2707cfe)
2024-08-09 11:06:15 +02:00
Christian Kamm 98ed7eff14 Allow the insurance fund to be for any bank (#946)
Co-authored-by: microwavedcola1 <microwavedcola@gmail.com>
(cherry picked from commit ec2d10af6e)
2024-08-09 11:06:15 +02:00
Christian Kamm e6c9a3864d Fix alignment of ordertree nodes (#954)
This ensures casts of local variables don't run into alignment
differences.

(cherry picked from commit d9c4f69e0e)
(cherry picked from commit 676da3a084)
2024-08-09 10:44:37 +02:00
microwavedcola1 be67617163 Merge branch 'deploy' into dev-new 2024-08-09 09:46:11 +02:00
microwavedcola1 cab39ec23b use luts
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-09 07:20:03 +02:00
Adrian Brzeziński 75c95586dc
lib upgrades (#989)
* add rimraf upgrade liters and typescrpt

* deduplicate

* workflow fix

* fix node version

* a lot of upgrades to libs

* deduplicate

* format fix

* v0.32.13

* fix

* v0.32.14-rc

* publish
2024-08-08 23:57:07 +02:00
microwavedcola1 622008f83b Revert "bump lib"
This reverts commit 62c341bc96.
2024-08-08 15:51:33 +02:00
microwavedcola1 62c341bc96 bump lib
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-08 15:49:39 +02:00
microwavedcola1 d1d90b9019 remove
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-08 15:46:39 +02:00
microwavedcola1 c94e150c97 cleanup
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-08 15:45:53 +02:00
microwavedcola1 8455be93f4 sbod crank: util to build luts
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-08 15:39:23 +02:00
microwavedcola1 687c50c496 extend providers
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-08 15:27:46 +02:00
Maximilian Schneider ea5158175d Revert "sb crank: also consider fallback oracles"
This reverts commit a3a9d44e89.
2024-08-07 19:48:33 +01:00
Maximilian Schneider 0487c42b41 Revert "sb crank: remove old unused orcles to crnak"
This reverts commit 49e89e1641.
2024-08-07 19:48:22 +01:00
microwavedcola1 49e89e1641 sb crank: remove old unused orcles to crnak
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-07 12:01:08 +02:00
microwavedcola1 a3a9d44e89 sb crank: also consider fallback oracles
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-07 11:56:13 +02:00
Maximilian Schneider 7e94bf6a3e
switchboard crank improvements (#987)
dont retry oracle updates to prevent writing old state
submit all oracle updates in parallel to prevent writing old state
reduce average latency by 1s through prefetching of shared results
reduce p90 latency by 1m through async refresh of mango group & oracle definitions
handle promise rejection on tx submission
improved logging
2024-08-07 02:35:32 +01:00
Adrian Brzeziński 70369ec672 fix on demand creation 2024-08-06 17:03:01 +02:00
Serge Farny ac6925ef37 Liquidator: fix an arithmetic error in client side health computation (#986)
(cherry picked from commit f5b4bd9dd0)
2024-08-05 15:33:18 +02:00
Adrian Brzeziński 59588451b6 lsts template 2024-07-31 14:09:21 +02:00
microwavedcola1 697f40eec0 parallelize
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-30 23:17:43 +02:00
microwavedcola1 4f7a913eb2 set an upper bound
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-30 20:46:52 +02:00
microwavedcola1 28ace32c17 use live data to estimate cu
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-30 20:45:51 +02:00
microwavedcola1 ff0dfb9a2f update
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-30 16:55:41 +02:00
microwavedcola1 fca1d22dd6 update
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-30 16:39:55 +02:00
microwavedcola1 8c7c019bf5 updates
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-30 16:35:50 +02:00
microwavedcola1 6da6be19a4 make parallel
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-30 15:01:55 +02:00
microwavedcola1 52f35aea13 more prep for sb on demand
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-30 11:02:42 +02:00
Serge Farny ad129c4666 Liquidator: hide program log 2024-07-29 20:05:01 +02:00
Serge Farny 5960ac0124 Keeper: format 2024-07-29 18:51:03 +02:00
Serge Farny 3fc4f6bf0b Cli: remove test collateral to fix build 2024-07-29 18:40:27 +02:00
microwavedcola1 0dca0ad679 v0.32.12 2024-07-29 12:51:17 +02:00
microwavedcola1 88b20624bd simplify
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-29 12:49:49 +02:00
microwavedcola1 8b5a3fda34 v0.32.11 2024-07-29 12:23:00 +02:00
microwavedcola1 a1982a89f5 reset to a working version
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-29 12:21:41 +02:00
microwavedcola1 1e915ca0bb format
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-29 12:19:31 +02:00
microwavedcola1 923f5abd28 v0.32.10 2024-07-29 12:14:12 +02:00
microwavedcola1 fcaaffbf8c bump eslint
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-29 12:09:15 +02:00
microwavedcola1 994700eed5 update
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-29 12:01:16 +02:00
microwavedcola1 33f9c15522 remove pyth sdk, do manually
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-07-29 11:58:57 +02:00
microwavedcola1 c5388206c9 v0.32.3 2024-07-29 11:14:16 +02:00