Christian Kamm
2cd4376466
cli: save-snapshot also captures alts ( #912 )
2024-03-11 15:08:25 +01:00
Christian Kamm
61117ccd11
withdraw: replace overflow with better error ( #910 )
2024-03-11 14:02:54 +01:00
Serge Farny
0728bb566f
program: sequence check as u8 ( #909 )
...
* program: sequence check as u8 (reuse existing padding)
2024-03-11 10:45:53 +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
Serge Farny
494835631b
program: add a sequence check IX ( #908 )
...
Add a sequence check IX
This new IX `SequenceCheck` can be used to avoid having multiple concurrent TX in flight causing unexpected result (multiple borrow for example)
2024-03-07 14:59:05 +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
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
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
Christian Kamm
a7aaaff07e
allow skipping banks and oracles in fixed-order health account list ( #891 )
...
The following instructions now allow skipping banks and oracles if health
and the token position balance is not negative:
- token_withdraw
- token_deposit
- serum3_place_order
- perp_place_order
- flash_loan
They also allow skipping oracles that are stale.
2024-03-04 15:49:14 +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
Christian Kamm
df15672522
Changelog for v0.23.0 ( #903 )
2024-03-04 11:20:13 +01:00
Christian Kamm
e7f5cd7498
Bump program version to v0.24.0, update idl
2024-03-04 11:15:23 +01:00
Christian Kamm
834f15923d
Merge remote-tracking branch 'origin/deploy' into dev
2024-03-04 11:09:07 +01:00
Robert Chen
cb685bd739
add audit report for v0.23.0 ( #902 )
2024-03-04 10:11:41 +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
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
Serge Farny
53517f876b
ts client: fix imports ( #898 )
2024-03-01 11:21:58 +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
Robert Chen
dc5f46b7f7
add audit report for v0.22.0 ( #897 )
2024-02-29 13:07:42 +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
Lou-Kamades
e7f9af9261
add TokenBalanceLog in token_charge_collateral_fees ( #894 )
...
* add TokenBalanceLog in token_charge_collateral_fees
* increase cu_per_charge_collateral_fees_token
2024-02-28 09:31:00 -08:00
Christian Kamm
fd5914f1fc
doc: releasing.md update
2024-02-28 15:49:18 +01:00
Christian Kamm
aa9bc8b1f1
Bank: more parameter sanity checks ( #895 )
2024-02-27 15:56:14 +01:00
Christian Kamm
ebe3e455a2
tests: cleanup ( #896 )
...
- nicer floating point equality comparisons using macros
- nicer send-tx-and-expect-error calls
2024-02-27 15:56:03 +01:00
Lou-Kamades
4c91d36255
Add raydium CLMM oracle fallbacks ( #856 )
...
* add RaydiumCLMM oracle type
* add deserializing raydium pool state
* test: consolidate clmm oralce unit tests
* test: add failure check to test_orca_fallback_oracle
* test: add test_raydium_fallback_oracle
* restore get_quote_oracle()
* ensure RaydiumCLMM is a valid fallback type
2024-02-26 09:45:14 -08: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
microwavedcola1
cacf668999
ts: account for max swap fee rate, when swapping ( #892 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-02-23 09:23: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
Christian Kamm
e107b281f9
Idl update
2024-02-21 15:06:34 +01:00
Christian Kamm
d6a25f0699
Changelog for v0.22.0
2024-02-21 15:06:26 +01:00
Christian Kamm
8f19514a25
Audit v0.22 fixes ( #887 )
...
- apply recurring settle allowance constraint also in
available_settle_limit
- bank constraints on util0, util1
- cleanup
- perp liq: take over oneshot and recurring limits separately
(cherry picked from commit efe4a1ae3d
)
2024-02-21 09:01:23 +01:00
Christian Kamm
efe4a1ae3d
Audit v0.22 fixes ( #887 )
...
- apply recurring settle allowance constraint also in
available_settle_limit
- bank constraints on util0, util1
- cleanup
- perp liq: take over oneshot and recurring limits separately
2024-02-21 09:00:57 +01:00