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
Lou-Kamades
2b4101d978
v0.19.42
2023-11-05 14:33:58 +01:00
Nicholas Clarke
a4fa1b801b
Add getCumulativeFunding to client. ( #602 )
...
* Add getCumulativeFunding to client.
2023-11-05 14:27:46 +01:00
Harrison Green
ff0c1dcf1b
add audit report for v0.20.0 ( #772 )
2023-11-04 07:27:40 +01:00
Christian Kamm
f690514638
rust client: ix cu limits based on health compute cost ( #768 )
...
Many instructions now return PreparedInstructions instead of a direct
Instruction or Vec<Instruction>. That way they can keep track of the
expected cu cost of the instructions for the compute limit instruction
that gets added once all instructions are made.
2023-11-03 11:20:37 +01:00
Christian Kamm
941f945999
fast listing: disable flash loan swap fee ( #770 )
2023-11-02 10:40:43 +01:00
Christian Kamm
26549ffd92
Bank: track deposits in serum oo accounts ( #769 )
2023-11-02 10:40:31 +01:00
microwavedcola1
d84f61c07f
v0.19.41
2023-10-31 22:44:40 +01:00
microwavedcola1
7a8602b3ab
ts: bump cu for now
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-10-31 22:42:06 +01:00
microwavedcola1
ad514f31f1
ts: yarn dedupe
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-10-31 08:36:45 +01:00
microwavedcola1
2910fd1cfa
ts: yarn dedupe
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-10-31 08:36:34 +01:00
Christian Kamm
c667a6615b
Merge pull request #767 from blockworks-foundation/ckamm/audit-fixes
...
Address audit comments
2023-10-31 08:21:19 +01:00
Christian Kamm
5d08f4ae0f
tcs trigger: consistent maker fee computation
2023-10-30 17:22:24 +01:00
Christian Kamm
c5cbdd927f
tcs start: defensive assert on sold <= max_sell
2023-10-30 13:43:15 +01:00
Christian Kamm
a81d0918cc
tcs start: use same naming convention as in other ix
...
liqee/liqor over account/caller
2023-10-30 13:41:19 +01:00
Christian Kamm
a24e43c8a7
tcs trigger: remove dead code
...
deactivation of liqee token positions is impossible because they're in
use until the tcs is closed
2023-10-30 13:30:08 +01:00
Christian Kamm
15072be644
tcs trigger: simplify min buy check for expired
2023-10-30 13:25:53 +01:00
microwavedcola1
3ed4e63b58
ts: update settler script
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-10-26 19:46:58 +02:00
microwavedcola1
fb97685e07
ts: update settler script
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-10-26 19:45:26 +02:00
microwavedcola1
e8505ddeaa
settle a particular account
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-10-26 17:50:13 +02:00
microwavedcola1
24c2c2d7bf
v0.19.38
2023-10-23 15:02:44 +02:00
Christian Kamm
4eaf550da9
gov-ix: add group edit ix creation
2023-10-20 14:28:29 +02:00
Christian Kamm
b3ec7095ce
gov ix: idl set-authority instruction
2023-10-20 13:49:39 +02:00
microwavedcola1
d994c14125
v0.19.37
2023-10-19 15:49:15 +02:00