Lou-Kamades
2237986c4b
Merge pull request #687 from blockworks-foundation/lou/yarn-dedup
...
ci: add yarn duplicates check
2023-08-24 09:32:43 -05:00
Christian Kamm
f63163d737
Account limits: Prefer 4 perp + 4 serum ( #689 )
2023-08-21 16:26:49 +02:00
Christian Kamm
a151ebcf11
Account size: restict more, but only increases ( #688 )
...
* Account size: Don't fail on unrelated resize
If the account was previously resized to larger than is allowed now,
don't fail unrelated resizes.
* Further reduce account size limits
Out of caution and future-proofing. Can always raise again.
Perp settle pnl needs 6 accounts plus 2 health account lists that could
be nearly fully disjoint.
2023-08-21 14:34:52 +02:00
microwavedcola1
5fd31270f6
v0.19.6
2023-08-21 07:38:35 +02:00
microwavedcola1
9e6ad1853c
v0.19.5
2023-08-20 21:30:53 +02:00
microwavedcola1
447e7cb151
ts: update tcs helpers
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-20 21:30:12 +02:00
microwavedcola1
cc72f63d06
bump
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-20 21:25:42 +02:00
Christian Kamm
b7a0f9bdad
Further program changelog additions for v0.19.0
2023-08-19 13:10:03 +02:00
Christian Kamm
fb5794fbad
Program changelog additions for v0.19.0
2023-08-19 08:21:01 +02:00
Christian Kamm
34a875d968
Restrict account growth ( #686 )
...
Because of the 64-accounts-per-tx limit. Making a single account use
more than half of these could be problematic.
2023-08-19 08:20:40 +02:00
Christian Kamm
6fd158ff6c
account_create_v2: fix bad account size ( #685 )
2023-08-19 08:17:03 +02:00
Lou-Kamades
939cc45bf9
ci: add yarn duplicates check
2023-08-18 10:53:52 -05:00
Christian Kamm
3480b62945
Changelog and version bump for program v0.19.0 ( #683 )
2023-08-18 15:38:28 +02:00
Christian Kamm
6e9878e31d
Tcs trigger: Avoid building a health cache for expired tcs ( #682 )
2023-08-18 15:37:59 +02:00
Christian Kamm
cbc96fe79f
FlashLoan: Allow mango ix after flash loan end ( #681 )
...
This lifts an unnecessary restriction, making it possible to do things
like flash loan and then liquidate with the resulting balances in a
single transaction.
The "no mango ix after FlashLoanEnd" limitation was unnecessary:
After the flash loan ends, the mango accounts are in a valid state
again. And it's impossible to use a two FlashLoanEnd for a single
FlashLoanBegin for the same reason that isolated FlashLoanEnds are
rejected.
2023-08-18 15:37:15 +02:00
Christian Kamm
a244c27df6
Add account_create_v2 instruction ( #680 )
...
This one allows specifying the number of tcs slots. That way accounts
can be created without needing a separate extend instruction afterwards.
2023-08-18 15:36:36 +02:00
Christian Kamm
072cd766ca
liquidator: parallel tcs execution ( #679 )
2023-08-18 15:36:02 +02:00
Christian Kamm
0c26977ec9
Merge pull request #677 from blockworks-foundation/ckamm/tcs-net-borrow
...
Tcs and liquidator and net borrow limits
2023-08-18 15:35:16 +02:00
Lou-Kamades
2460afce85
Merge pull request #662 from blockworks-foundation/lou/estimate-priority-fees
...
Add estimatePrioritizationFee to the ts client
2023-08-16 15:42:55 -05:00
Adrian Brzeziński
27097faa2f
listing fixes ( #678 )
...
* remove listing tools
* adjust stalness slots in trustless instruction
2023-08-15 13:33:48 +02:00
Christian Kamm
ad47e9f2e9
tcs liq test: Add net borrow limit test
2023-08-14 16:15:57 +02:00
Christian Kamm
a04f5e0df0
liquidator: better startup for tests
2023-08-14 16:15:32 +02:00
Christian Kamm
f1e2b521f2
liquidator: Deal with net-borrow restricted tcs executions
2023-08-14 16:14:30 +02:00
Christian Kamm
727f9a2400
tcs: Change low-health-closure to absolute $1
...
Health ratio was too expensive to compute on-chain
2023-08-14 16:14:30 +02:00
Christian Kamm
7e804b228f
tcs: net borrow checks
2023-08-14 16:14:30 +02:00
Christian Kamm
1dd934f8ad
ts: fix stub oracle reading
2023-08-14 15:15:56 +02:00
microwavedcola1
40fb973731
v0.19.3
2023-08-13 12:02:08 +02:00
microwavedcola1
aa1a9f36e9
ts: add tcs helper for current pair price
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-13 12:01:20 +02:00
microwavedcola1
4f0f162b84
v0.19.2
2023-08-12 19:38:11 +02:00
microwavedcola1
f2d8e72057
doesnt need to be async
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-12 19:37:29 +02:00
microwavedcola1
4fbedf97d1
v0.19.1
2023-08-11 22:07:06 +02:00
microwavedcola1
765f82c5be
make helper function public
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-11 22:06:21 +02:00
microwavedcola1
916ed29498
v0.19.0
2023-08-11 19:13:27 +02:00
microwavedcola1
c1be446aab
Mc/slot to tx ( #676 )
...
* v0.18.17
* ts: return confirmed slot when executing a tx
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-08-11 19:12:13 +02:00
Christian Kamm
643a997723
Oracles: Fix units of deviation in OracleState ( #675 )
2023-08-11 16:47:52 +02:00
microwavedcola1
c37e535273
Fix price limit calculation in tcs
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-11 16:46:19 +02:00
Lou-Kamades
3b67bfee8a
ts client: estimate priority fees for only write accounts
2023-08-11 09:18:41 -04:00
Christian Kamm
72cb639ec9
liquidator: increase tx budget for tcs trigger instructions ( #674 )
...
(cherry picked from commit 8746060be0
)
2023-08-11 12:51:09 +02:00
Christian Kamm
8746060be0
liquidator: increase tx budget for tcs trigger instructions ( #674 )
2023-08-11 12:48:50 +02:00
Christian Kamm
4eca3eb9f0
liquidator: Collect and report persistent errors ( #672 )
2023-08-11 12:10:07 +02:00
Christian Kamm
1f55d549a6
liquidator: execute tcs with volume-weighted randomness ( #670 )
2023-08-11 12:08:34 +02:00
microwavedcola1
b684c32e1e
v0.18.16
2023-08-11 09:42:10 +02:00
Vladimir Guguiev
707de12bb7
Client: wrap SOL using createWithSeed ( #671 )
2023-08-11 09:35:57 +02:00
Lou-Kamades
aace8a06e5
TS: add estimatePrioritizationFee
2023-08-10 22:03:41 -04:00
microwavedcola1
10d26f0b07
v0.18.15
2023-08-10 16:16:52 +02:00
microwavedcola1
c7cc7c248c
ts: fix threshold price computation in token conditional swaps
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-10 16:16:05 +02:00
Christian Kamm
f462c62816
ts: reuse tcs creation function
2023-08-10 13:48:28 +02:00
Christian Kamm
27dadbb6bc
ts: Use tcsCreateV2
2023-08-10 13:39:39 +02:00
Christian Kamm
b2e578bc61
Merge remote-tracking branch 'origin/deploy' into dev
2023-08-10 13:32:06 +02:00
Christian Kamm
a7705a2a1b
liquidator: Allow overriding compute limit for potentially costly ix ( #669 )
2023-08-09 15:26:13 +02:00