dafyddd
ee671d24bb
Merge pull request #1013 from blockworks-foundation/dd/perp-close
...
Changes for Closing Down
2025-03-24 15:51:24 -04:00
dafyddd
795a99b681
remove dup code
2025-03-24 15:35:11 -04:00
dafyddd
d9d726cb58
account constraint #3 assumed borrows would take place in the asset_token and so checked to make sure liab_weight was not too large in asset_token. But now we do not assume borrows will take place. So the check now happens only if there are borrows in asset_token
2025-03-24 15:33:11 -04:00
dd
b57c7f7633
fix tsc errors; update mango_v4.json idl
2025-03-23 18:33:57 -04:00
dd
dd1af93d13
bump mango-v4 version
2025-03-23 17:46:20 -04:00
dafyddd
7b52578e03
fixed oracle stale check in perp_settle_unmatched; gated the two new ixs to dev wallets
2025-03-23 16:58:16 -04:00
dafyddd
942baa62f9
fix cargo fmt check
2025-03-23 16:13:07 -04:00
dafyddd
9e002dee74
eslint fixes and revert strip ansi to 6.0.1
2025-03-23 16:07:15 -04:00
dafyddd
294d844b4e
Add perp_settle_unmatched and perp_force_close_unmatched to lib.rs
2025-03-23 15:04:37 -04:00
dafyddd
29dd349760
clean up perp_settle_unmatched errors
2025-03-22 10:45:46 -04:00
dafyddd
7a8016d4f7
Added ix PerpSettleUnmatched in order to settle negative quote balances.
2025-03-22 09:05:41 -04:00
dafyddd
ed4d6169cf
Added ix PerpForceCloseUnmatched
2025-03-21 11:50:54 -04:00
dafyddd
d0e100ede9
Move the reduce only check for the token_force_close_borrows_with_token.rs ix to the end and only check it if liqee assets are negative after
2025-03-20 13:23:18 -04:00
dafyddd
9c3d0f8832
perp sanity checks changes
2025-03-20 13:22:30 -04:00
riordanp
1303a4a162
Update SECURITY.md
2024-09-04 14:58:01 +01:00
Serge Farny
70fc0921f5
Liquidator: fix rebalancing with sequence check ( #999 )
2024-08-29 08:00:47 +02:00
microwavedcola1
549b5c6fce
Merge branch 'release/program-v0.24.3' into dev
2024-08-26 07:42:50 +02:00
Robert Chen
cced613da4
add audit report for v0.24.3 ( #1001 )
2024-08-26 07:31:26 +02:00
microwavedcola1
af2d10f2e6
Update changelog
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-26 07:27:55 +02:00
microwavedcola1
c1ea394437
program: allow closing oo for force closed markets ( #997 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-19 15:27:57 +02:00
microwavedcola1
3e92361b69
program: remove ununused code, fix from audit ( #996 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-19 13:48:50 +02:00
microwavedcola1
7863062192
ts part
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
(cherry picked from commit 1e86640680
)
2024-08-12 09:19:33 +02:00
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