Commit Graph

1973 Commits

Author SHA1 Message Date
microwavedcola1 53b608d79d optimize
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-28 09:45:15 +02:00
microwavedcola1 aa9851dfd7 Fix imports
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-28 09:40:55 +02:00
microwavedcola1 21c2af7317 make pp liq price faster to compute
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-28 08:04:49 +02:00
microwavedcola1 86fe602364 cleanup
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-27 12:47:01 +02:00
microwavedcola1 fb414ad591 v0.16.7 2023-06-27 12:35:08 +02:00
microwavedcola1 06ade9ec04 bump
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-26 16:52:33 +02:00
microwavedcola1 5674076b8e fix merge
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-26 16:47:32 +02:00
microwavedcola1 0e180ed380
Mc/perp liq price 2 (#625)
* perp position liquidation price calculator

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* refactor

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* ui method

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-06-26 16:45:52 +02:00
microwavedcola1 18e39bc197 dont quote rndr
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-23 20:06:04 +02:00
microwavedcola1 66ccd962bc
mc/break even price ts client: account for unsettled funding (#617)
* v0.16.3

* ts: break even price, account for unsettled funding

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* script

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

---------

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-23 14:32:04 +02:00
microwavedcola1 e8a5b543af add logs
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-22 20:02:33 +02:00
microwavedcola1 87bb290010 widen
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-22 19:37:08 +02:00
microwavedcola1 f5955dc7cf quote small rndr
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-22 19:36:49 +02:00
microwavedcola1 d9792bc007 v0.16.5 2023-06-22 08:42:25 +02:00
microwavedcola1 b84b135dae add realized pnl helpers, reorder methods
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-22 08:40:06 +02:00
microwavedcola1 1804412574 v0.16.4 2023-06-21 08:50:39 +02:00
microwavedcola1 09ee476ecf Fix risk computation for stable pairs
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-21 08:45:27 +02:00
microwavedcola1 80760566f1 v0.16.3 2023-06-19 10:14:28 +02:00
microwavedcola1 dff07c2028 Fix fetch used
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-19 09:31:18 +02:00
microwavedcola1 01dbae9f0a update mm list
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-18 10:13:10 +02:00
microwavedcola1 a58eec01c7 v0.16.2 2023-06-18 10:10:47 +02:00
microwavedcola1 73671897b9 fix
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-18 10:08:12 +02:00
microwavedcola1 2e438e0d5e Revert "try to override bad node-fetch code"
This reverts commit 468754d5ae.
2023-06-18 09:59:49 +02:00
microwavedcola1 b4935fc718 update anchor
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-16 16:09:16 +02:00
microwavedcola1 e3300138a7
Fix ts client margin trade method to also work for delegates (#615)
* margin trade for delegate support

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* Fixes from review

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* example

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* update

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

---------

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-16 16:07:09 +02:00
Christian Kamm 9bd3913ba4 Changelog and idl update 2023-06-16 13:38:26 +02:00
Christian Kamm 4e45653c95 Audit fixes (#613)
* TokenForceCloseBorrows: Respect reduce-only flag
* ForceCancelOrders: Readability of early-out condition

(cherry picked from commit b5c9f6d039)
2023-06-16 13:35:24 +02:00
microwavedcola1 c80f3440be v0.16.1 2023-06-16 08:16:54 +02:00
microwavedcola1 2d2a326a53 move to new ixs
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-16 08:14:39 +02:00
microwavedcola1 e39531e87c typo
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-16 08:10:52 +02:00
microwavedcola1 43a034e91e typo
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-16 08:10:07 +02:00
microwavedcola1 945c7b2fd4 v0.16.0 2023-06-16 08:07:57 +02:00
microwavedcola1 ca8053e3ec
ts client: perp place order ix builders with self trade behavior (#609)
* ix builders for self trade behavior on perps

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* ix builders for self trade behavior on perps

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

---------

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-16 08:05:16 +02:00
microwavedcola1 07aa994a90
Mc/client simple setup (#611)
* make setting up of ts client easier

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* docs

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

---------

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-16 08:04:58 +02:00
microwavedcola1 3df0e9da83 Merge branch 'main' into deploy 2023-06-15 14:21:47 +02:00
Christian Kamm eb662f34fc Changelog updates 2023-06-15 10:48:37 +02:00
Christian Kamm 57e1d981ac
Health: Allow actions while init health does not decrease (#592)
Instead of requiring a strict increase when init health < 0.

This allows users to still place reducing limit orders on the spot and
perp orderbooks as long as these orders keep the health unchanged.
2023-06-15 10:44:11 +02:00
Christian Kamm bbf0186398
Pyth oracles: Check that status is "trading" (#607) 2023-06-15 10:43:44 +02:00
Christian Kamm 66c6926419
Audit fixes for the fee buyback feature (#608)
* reduce_buyback_fees_accrued: forbid reducing more than accrued
* Buyback fees: Expire accrued during event processing
2023-06-15 10:43:31 +02:00
Christian Kamm 438da67653 Changelog addition 2023-06-14 09:45:40 +02:00
Nicholas Clarke 23761ef28c
Add price to WithdrawLoanLog (#603) 2023-06-14 09:41:54 +02:00
Christian Kamm c1ab598f32
Override node-fetch 2.x dependency for a bugfix (#605) 2023-06-13 05:38:41 +02:00
Nicholas Clarke defbd8c2b1
Add loan amount to WithdrawLoanLog. Add withdraw loan logging to toke… (#599)
* Add loan amount to WithdrawLoanLog. Add withdraw loan logging to token_force_close_borrows_with_token

* Address review comments.
2023-06-11 15:37:33 -07:00
Christian Kamm 468754d5ae try to override bad node-fetch code 2023-06-10 08:05:06 +02:00
tjs 44fc32c311 use birdeye for prices 2023-06-07 20:38:38 -04:00
Britt Cyr 7803f1dc9d Fix warning when running tests 2023-06-01 08:16:11 +02:00
Christian Kamm 1cc77af7fa Bump version to 0.17.0, changelog updates, idl update 2023-05-31 09:11:56 +02:00
microwavedcola1 d599daf5d7 update
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-05-30 09:30:17 +02:00
microwavedcola1 d0e7c54216 script for off chain data
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-05-30 08:37:18 +02:00
microwavedcola1 6a76476acd
referrerRebatesAccrued - these accrue to the ui now (#596)
* these accrue to the ui now

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-05-28 07:44:45 +02:00