Commit Graph

2593 Commits

Author SHA1 Message Date
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
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
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
riordanp 090ef649d5
Allow liquidator delegates to withdraw (#932)
* Add token_withdraw_as_delegate_instructions method
2024-04-04 15:43:28 +01:00
microwavedcola1 8ba71a34b5 ts: switchboard csv files
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-04-04 14:18:11 +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
microwavedcola1 b55e900855 ts: update script
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-04-03 12:57:39 +02:00
Christian Kamm c2544d9bbd
keeper: fix all confirmation reporting to be on success (#930) 2024-04-03 11:39:00 +02:00
Adrian Brzeziński 2040aa9fa6 upgrade mangolana lib 2024-04-02 16:59:28 +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
Adrian Brzeziński 8196374b41 v0.23.3 2024-03-28 15:43:59 +01:00
Lou-Kamades 27ce516703
Lou/ts fallback fetching (#917)
* ts: add CLMM oracle parsing

* ts: add functions for deriving fallback oracles

* ts: add fallbacks to buildHealthRemainingAccounts

* ts: lint

* ts: fallback contexts are keyed on string for reliable equality checks

* ts: lint
2024-03-27 10:52:33 -05:00
Riordan Panayides 0638e24f46 v0.23.2 2024-03-21 12:22:34 +00:00
riordanp d03efb7260
Fix getCumulativeFundingUi (#920)
* sum long and short funding
2024-03-21 12:16:23 +00:00
microwavedcola1 dc8e903d13 ts: update
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-03-13 10:44:54 +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
microwavedcola1 a93ef13310 ts: new changes to token param updates
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-03-12 11:39:31 +01:00
microwavedcola1 928ac343f8 Fix merge errors
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-03-12 11:27:30 +01:00
microwavedcola1 3338edae88 v0.23.1 2024-03-10 14:28:41 +01:00
microwavedcola1 d9068758d2 ts: fix lint
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-03-10 14:27:31 +01:00
microwavedcola1 f2442428b6 Merge branch 'main' into deploy 2024-03-10 14:26:29 +01:00
Christian Kamm 077199ed39
ts: rework getMaxWithdrawWithBorrowForToken (#900)
* ts: rework getMaxWithdrawWithBorrowForToken

* binary seach for maxWithdraw

* tests

* warnings

* revert later, change for debugging

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* fix looking deeper than 0.5 tokens

* no borrows on no-borrow-tokens

---------

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
Co-authored-by: microwavedcola1 <microwavedcola@gmail.com>
2024-03-10 14:11:30 +01:00
Adrian Brzeziński ef5da37fba switchboard migrator example 2024-03-08 16:47:24 +01:00
Adrian Brzeziński 6841ca5166 add mangolana, fee and auto retry to create proposal for scripts 2024-03-07 13:27:57 +01:00
microwavedcola1 043b08fcc3 ts: update
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-03-07 09:08:36 +01:00
Adrian Brzeziński b296c23bbe v0.22.5 2024-03-05 17:15:07 +01:00
Adrian Brzeziński 1a6a544ecd
max accounts error margin fcn (#905)
* add error for max accounts limit

* fix
2024-03-05 16:56:35 +01:00
microwavedcola1 8aff0fb8c5 ts: add missing fields
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-03-04 14:28:49 +01:00
microwavedcola1 26e238bcd8 v0.22.3 2024-03-04 13:24:12 +01:00
microwavedcola1 a006b25e39 ts: fix client errors
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-03-04 13:21:42 +01:00
Christian Kamm 27ecc14000 Merge tag 'program-v0.22.0' into deploy 2024-03-04 11:32:42 +01:00
Christian Kamm a30c5a9e06 Bump program version to v0.23.0, update idl 2024-03-04 11:22:08 +01:00
Serge Farny bc166ea54b ts client: fix imports (#898)
(cherry picked from commit 53517f876b)
2024-03-04 11:21:54 +01:00
Christian Kamm 0fee3d69c0 Changelog for v0.23.0 (#903)
(cherry picked from commit df15672522)
2024-03-04 11:20:44 +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 acef7278a0 Dockerfile: try to fix issue with cargo-chef not building 2024-03-01 11:59:56 +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
Lou-Kamades 6b13841513 add TokenBalanceLog in token_charge_collateral_fees (#894)
* add TokenBalanceLog in token_charge_collateral_fees

* increase cu_per_charge_collateral_fees_token

(cherry picked from commit e7f9af9261)
2024-02-29 08:10:13 +01:00
Christian Kamm d2c55c23e1 Bank: more parameter sanity checks (#895)
(cherry picked from commit aa9bc8b1f1)
2024-02-29 08:10:09 +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