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
2b02489aac
Merge branch 'main' into deploy
2024-07-29 11:08:58 +02:00
Serge Farny
8f0fa4667a
Revert "Keeper: rollback change to index funding"
...
This reverts commit 5e52014579
.
2024-07-29 10:45:35 +02:00
Serge Farny
0a55f46efb
Pyth v2: compare program clock with last price publication time for oracle staleness check ( #983 )
...
Pyth v2: compare program clock with last price publication time for oracle staleness check
2024-07-22 15:41:03 +02:00
Serge Farny
b995189eb5
Program: charge collateral fee directly on borrowed tokens ( #973 )
...
* Program: charge collateral fees on borrowed tokens and fixup OO impact
(cherry picked from commit 96158e349f
)
2024-07-17 10:37:27 +02:00
Serge Farny
fb3579e482
Program: fix TokenUpdateIndexAndRateResilient IX ( #979 )
...
Program: fix TokenUpdateIndexAndRateResilient IX
2024-07-10 01:01:04 +02:00
Serge Farny
5e52014579
Keeper: rollback change to index funding
2024-07-09 16:13:37 +02:00
Serge Farny
b42750b674
Merge branch 'main' into deploy
2024-07-09 10:07:34 +02:00
Serge Farny
28a636857e
token update index and rate- skip bad oracle ( #975 )
...
Program: skip index and rate update when oracle is invalid
(cherry picked from commit d0cb8b9b0c
)
2024-06-26 08:56:08 +02:00
Serge Farny
15f623ce9f
Clients: log git commit info at start time ( #965 )
...
(cherry picked from commit 53829cb6e5
)
2024-05-23 15:19:43 +02:00
microwavedcola1
2a5fdc89e6
more logging for keeper
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-05-23 10:05:19 +02:00
microwavedcola1
f0d32f07da
keeper: dont crank closed tokens ( #951 )
...
* keeper: dont crank closed tokens
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Fixes from review
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Fixes from review
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-05-13 11:14:57 +02:00
Christian Kamm
88451debed
keeper: fix collateral fee charging on main group
...
- longer timeout of 120s for gPA call
- filter out mango accounts for foreign groups
2024-04-23 08:12:04 +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
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
microwavedcola1
fb6311e842
Merge branch 'main' into deploy
2024-04-18 15:15:44 +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
fa32449feb
liquidator: track fallback oracles ( #931 )
2024-04-04 11:23:58 +02:00
Serge Farny
fbea22612e
service-mango-health: use jemalloc ( #922 )
...
(cherry picked from commit ceeac9d3a4
)
2024-04-04 09:35:33 +02:00
Serge Farny
abeb14c17f
service-mango-health: add config for snapshot interval (reduce memory pressure)
...
(cherry picked from commit 78ea5e220cc032d6a280b0f3c66cb94051da3267)
2024-04-04 09:35:33 +02:00
Serge Farny
bf6d2a11ec
liquidator: forcefully exit process if snapshot job die ( #924 )
...
* liquidator: forcefully exit process if snapshot job die
* client: return snapshot_job join handle so it can be watched for early unexpected exit
(cherry picked from commit 2520c7d095
)
2024-04-04 09:28:48 +02:00
Christian Kamm
c2544d9bbd
keeper: fix all confirmation reporting to be on success ( #930 )
2024-04-03 11:39:00 +02:00
Christian Kamm
3937590fd1
liquidator: fix withdraws on rebalance ( #929 )
...
- always allow them, now that v0.22 is deployed and delegates can
withdraw small token amounts to the owner's ata
- increase the dust amount to $0.001 to avoid issues where the logic is
a few lamports off
2024-04-02 14:44:04 +02:00
Christian Kamm
8108b31ff9
keeper: report confirmation times only on success ( #928 )
...
reporting a "confirmation time" on an error response made the metrics
confusing
2024-04-02 14:43:49 +02:00
Christian Kamm
6f85dfa42d
Merge remote-tracking branch 'origin/deploy' into dev
2024-03-14 11:26:33 +01:00
Christian Kamm
4ea7c531ef
liquidator: make alternate routes configurable ( #916 )
2024-03-13 09:13:07 +01:00
Christian Kamm
c2398d1abe
Fix service-mango-health build after bad merge resolution
2024-03-13 09:00:52 +01:00
Christian Kamm
2cd4376466
cli: save-snapshot also captures alts ( #912 )
2024-03-11 15:08:25 +01:00
microwavedcola1
f2442428b6
Merge branch 'main' into deploy
2024-03-10 14:26:29 +01:00
Serge Farny
81f05b32c7
service-mango-health: add config for snapshot interval (reduce memory pressure) ( #906 )
2024-03-07 11:44:46 +01:00
Serge Farny
5affbb9cee
liquidator: add some latency metrics ( #904 )
...
liquidator: add some latency metrics
2024-03-07 11:44:23 +01:00
Christian Kamm
27ecc14000
Merge tag 'program-v0.22.0' into deploy
2024-03-04 11:32:42 +01:00
Serge Farny
a6ed29b5a1
service-mango-health: read env variable for more configuration entries ( #901 )
...
(cherry picked from commit af9b21c430
)
2024-03-01 17:08:33 +01:00
Serge Farny
af9b21c430
service-mango-health: read env variable for more configuration entries ( #901 )
2024-03-01 17:07:49 +01:00
Serge Farny
5629017a8a
service-mango-health: fix format
2024-03-01 11:44:06 +01:00
Serge Farny
a06801db5c
service-mango-health: monitors/historizes accounts health ( #890 )
...
* service-mango-health: add a new service that compute health for all mango accounts and persist an history in postgres sql
(cherry picked from commit 6aa8a883f4
)
2024-03-01 11:24:56 +01:00
Serge Farny
6aa8a883f4
service-mango-health: monitors/historizes accounts health ( #890 )
...
* service-mango-health: add a new service that compute health for all mango accounts and persist an history in postgres sql
2024-02-29 17:05:29 +01:00
Christian Kamm
54674e4b20
keeper: fix tx size limits on charge collateral fee batching
2024-02-26 09:21:53 +01:00
Christian Kamm
d9f55c4c22
keeper: cu limit when batching charge_collateral_fee ix
2024-02-24 10:04:30 +01:00
Serge Farny
ab8393b52d
liquidator: avoid logging same oracle error (same token) in loop ( #889 )
...
* liquidator: avoid logging same oracle error (same token) in loop
2024-02-21 16:35:28 +01:00
Serge Farny
338a9cb7b8
liquidator: add allow/forbid token list ( #883 )
...
liquidator: add a way to restrict token accepted by the liquidator
- add allow/forbid list of token for liquidation & conditional token swap triggering
- add allow/forbid list for perp market liquidation
- housekeeping: extract cli args to a dedicated file
- move more hardcoded thing to config and stop using token name (replace with token index)
2024-02-19 10:20:12 +01:00
Serge Farny
5d29eb2f0b
Rust client: auto close spot account if needed to place a new order ( #877 )
...
rust client:
- add serum3 place order to command
- add serum3 create open orders command
- add serum3 close open orders command
- auto create serum3 open orders if needed when placing a new order
- auto close serum3 slot if needed when placing a new order & also close unused token if needed to place a serum3 order
2024-02-16 14:01:18 +01:00
Serge Farny
7a8d46e362
rust client: remove jupiter v4 ( #879 )
...
* rust client: remove jupiter v4
* rust client: remove dead code
* rust client: allow large enum variant for RawQuote enum
2024-02-14 14:20:23 +01:00
Christian Kamm
3993a3fa66
collateral fees: fixes after devnet test ( #880 )
2024-02-14 11:32:57 +01:00
Christian Kamm
e57dcdc2a9
Add collateral fees ( #868 )
...
- New permissionless instruction to regularly charge collateral fees
- Bank and group configuration to set rate and interval
- Keeper addition to call the instruction
2024-02-13 12:39:28 +01:00
Christian Kamm
007cf0da6e
liquidator: make tcs max amount configurable ( #874 )
2024-02-09 11:31:37 +01:00
Serge Farny
08a5ee8f53
rust client: Perp - Auto close account when needed ( #875 )
...
* perp: auto close perp market account when needing to open a new one with no slot available
* rust_client: do not send health accounts when deactivating a perp position (not needed on program side)
* rust_client: add perp place order command
2024-02-09 11:19:52 +01:00