Christian Kamm
81501837a9
Openbook token tracking and price bands ( #805 )
...
- track min bid, max ask
- track maximal token outflow from oo
- add serum3_place_order_v2 with mutable receiver bank
- placing openbook orders is restricted to a certain distance from the
oracle
2023-12-05 15:39:24 +01:00
Christian Kamm
71f0e5cc13
client: configurable jupiter urls ( #800 )
2023-12-05 13:23:11 +01:00
Christian Kamm
ce16d79b13
bins: Fix restarting on new or changed listings ( #802 )
...
- Don't just restart on new listings, but also on significant changes to
old listings such as oracle changes.
- Cover the liquidator and settler in addition to the keeper.
2023-12-05 13:22:24 +01:00
Christian Kamm
e2c9cf2de0
tests: drop extra debug output
2023-12-05 11:16:09 +01:00
Christian Kamm
ce71c67a88
Bump program version to v0.22
2023-12-05 11:15:50 +01:00
Christian Kamm
99790a01e4
revert trustless token registration params to conservative defaults ( #804 )
...
This mostly reverts commit 33bc278a2c
.
(cherry picked from commit 361ba23df1
)
2023-12-05 10:14:48 +01:00
Christian Kamm
04f0f55aa5
Disable TokenAddBank instruction ( #803 )
...
It was unused for a long time and it should be reevaluated before being
used.
(cherry picked from commit f03944b5dd
)
2023-12-05 10:14:36 +01:00
Christian Kamm
361ba23df1
revert trustless token registration params to conservative defaults ( #804 )
...
This mostly reverts commit 33bc278a2c
.
2023-12-05 10:13:55 +01:00
Christian Kamm
f03944b5dd
Disable TokenAddBank instruction ( #803 )
...
It was unused for a long time and it should be reevaluated before being
used.
2023-12-05 10:12:50 +01:00
microwavedcola1
0fda2b0875
ts: fix sig logging
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-12-03 07:41:40 +01:00
Lou-Kamades
838df8cd7c
Merge pull request #790 from blockworks-foundation/lou/fallback-oracle
...
Add fallback oracles
2023-12-01 12:59:38 -06:00
Lou-Kamades
25aa422e2d
also log primary oracle when fallback errors
2023-12-01 12:44:35 -06:00
Britt Cyr
68944747e0
Add serum3 cancel by client order id instruction ( #798 )
2023-12-01 13:36:29 +01:00
Lou-Kamades
ab9d3c37b4
check serum OO headers in ScanningAccountRetriever
2023-11-30 11:03:24 -06:00
Lou-Kamades
b19678f874
use a Vec for fallbacks in ScannedBanksAndOracles
2023-11-29 01:03:48 -06:00
Lou-Kamades
59001b3631
reduce CU cost of fallback oracles
2023-11-28 22:55:19 -06:00
Christian Kamm
e9198577f1
deposit: remove debug output ( #799 )
2023-11-28 14:59:40 +01:00
microwavedcola1
603ca0b224
ts: maintain alt script was missing perp market relevant pubkeys
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-27 09:34:09 +01:00
Christian Kamm
6d80568022
Accounts: Expect only the v3 MangoAccounts now ( #783 )
2023-11-27 09:30:37 +01:00
microwavedcola1
755dbd7ec0
v0.20.6
2023-11-24 11:06:44 +01:00
Christian Kamm
feeb63dab2
ts: tcs hasData was renamed to isConfigured ( #796 )
2023-11-24 11:06:44 +01:00
Christian Kamm
2829bef48e
ts: tcs hasData was renamed to isConfigured
2023-11-24 11:05:20 +01:00
Christian Kamm
0483faef1e
liquidator: fix token info for same-name, fix delays ( #795 )
2023-11-24 11:04:59 +01:00
Christian Kamm
9a68a2dd7d
liquidator: make tcs mode configurable ( #794 )
...
tcs devnet tests want borrow-buy-token
2023-11-24 11:04:48 +01:00
silas
3588017fdb
CI updates ( #784 )
...
* ci: remove trivy reporting
* ci: add codeql and remove trivy reporting
* ci: add checkout to read config
2023-11-23 09:00:08 +01:00
microwavedcola1
236aee99d8
program: optimize cu usage in token deposit, by computing health only… ( #786 )
...
* program: optimize cu usage in token deposit, by computing health only if user is being liquidated
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Fixes from review
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-11-23 08:59:33 +01:00
shuoer86
8129cf45b4
chore: fix typos ( #778 )
2023-11-23 08:59:19 +01:00
microwavedcola1
5429ac1962
ts: scripts for testing account shrink ( #733 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-23 08:58:47 +01:00
Lou-Kamades
2b0a0e3a3e
add fallback CU and serum tests
2023-11-22 16:40:48 -06:00
Lou-Kamades
aed2afbde4
ensure fallbacks are only used for stale or unconfident oracles
2023-11-22 11:42:32 -06:00
Lou-Kamades
a0a47af6a4
ScanningAccountRetriever uses fallback oracles
2023-11-22 11:35:26 -06:00
Lou-Kamades
20261bf734
test: add fallback oracle withdrawal test
2023-11-22 11:35:26 -06:00
Lou-Kamades
d4017e6038
FixedOrderAccountRetriever uses fallback oracles
2023-11-22 11:35:26 -06:00
Lou-Kamades
c22db3be0c
test: stubOracle is not a PDA (allow multiple with same mint)
2023-11-22 11:35:26 -06:00
Lou-Kamades
6288f2dd7d
add fallback oracles to bank and mintinfo
2023-11-22 11:35:26 -06:00
Christian Kamm
eceef44a96
Log emissions: Serialize to buffer on stack instead of using heap ( #787 )
...
Emitting many events could previously cause heap exhaustion.
2023-11-22 16:00:47 +01:00
Christian Kamm
eeb172e44e
Bank: Close zero position when withdrawing 0 ( #793 )
2023-11-22 15:54:38 +01:00
microwavedcola1
c52cf59dc9
v0.20.5
2023-11-22 08:04:42 +01:00
microwavedcola1
048983ffe5
ts: extend errors
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-22 08:02:32 +01:00
tjs
db7fb39154
npm publish
2023-11-21 17:21:25 -05:00
tjs
97a2a7a194
return slot after sending a transaction
2023-11-21 17:17:01 -05:00
microwavedcola1
a40e7372e4
ts: chunk the ixs
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-20 13:22:08 +01:00
microwavedcola1
2609d56648
ts: fix address used for alt
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-20 13:14:05 +01:00
microwavedcola1
43afa713a9
ts: fix client usage in script
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-20 13:11:08 +01:00
microwavedcola1
1b8f3b7cbc
Mc/maintain alts ( #788 )
...
* v0.20.3
* ts: script to maintain ALTs
* Fixes from review
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-20 12:57:01 +01:00
microwavedcola1
e4c0c247d4
Mc/token sanity check ( #789 )
...
* v0.20.3
* ts: token sanity check
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-11-20 12:56:03 +01:00
Christian Kamm
57a9835aa8
Reduce HealthCache heap use ( #785 )
...
Growing these vectors is a waste, rough measurements say this saves
around 1k bytes for a 5 tokens and 4 serum account.
2023-11-20 10:15:39 +01:00
Christian Kamm
a96fb0f614
Revert "Bank: store interest curve scale and target util separately ( #755 )"
...
This reverts commit 3b28856692
.
It should not have been in deploy since it changes instruction ABI and
has not been released in v0.20.0
2023-11-17 07:58:41 +01:00
Christian Kamm
0ac930eb8d
tests: fix build
2023-11-16 16:44:18 +01:00
microwavedcola1
21b8c0dbfa
risk: disable for now
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-16 08:42:18 +01:00