Christian Kamm
ec48db01bb
Changelog for program-v0.10.0 and idl update
2023-03-30 17:28:14 +02:00
Christian Kamm
312a60fe4f
Net borrow limits: Use correct price for check ( #527 )
2023-03-30 17:25:29 +02:00
microwavedcola1
b7189696d8
update script
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-30 17:17:38 +02:00
microwavedcola1
2957796de8
in perp settle fees, dont error, rather return early, this enables blindly concatenating perp settle fees to perp settle pnl ( #526 )
...
* in perp settle fees, dont error, rather return early
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-03-30 17:00:41 +02:00
microwavedcola1
7d389275a8
update script
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-30 17:00:28 +02:00
microwavedcola1
9b9ad707c2
Fix script
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-30 10:40:33 +02:00
microwavedcola1
f89a7b03a1
Merge branch 'ts-client' into dev
2023-03-30 10:37:25 +02:00
microwavedcola1
885971a898
v0.9.12
2023-03-30 10:33:53 +02:00
microwavedcola1
612595b246
combined fees and pnl settle tx
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-30 10:30:15 +02:00
microwavedcola1
1d8569b2cd
v0.9.11
2023-03-30 10:22:59 +02:00
microwavedcola1
1bff79f8f9
perp settle pnl and fees ix
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-30 10:19:00 +02:00
microwavedcola1
613b062e8f
fix bug where unrealised profit was not abs'ed
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-30 10:12:16 +02:00
microwavedcola1
d0cf3e6b42
update script
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-30 10:10:00 +02:00
microwavedcola1
47adfa6540
fix bug where unrealised profit was not abs'ed
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-30 09:39:49 +02:00
microwavedcola1
6870d2d871
increase spread
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-29 20:54:07 +02:00
microwavedcola1
e677f78ea1
remove delay
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-29 20:37:36 +02:00
microwavedcola1
c6b9c70d4d
add random delay
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-29 20:37:05 +02:00
microwavedcola1
a66e9db94c
add random delay
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-29 20:36:32 +02:00
riordanp
6be7810c56
Add prometheus metrics to crank ( #517 )
...
* Add prometheus metrics to keeper
2023-03-29 15:51:32 +01:00
Christian Kamm
30984bbef1
Use new shared mango-feeds-connector crate for chain_data ( #515 )
2023-03-29 09:46:06 +02:00
microwavedcola1
b57b330d1f
increase size
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-29 09:19:31 +02:00
microwavedcola1
1da6493230
Merge branch 'deploy-mm' into ts-client
2023-03-28 07:47:10 +02:00
microwavedcola1
03250d44da
Merge branch 'deploy-mm' into dev
2023-03-28 06:39:27 +02:00
microwavedcola1
847a3bd618
increase size
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-27 20:29:37 +02:00
Christian Kamm
590803f039
Temporarily disable health region use on mm script ( #507 )
2023-03-27 15:37:46 +02:00
microwavedcola1
ef23d1406e
minor ts fixes
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-27 13:34:12 +02:00
microwavedcola1
f2e3669316
v0.9.10
2023-03-27 11:06:48 +02:00
microwavedcola1
c29c41e20f
Fix interest rate computation in client ( #520 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-27 10:39:26 +02:00
microwavedcola1
f866a49aa9
Fix interest rate computation in client ( #520 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-27 10:39:01 +02:00
microwavedcola1
6acb196c86
fix eth
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-26 16:52:23 +02:00
microwavedcola1
86b11b73fe
fix eth
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-26 16:48:33 +02:00
microwavedcola1
1f3a170886
add eth
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-26 16:46:10 +02:00
tjs
26d7ec505c
make decodePriceFromOracleAi fn public so websockets can update price
2023-03-25 13:37:02 -04:00
microwavedcola1
797e0bf91b
extend script, fix util function
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-22 14:30:25 +01:00
microwavedcola1
258d95d035
Fix bug: only account for borrows we are offsetting ( #513 )
...
* Fix bug: only account for borrows we are offsetting
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* fix
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Bank: Unittest for net borrow limits
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
Co-authored-by: Christian Kamm <mail@ckamm.de>
2023-03-22 09:58:31 +01:00
microwavedcola1
89f936c14a
add script to sim accounts with leverage change ( #514 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-22 09:58:20 +01:00
Maximilian Schneider
d0a546381f
Quality of life fixes ( #511 )
...
* breaking: make pegLimit an optional arg
* pass externally cached blockhashes to sendTransaction
* convenience accessors for connection & walletPk on client
2023-03-22 02:01:15 +04:00
microwavedcola1
cce8bb4b14
liquidator docs ( #512 )
...
* liquidator docs
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* update
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* update
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-21 18:37:01 +01:00
microwavedcola1
2e2ac6118d
increase charge
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-21 13:04:55 +01:00
Christian Kamm
7c02075c80
Bump program version to v0.10.0
2023-03-21 12:51:21 +01:00
microwavedcola1
0edd11b3df
Merge branch 'ts-client' into deploy-mm
2023-03-20 19:30:06 +01:00
microwavedcola1
d5701372e2
quote less
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-20 19:23:47 +01:00
riordanp
fd4c69b1c2
Add fly deploy scripts ( #490 )
2023-03-20 14:59:43 +01:00
microwavedcola1
3838daf942
quote less
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-20 14:45:57 +01:00
Christian Kamm
b22a1e7f57
HealthRegion: Whitelist allowed instruction types ( #508 )
...
This fixes a security issue where bankruptcy related instructions could
be called inside a health region. Now health regions are limited to
compute optimization like when placing multiple orders in one
transaction.
This limitation also makes it impossible to abuse health regions for
flash loans. Use the FlashLoan instructions for that purpose.
2023-03-20 14:02:35 +01:00
Christian Kamm
658a220095
Allow token/market names to fill storage bytes completely
...
Previously the last byte was always zero.
2023-03-20 14:02:03 +01:00
Christian Kamm
99360e69a3
TokenRegister: Sanity checks on token_index
2023-03-20 14:02:03 +01:00
Christian Kamm
d1e3da2b75
IxGateSet: Log AccountBuybackFeesWithMngo state
2023-03-20 14:02:03 +01:00
microwavedcola1
fd0bd1d6d5
refactor script ( #509 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-20 13:57:32 +01:00
microwavedcola1
1a533cf886
Merge branch 'ts-client' into dev
2023-03-20 12:23:58 +01:00