Christian Kamm
32e08af598
Idl update
2023-10-05 11:04:20 +02:00
Christian Kamm
1afcff5dc2
Changelog and version bump for v0.20.0 ( #739 )
2023-10-04 09:18:57 +02:00
Christian Kamm
ea7fae4687
Changelog, version bump for program v0.19.1
2023-10-02 19:54:09 +02:00
Christian Kamm
1db3d21529
Make getBorrowRateWithoutUpkeepRate() work in more cases ( #731 )
...
In particular when util0 == 0
2023-09-27 12:57:06 +02:00
Christian Kamm
ac38ccc687
Drop HealthCache from idl, disable ComputeAccountData ix ( #723 )
...
It's used for tests, we don't want people depending on it.
2023-09-19 10:01:44 +02:00
Christian Kamm
7b8a92dcea
Idl compatibility check: Also cover ix args and field renames ( #709 )
2023-09-08 21:13:30 +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
f2eb37b598
ids should return all subitems for a group regardless of active state
2023-09-06 13:51:40 -04:00
microwavedcola1
b42a35cdb9
sb logs
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-05 15:56:04 +02: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
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
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
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
microwavedcola1
e730bcd146
ts: perpCancelOrderByClientOrderIdIx
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-30 07:21:03 +02:00
Christian Kamm
2d392c8fff
FlashLoan: fee fixes ( #693 )
...
- Rename the new "swap fee" to "deposit fee" and let it apply to all
deposits, not just for Swap-type flash loans.
- But don't apply it to withdrawals (effectively giving rebates!)
Result of audit feedback
(cherry picked from commit 1d6ce550f3
)
2023-08-29 10:03:53 +02:00
Christian Kamm
1d6ce550f3
FlashLoan: fee fixes ( #693 )
...
- Rename the new "swap fee" to "deposit fee" and let it apply to all
deposits, not just for Swap-type flash loans.
- But don't apply it to withdrawals (effectively giving rebates!)
Result of audit feedback
2023-08-29 10:03:07 +02:00
microwavedcola1
0ee9af749f
ts: getInstantaneousFundingRatePerSecond
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-28 17:56:14 +02:00
microwavedcola1
6871ca2ad4
ts: use average slippage for computing tcs premium
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-28 17:33:34 +02:00
microwavedcola1
e767990c64
ts: fix bug in perp close all lot computation
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-28 08:44:13 +02:00
microwavedcola1
ea02670003
ts: drop the premium calculators chunk size for tcs swap, we were overestimating slippage before
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-25 15:29:30 +02: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
447e7cb151
ts: update tcs helpers
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-20 21:30:12 +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
3480b62945
Changelog and version bump for program v0.19.0 ( #683 )
2023-08-18 15:38:28 +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
1dd934f8ad
ts: fix stub oracle reading
2023-08-14 15:15:56 +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
f2d8e72057
doesnt need to be async
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-12 19:37:29 +02:00
microwavedcola1
765f82c5be
make helper function public
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-11 22:06:21 +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
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
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
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