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
Christian Kamm
2d1bf023c6
TokenRegister: Add arg for group insurance fund flag ( #782 )
2023-11-16 08:16:18 +01:00
microwavedcola1
c0c96abbec
v0.20.2
2023-11-14 17:11:41 +01:00
microwavedcola1
af314d01a5
format
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-14 17:05:55 +01:00
Christian Kamm
93d85c3f71
Bank: allow maint weights to change over time ( #780 )
...
- token_edit can set it up to gradually scale to new target values
- security admin can abort an ongoing change via token_edit
- all health computations are now time dependent and get the weight
based on it
- when the change is done, the keeper "cleans up" and moves the new
values into the default fields
2023-11-14 14:52:04 +01:00
microwavedcola1
25fd722743
ts: update some typings, commented ones will be improved after next release
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-14 10:29:58 +01:00
microwavedcola1
888a270cf2
Merge branch 'mc/update-risk' into deploy
2023-11-14 08:58:53 +01:00
microwavedcola1
71fc571ca4
ts: add formulas for risk
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-14 08:58:41 +01:00
Lou-Kamades
3ccf2317fe
ts: use release 20 idl
2023-11-13 18:48:46 -06:00
Lou-Kamades
56480f2268
ts: don't alter user margin trade Ixs
2023-11-13 15:04:25 -06:00
Lou-Kamades
4d73d7e633
Merge pull request #779 from blockworks-foundation/lou/tcs-client-ixs
...
Add ixs for TCS functions in the Typescript client
2023-11-13 13:30:25 -06:00
microwavedcola1
883434b66b
wip
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-12 13:05:46 +01:00
microwavedcola1
cdd23a535c
ts: script to compute jitosol balances
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-11 10:11:05 +01:00
Lou-Kamades
8113832e62
add ix functions for TCS in Typescript client
2023-11-09 18:20:40 -06:00
Lou-Kamades
eff38f9bbd
v0.19.44
2023-11-08 14:24:34 +01:00
Lou-Kamades
e188cd0bcb
expose oracle parsing in TS client
2023-11-08 14:23:40 +01:00
Christian Kamm
8e1f512639
Client: remove stray debug output
2023-11-08 13:52:12 +01:00
Christian Kamm
06dd834215
Merge remote-tracking branch 'origin/dev' into deploy
2023-11-08 13:32:08 +01:00
Christian Kamm
12d74789ef
cli: save-snapshot command ( #773 )
2023-11-08 10:27:55 +01:00
Christian Kamm
7af1d58558
Some clippy fixes ( #776 )
2023-11-08 09:51:36 +01:00
microwavedcola1
5ca5d8f78c
program: even delegate can create token position ( #775 )
...
* program: even delegate can create token position
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-08 09:06:43 +01:00
Christian Kamm
0ad26d845f
liquidator: Allow excluding tokens from rebalance ( #774 )
2023-11-08 08:51:41 +01:00
Christian Kamm
c49efb2213
Change conditions for perp settle incentive ( #771 )
...
- Only ever give an incentive when pnl is at least 1% of the position
value. That way large positions (like $100k in SOL-PERP) don't get
settled on 0.1% price fluctuations. The price now needs to change by
1% for settlement to occur.
- For low health incentives, cap the percentual incentive at 2x the flat
settle fee. We want to give the settler incentive to use these first,
but the settler doesn't take on risk, so the reward doesn't need to be
large.
2023-11-07 12:01:02 +01:00
Steve | mango
29fa27b76b
Merge pull request #757 from blockworks-foundation/groovie/readme-onchain-dev
...
FAQ for program development troubleshooting
2023-11-07 10:32:02 +01:00
Christian Kamm
37195b5f83
separate file, editing
2023-11-07 09:02:07 +01:00
Lou-Kamades
35bdf46c05
update getCumulativeFundingUi comment
2023-11-05 23:51:49 +01:00
Lou-Kamades
ac98a56e7d
v0.19.43
2023-11-05 15:15:05 +01:00
Lou-Kamades
b39412d3a2
add getCumulativeFundingUi
2023-11-05 15:13:23 +01:00