Christian Kamm
9b224eae1b
Jupiter: Ensure source account is initialized ( #721 )
2023-09-18 09:21:46 +02:00
Christian Kamm
40ad0b7b66
Rust client: Use alts for every transaction ( #720 )
2023-09-18 09:21:30 +02:00
microwavedcola1
d51c3ee85d
release 19.1 -> deploy + serum3 open orders estimation ts patch ( #719 )
...
* Serum3 open orders: Fix health overestimation (#716 )
When bids or asks crossed the oracle price, the serum3 health would be
overestimated before.
The health code has no access to the open order quantites or prices and
used to assume all orders are at oracle price.
Now we track an account's max bid and min ask in each market and use that
as a worst-case price. The tracking isn't perfect for technical reasons
(compute cost, no notifications on fill) but produces an upper bound on
bids (lower bound on asks) that is sufficient to make health not
overestimate.
The tracked price is reset every time the serum3 open orders on a book
side are completely cleared.
(cherry picked from commit 2adc0339dc
)
* Changelog, version bump for program v0.19.1
* ts: ts patch for the PR
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
Co-authored-by: Christian Kamm <mail@ckamm.de>
2023-09-16 11:04:38 +02:00
Christian Kamm
2adc0339dc
Serum3 open orders: Fix health overestimation ( #716 )
...
When bids or asks crossed the oracle price, the serum3 health would be
overestimated before.
The health code has no access to the open order quantites or prices and
used to assume all orders are at oracle price.
Now we track an account's max bid and min ask in each market and use that
as a worst-case price. The tracking isn't perfect for technical reasons
(compute cost, no notifications on fill) but produces an upper bound on
bids (lower bound on asks) that is sufficient to make health not
overestimate.
The tracked price is reset every time the serum3 open orders on a book
side are completely cleared.
2023-09-13 09:35:10 +02:00
microwavedcola1
d128f85ddf
ts: update debug script
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-11 14:12:47 +02:00
microwavedcola1
e9170f2a52
v0.19.29
2023-09-11 13:38:36 +02:00
microwavedcola1
885427e777
Mc/keeper ( #714 )
...
* v0.19.28
* ts: tokenWithdrawAllDepositForMint
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Fix
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Fix
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* rust: dont include tokens with errors in crank
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Fixes from review
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* review fixes
* Fixes from review
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
Co-authored-by: Christian Kamm <mail@ckamm.de>
2023-09-11 13:37:11 +02:00
microwavedcola1
b2c187dd92
ts: fix getTimeToNextBorrowLimitWindowStartsTs ( #710 )
...
* ts: fix getTimeToNextBorrowLimitWindowStartsTs
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Fixes from review
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-10 10:08:17 +02:00
Christian Kamm
7b8a92dcea
Idl compatibility check: Also cover ix args and field renames ( #709 )
2023-09-08 21:13:30 +02:00
microwavedcola1
e0716d0b6e
v0.19.27
2023-09-08 13:47:19 +02:00
microwavedcola1
11fbc25df7
ts: fix tcs order price limits
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-08 13:45:51 +02:00
microwavedcola1
68b345f053
script: log all
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-08 13:00:42 +02:00
microwavedcola1
cda47a18d1
v0.19.25
2023-09-08 12:15:50 +02:00
microwavedcola1
a23caa244c
v0.19.23
2023-09-08 12:08:33 +02:00
microwavedcola1
5bf737847f
ts: tcs fix price display input to tx
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-08 12:07:51 +02:00
microwavedcola1
3fda20e3da
v0.19.22
2023-09-08 12:05:01 +02:00
microwavedcola1
3db75f60b8
v0.19.21
2023-09-08 08:51:37 +02:00
microwavedcola1
b46e275a2c
Mc/tcs improvements ( #706 )
...
* ts: additional tcs helpers
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Fixes from review
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Revert "Fixes from review"
This reverts commit 1def10353511802c030a100fd23b2c2f4f198eaa.
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-08 08:49:38 +02:00
microwavedcola1
b48a937617
ts: add error when no free token position is found ( #707 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-08 08:28:34 +02:00
microwavedcola1
e7fe1e2d8a
ts: add missing dependency
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-08 07:57:00 +02:00
microwavedcola1
3cfa4bb956
v0.19.20
2023-09-07 13:27:21 +02:00
microwavedcola1
bd30bc9852
ts: get yarn lock from dev
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-07 13:24:42 +02:00
Christian Kamm
0aabd28cdc
Merge remote-tracking branch 'origin/deploy' into dev
2023-09-07 13:14:03 +02:00
Christian Kamm
97d3ec01c1
scripts: fix mainnet-no-margin-group post-merge
2023-09-07 13:07:55 +02:00
Christian Kamm
d60bea7436
Merge remote-tracking branch 'origin/main' into deploy
2023-09-07 12:59:50 +02:00
microwavedcola1
56eb48904a
Merge tag 'program-v0.19.0'
2023-09-07 10:46:37 +02:00
tjs
1861d127bc
only remove active filter from Ids on perp markets
2023-09-06 14:11:25 -04:00
tjs
335c98a09a
v0.19.14
2023-09-06 13:53:07 -04:00
tjs
f2eb37b598
ids should return all subitems for a group regardless of active state
2023-09-06 13:51:40 -04:00
tjs
7b4d46e135
v0.19.13
2023-09-05 10:59:55 -04:00
microwavedcola1
b42a35cdb9
sb logs
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-05 15:56:04 +02:00
tlrsssss
025f594fb2
Merge pull request #705 from blockworks-foundation/ts/ids-fixes
...
Ts/ids fixes
2023-09-05 09:41:08 -04:00
tjs
c7c362292c
Support reloading reloadSerum3ExternalMarkets from Ids class
...
remove console logs
2023-09-05 09:35:17 -04:00
tjs
3715a9a7f2
Update Ids class so the array filters in the getters work
...
Also add placeholder values in ids.json so types work; Deprecate ids.json
2023-09-04 21:04:42 -04:00
Adrian Brzeziński
2110cf7f55
v0.19.12
2023-09-04 18:20:02 +02:00
Adrian Brzeziński
79ea2bc7df
preprended instruction change ( #703 )
...
* fix
* fix
2023-09-04 18:06:37 +02:00
microwavedcola1
0a2bf3abd5
ts: example script no margin group ( #697 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-04 17:11:04 +02:00
Harrison Green
bffb77064a
Add audit report for 0.19.0 ( #704 )
2023-09-04 09:33:14 +02:00
Christian Kamm
ba6bd96784
Allow account shrinking and migration ( #692 )
...
- The AccountExpand instruction can now shrink accounts by reducing
the number of token/perp/serum/tcs/perp oo slots.
- A new AccountSizeMigration instruction can permissionlessly shrink
accounts that are too large and migrate them to the v3 layout.
2023-09-04 09:30:57 +02:00
Christian Kamm
139555a46e
liquidator: Make the check interval configurable ( #702 )
...
And reduce the default from 5s to 1s.
2023-09-01 16:27:17 +02:00
Christian Kamm
aca2b2e679
liquidator: Work on groups without openbook markets ( #701 )
2023-09-01 15:05:43 +02:00
Adrian Brzeziński
bb478b9631
v0.19.11
2023-08-31 14:37:29 +02:00
Adrian Brzeziński
d9f756b346
additional functions mechanizm ( #700 )
2023-08-31 14:36:04 +02:00
Christian Kamm
c07978fb68
max_swap: Fix swapping between zero weight tokens ( #699 )
...
Co-authored-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-31 14:01:18 +02:00
Christian Kamm
e37f1ed996
update idl
2023-08-30 10:59:14 +02:00
Christian Kamm
289c3ff828
FlashLoan: Log the approved amount ( #696 )
...
Previously only the part of the approved amount that was a loan got
logged, missing some interesting information.
(cherry picked from commit 03378bb808
)
2023-08-30 10:58:17 +02:00
Christian Kamm
03378bb808
FlashLoan: Log the approved amount ( #696 )
...
Previously only the part of the approved amount that was a loan got
logged, missing some interesting information.
2023-08-30 10:57:41 +02:00
microwavedcola1
e0de779d96
v0.19.10
2023-08-30 07:21:53 +02:00
microwavedcola1
e730bcd146
ts: perpCancelOrderByClientOrderIdIx
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-30 07:21:03 +02:00
Christian Kamm
7125058ce5
Account expansion: Transfer more lamports only if needed ( #694 )
...
Result of audit feedback
(cherry picked from commit 020a978270
)
2023-08-29 10:03:54 +02:00