Serge Farny
e57e321306
Program: more explicit error when missing bank/oracle for serum
2024-06-28 15:02:30 +02:00
Serge Farny
d0cb8b9b0c
token update index and rate- skip bad oracle ( #975 )
...
Program: skip index and rate update when oracle is invalid
2024-06-26 08:51:41 +02:00
Serge Farny
ed28450b98
Program: add switchboard on demand oracle support ( #974 )
...
Program: switchboard on-demand oracle
---------
Co-authored-by: Mitch Gildenberg <mitch@switchboard.xyz>
2024-06-25 17:02:33 +02:00
Serge Farny
905cc01414
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
2024-06-06 08:52:50 +02:00
Britt Cyr
f7bb4955d3
Cancel openbook v2 order by client order id ( #969 )
...
* Cancel openbook v2 by client order id
2024-06-05 18:01:37 +02:00
microwavedcola1
960c94681c
program: do not charge collateral fees below a certain amount ( #967 )
...
* program: do not charge collateral fees below a certain amount
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* program: fix integration tests
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
Co-authored-by: Serge Farny <serge.farny@gmail.com>
2024-05-30 12:56:11 +02:00
Serge Farny
21491065c9
Clients: log git commit info at start time - try to fix for CI ( #968 )
2024-05-28 15:10:16 +02:00
Serge Farny
f00691dde7
Clients: log git commit info at start time - using git2 lib ( #966 )
2024-05-28 09:58:01 +02:00
Serge Farny
53829cb6e5
Clients: log git commit info at start time ( #965 )
2024-05-23 15:16:55 +02:00
Serge Farny
fdb3e987f9
rust client: fix TransactionBuilder append to correctly handle CU ( #960 )
2024-05-15 11:44:02 +02:00
Serge Farny
2d9f248063
liquidator: settle and close open orders in that order ( #959 )
2024-05-06 11:03:06 +02:00
Serge Farny
98e6f147d4
Liquidator: do not try to settle/close open orders when not using limit orders for rebalancing ( #956 )
2024-05-06 09:45:03 +02:00
Christian Kamm
d9c4f69e0e
Fix alignment of ordertree nodes ( #954 )
...
This ensures casts of local variables don't run into alignment
differences.
2024-04-29 18:50:40 +02:00
Serge Farny
e4098b4550
RustClient: propagate error in chain data fetcher instead of panicking ( #952 )
2024-04-25 14:30:57 +02:00
Serge Farny
ed715ce855
Changelog for v0.25.0
2024-04-23 19:17:11 +02:00
Serge Farny
7e3a72048e
Program: fix openbook-v2 integration tests (stack overflow issue) ( #950 )
2024-04-23 11:06:07 +02:00
Christian Kamm
1ea4528557
Merge remote-tracking branch 'origin/dev' into dev
2024-04-23 11:01:06 +02:00
Christian Kamm
8fd7a5cc88
Merge deploy into dev
2024-04-23 11:00:25 +02:00
Christian Kamm
ec2d10af6e
Allow the insurance fund to be for any bank ( #946 )
...
Co-authored-by: microwavedcola1 <microwavedcola@gmail.com>
2024-04-23 09:17:53 +02:00
Christian Kamm
d08ef26a99
rust client: rename Client::owner to "authority" ( #948 )
...
It could be the owner or the delegate
2024-04-22 14:52:36 +02:00
Christian Kamm
0fe18b59af
rust client: fix withdraws as delegate
...
they need to go to the owner's ata
2024-04-22 14:20:32 +02:00
Christian Kamm
66c6ae1cff
liquidator: fix rebalance loops
...
selling 100% with flash loan swap fee charged on top meant creating a
borrow
2024-04-22 14:10:01 +02:00
Serge Farny
bf0d748d2d
Serge/deploy v24+ ( #945 )
...
* liquidator: randomly select token/perps for rebalancing to avoid failing at every try if one token is having an issue (#921 )
(cherry picked from commit e3a7ed9e32
)
* liquidator: do not panic if token or perp rebalancing fails (#927 )
(cherry picked from commit 0b7e62e671
)
* Liquidator: add Sanctum swap (#919 )
liquidator: add sanctum swap
(cherry picked from commit 01d5237162
)
* liquidator: add more LST for sanctum swap (#944 )
(cherry picked from commit c0b61b3b37
)
2024-04-22 13:27:15 +02:00
Christian Kamm
4250e06364
fix build
2024-04-22 13:14:48 +02:00
riordanp
2a6532f1c6
Openbook V2 Integration ( #836 )
...
Co-authored-by: Tyler <tjshipe@gmail.com>
Co-authored-by: Christian Kamm <mail@ckamm.de>
Co-authored-by: Serge Farny <serge.farny@gmail.com>
Co-authored-by: microwavedcola1 <microwavedcola@gmail.com>
2024-04-22 11:37:53 +02:00
microwavedcola1
d9011881c3
ts: script to add tokens to borroers
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-04-20 16:07:17 +02:00
Serge Farny
c0b61b3b37
liquidator: add more LST for sanctum swap ( #944 )
2024-04-18 15:17:34 +02:00
microwavedcola1
09c3dbe5a0
v0.24.0
2024-04-18 15:17:15 +02:00
microwavedcola1
fb6311e842
Merge branch 'main' into deploy
2024-04-18 15:15:44 +02:00
Serge Farny
a87be8ece0
TS: Fix formatting
2024-04-15 09:29:53 +02:00
Serge Farny
3e406768ca
Changelog for v0.24.0 ( #942 )
...
(cherry picked from commit 4c3814c466
)
2024-04-15 09:10:48 +02:00
thibaultosec
286eeb60fb
add audit report for v0.24.0 ( #941 )
...
Co-authored-by: CanardMandarin <thibault.marboud@gmail.com>
(cherry picked from commit ccc479ba21
)
2024-04-15 09:10:48 +02:00
Serge Farny
4c3814c466
Changelog for v0.24.0 ( #942 )
2024-04-15 09:09:37 +02:00
thibaultosec
ccc479ba21
add audit report for v0.24.0 ( #941 )
...
Co-authored-by: CanardMandarin <thibault.marboud@gmail.com>
2024-04-15 08:36:10 +02:00
Serge Farny
0dc9d9ab80
program; fix health check ix gate ( #940 )
...
(cherry picked from commit fe86295d3c
)
2024-04-11 07:22:51 +02:00
Serge Farny
fe86295d3c
program; fix health check ix gate ( #940 )
2024-04-11 07:22:29 +02:00
Serge Farny
d0125e9fdf
liquidator: rebalance with openbook (limit order) ( #938 )
...
liquidator: rebalance with limit order
2024-04-10 16:47:45 +02:00
Serge Farny
75a07e986a
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-04-10 15:24:39 +02:00
Serge Farny
01d5237162
Liquidator: add Sanctum swap ( #919 )
...
liquidator: add sanctum swap
2024-04-10 11:35:56 +02:00
Adrian Brzeziński
32d7ba8f2e
v0.23.4
2024-04-09 21:12:09 +02:00
Adrian Brzeziński
f0264d666e
last collateral fee charge field
2024-04-09 21:09:30 +02:00
Serge Farny
e090104c69
keeper: add CU estimate for perp update funding, perp consume events and token update index & rates ( #937 )
2024-04-09 10:50:35 +02:00
Christian Kamm
5c7502d360
token_withdraw: avoid silencing errors with is_ok() ( #936 )
...
(cherry picked from commit 653cf9f30b
)
2024-04-08 16:28:44 +02:00
Christian Kamm
653cf9f30b
token_withdraw: avoid silencing errors with is_ok() ( #936 )
2024-04-08 16:28:25 +02:00
Christian Kamm
d16def9745
Audit: Remove unused fn, add comments ( #935 )
...
(cherry picked from commit 9df73a0dfd
)
2024-04-08 15:15:16 +02:00
Christian Kamm
9df73a0dfd
Audit: Remove unused fn, add comments ( #935 )
2024-04-08 15:14:52 +02:00
Serge Farny
70b7bc74d8
rust client: add a CU estimate for token withdrawal ( #934 )
...
(cherry picked from commit 55105e085f
)
2024-04-08 12:44:55 +02:00
Serge Farny
55105e085f
rust client: add a CU estimate for token withdrawal ( #934 )
2024-04-08 12:43:40 +02:00
microwavedcola1
735ea431b5
mm: use fallbacks
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-04-05 12:33:38 +02:00
microwavedcola1
55f0616069
mm: switch to api
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-04-05 12:19:59 +02:00