Maximilian Schneider
74387f3c49
add custom error type
2022-05-24 22:35:08 +03:00
Maximilian Schneider
1773bcb231
allow passing in as many open orders as needed
2022-05-24 01:39:31 +03:00
dd
193f096af9
update deploy time
2022-05-14 17:40:11 -04:00
dafyddd
fb11820821
fix zero base quantity trades for perps
2022-05-14 17:40:11 -04:00
dafyddd
2e722126e6
Fix overflow in SettlePnl
2022-05-14 17:40:11 -04:00
dafyddd
b6f30798c3
update changelog and v3.4.6 deploy time
2022-05-14 14:38:58 -04:00
dafyddd
8b52fdd7ee
take into account open orders when placing reduce only order on luna perp; use perp market pubkey instead of market index for determining if luna market in price bands check
2022-05-14 14:35:44 -04:00
dafyddd
a25df7d6da
small fixes to devnet ids.rs and spot order luna calc
2022-05-14 14:35:44 -04:00
dafyddd
8c0b79ca6f
fixed order quantity bug
2022-05-14 14:35:44 -04:00
dafyddd
c71bc0758d
fixed net_pos calc bug
2022-05-14 14:35:44 -04:00
dafyddd
9d2a6abba6
fix luna spot orders
2022-05-14 14:35:44 -04:00
dafyddd
1becea151c
luna bids allowed to be up to 9c
2022-05-14 14:35:44 -04:00
dafyddd
6e75068beb
Update version, deploy time and changelog
2022-05-14 14:35:44 -04:00
dafyddd
47c7affe63
Update version, deploy time and changelog
2022-05-12 11:26:55 -04:00
Christian Kamm
44471bd713
place_spot: require increasing health for reduce_only
...
This does not change the non-luna behavior where reduce_only is enabled
when pre_health < 0.
2022-05-12 11:26:55 -04:00
dafyddd
abbbe08bcc
Revert "force reduce_only for luna in PlaceSpotOrder and PlaceSpotOrder2"
...
This reverts commit 438738f11f
.
2022-05-12 11:26:55 -04:00
dafyddd
41c74ba50e
force reduce_only for luna in PlaceSpotOrder and PlaceSpotOrder2
2022-05-12 11:26:55 -04:00
microwavedcola1
a4f5af22cc
fix key comparison
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-05-12 11:26:55 -04:00
microwavedcola1
7797bc1e5d
For luna, prevent market from getting stuck by using last known prices, price would be updated when confidence from pyth is back in our tolerance range which is same for all markets
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-05-12 11:26:55 -04:00
Christian Kamm
bc2538eae1
Withdraw: require allow_borrow=false for LUNA
2022-05-12 11:26:55 -04:00
Christian Kamm
08db8acd5d
Limit deposit() and withdraw() of LUNA token to be reduce_only
2022-05-12 11:26:55 -04:00
dafyddd
54f2e812b7
add luna spot market and perp market ids; force luna perp orders to be reduce only
2022-05-12 11:26:55 -04:00
microwavedcola1
cf8e9f317c
use higher confidence tolerance for oracle price for luna, since oracle feed is unreliable
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-05-12 11:26:55 -04:00
microwavedcola1
b2e3122ea5
Revert "increase tolerance for low oracle confidence to accomodate for unreliable luna oracle"
...
This reverts commit a9cfc8450d
.
2022-05-12 11:26:55 -04:00
microwavedcola1
91308f29cd
increase tolerance for low oracle confidence to accomodate for unreliable luna oracle
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-05-12 11:26:55 -04:00
dafyddd
0b33f75380
deploy time for v3.4.4
2022-04-30 11:07:44 -04:00
dafyddd
5a23b6310f
add changelog for 3.4.4
2022-04-22 09:57:15 -04:00
dafyddd
e9a15f4deb
fix bug in sim_get_val
2022-04-22 09:57:15 -04:00
dafyddd
4efa676a61
add more checked math to sim_get_val and get_val
2022-04-22 09:57:15 -04:00
dafyddd
6b01e3f63d
add more checks and rearrange cancel_all_spot_orders
2022-04-21 12:40:58 -04:00
dafyddd
e6e3a89df7
upgraded anchor and solana
2022-04-21 10:36:59 -04:00
dafyddd
378bd561bd
Pass in MangoCache and RootBank as writable into Deposit instruction. This is in preparation for bug fix
2022-04-20 10:37:13 -04:00
dafyddd
29f6dd6b44
Revert "Allow solana dependecies above `1.10` ( #174 )"
...
This reverts commit a12a559476
.
2022-04-19 15:40:23 -04:00
Jakob
a12a559476
Allow solana dependecies above `1.10` ( #174 )
...
* feat: allow deps above 1.10
* feat: allow 1.10 versions
2022-04-19 15:27:26 -04:00
Jakob Povšič
2018309e1c
load ref
2022-04-19 15:05:20 -04:00
Acammm
be1dd1d486
Disable UXD CI until we open source
2022-04-19 10:03:33 -04:00
dafyddd
95e563b193
Dd/serum max ts ( #170 )
...
* point to serum dex upstream for now; add in max_ts for PlaceSpotOrder and PlaceSpotOrder2; DOES NOT COMPILE UNTIL OUR SERUM DEX FORK IS UPDATED
* point to blockworks-foundation version of serum-dex
* add serum_dex.so from anchor build registry; fix initialize market in tests; tests still don't pass because of liquidate_token_and_token
* fixed tests breaking because of new fees in serum dex
* got rid of compile warnings in tests; made tests run faster
2022-04-18 17:07:23 -04:00
microwavedcola1
d06a6e3ec1
Merge pull request #168 from blockworks-foundation/mc/place_spot_order2-helper
...
add place_spot_order2 builder
2022-04-14 15:04:12 +02:00
microwavedcola1
bab74aba48
comment
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-14 14:55:51 +02:00
microwavedcola1
9aacd3ca99
fix
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-14 14:54:32 +02:00
microwavedcola1
fb6b94c490
format
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-14 10:56:17 +02:00
microwavedcola1
2817b77397
fix from cr
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-14 10:55:28 +02:00
godmodegalactus
58edf81e21
implementing cancel all spot orders instruction ( #162 )
...
* implementing cancel all spot orders instruction
* solving formatting issues
* Adding limit as argument, adding checks on root bank
* fixing format
* minor ident changes and adding a check on progId
2022-04-13 15:29:09 -04:00
microwavedcola1
6ad990956c
add place_spot_order2 builder
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-13 07:45:57 +02:00
microwavedcola1
7cbc1ea3a8
Merge pull request #167 from blockworks-foundation/acam/fix-uxd-ci
...
Update CI (and updated secret PAT)
2022-04-04 06:05:54 +02:00
Acammm
fc4ef6e4da
Update CI (and updated secret PAT)
2022-04-04 10:06:33 +08:00
dd
3c5e0627af
update deploy time for v3.4.3
2022-04-03 15:10:03 -04:00
dd
1611c522da
update changelog
2022-04-03 14:26:16 -04:00
dd
f28e0036f5
Remove pyth status check and slot validity entirely
2022-04-03 14:25:15 -04:00
dd
38173ca02e
add changelog and update version to v3.4.3
2022-04-03 13:18:45 -04:00