Commit Graph

68 Commits

Author SHA1 Message Date
Armani Ferrante 5b43fe1455
v0.5.5 2022-02-14 10:47:08 -05:00
Pierre 4d0a8dcdbf
fix: stable market tiers (#217) 2022-02-14 10:33:44 -05:00
wootmatt 4258756cf7
Change consume_events_once visibility to pub (#215) 2022-02-01 10:22:01 -05:00
jhlx 29ba51d005 v0.5.4 2022-01-23 10:04:11 +08:00
jhl 42c8ee1477
Add more stable markets (#212) 2022-01-23 10:02:41 +08:00
Armani Ferrante eb50404ebc
v0.5.3 (#210) 2022-01-10 12:18:53 -05:00
Armani Ferrante be86566da3
Stable fees (#209) 2022-01-10 12:14:36 -05:00
Armani Ferrante b96737fcda
v0.5.2 2021-12-17 12:01:24 -05:00
Armani Ferrante be1e924c72
Check close authority on market init 2021-12-16 12:51:08 -05:00
jhlx 537a8c576f v0.5.1 2021-12-07 21:36:41 -05:00
Pierre db9247f85e
Lower fees as voted plz (#204)
* Less fees as voted plz

* Fix build and tests

* Actually read the test and concoct better naming

* Put back the maker_rebate

* oops

Co-authored-by: Arrowana <8245419+Arrowana@users.noreply.github.com>
2021-12-08 02:32:19 +00:00
Armani Ferrante bcedad83ec
v0.5.0 (#202) 2021-12-06 18:05:45 -05:00
Armani Ferrante f1a6be3c4c
Permissioned crank integration test (#203) 2021-12-06 17:22:04 -05:00
Armani Ferrante 57b9281374
Run permissioned tests against local crate (#201) 2021-12-06 13:49:05 -05:00
Armani Ferrante 6b1f166e9b
Fix fuzz tests (#198) 2021-12-01 10:36:14 -08:00
Armani Ferrante 7669ad8389
Permissioned crank middleware (#197) 2021-12-01 10:17:21 -08:00
Justin Starry 89a7f879bf
Update instruction account input comments (#194) 2021-11-28 08:05:17 -08:00
Armani Ferrante 31cbbc88b4
Optimize compute units with compiler flags (#159) 2021-11-27 07:06:28 -08:00
Armani Ferrante 8d6c746baa
Merge in disabled market updates (#190) 2021-10-31 11:41:02 -07:00
Kirill Fomichev a3648a2b95
dex: Make referral account readonly in new_order (#179) 2021-10-31 06:03:18 -07:00
xjcaa e744bfb9aa
Fix consume_events_permissioned instruction (#180) 2021-10-31 05:59:23 -07:00
Zorro 625fd853ed
dex: Fix permissioned crank (#178) 2021-10-31 05:36:45 -07:00
Armani Ferrante 298bcd409c
dex: Move in permissioned markets (#189) 2021-10-31 05:31:06 -07:00
Sebastian Conybeare 0c730d678f
Add support for markets with permissioned cranks (#170)
* Add optional crank authority to markets

* Introduce separate ConsumeEventsPermissioned instruction
2021-09-13 09:34:00 +08:00
Armani Ferrante d82f6cd7a0
dex: Fix check flags in crank (#172) 2021-08-25 08:39:35 -07:00
aac e7214bbc45
dex: Mutable open orders for prune instruction (#167) 2021-08-12 08:20:17 -07:00
armaniferrante b977df6c9c
dex: Add Anchor.toml for registry publishing 2021-08-09 01:50:17 -07:00
armaniferrante 1be91f2863
v0.4.0 2021-08-04 15:24:32 -07:00
Armani Ferrante 1527aa7f96
Permissioned fuzz tests (#161) 2021-08-03 02:22:55 -07:00
Armani Ferrante 1ec7affd8b
Prune orders instruction (#157) 2021-08-03 02:08:25 -07:00
Armani Ferrante a3b4cf7119
Remove dead code (#160) 2021-07-27 19:33:50 -07:00
Armani Ferrante 06ae280d9c
Add market authority for creating open orders accounts (#156) 2021-07-27 18:08:27 -07:00
armaniferrante 3766dfe6b1
Fix fuzz tests 2021-07-26 16:47:44 -07:00
Armani Ferrante 063267eb0a
Dynamic sysvars (#155) 2021-07-26 15:25:10 -07:00
bonedaddy 1f6d586701
Enable Loading Bids And Asks Via External Packages (#121) 2021-06-29 14:33:59 -07:00
comradekoval 576e5d2ef2
Fix instruction AccountInfo mutability (#143)
Fix order cancel instruction account mutability
2021-06-26 14:19:16 -07:00
Armani Ferrante 7d1d415384
v0.3.1 (#129) 2021-05-31 11:41:16 -07:00
Armani Ferrante ec290344e4
Add instruction for open orders initialization (#119) 2021-05-31 15:39:00 +08:00
Armani Ferrante 2d4a7a94fe
dex: Close open orders accounts (#112)
* dex: Close open orders accounts

* Zero out open orders account data on close

* Fix length assertion

* Remove token account parsing

* Remove rent from close ix

* Add close open orders to whole shebang

* Add close open orders to fuzz test

* Fix fuzz

* Update u128

* Cancel orders in whole shebang

* Update docker iamge

* travis: Update solana cli

* json compact output

* Add error logging and move free slot bits check

* Add Closed AccountFlag

* Replace .bits() with as u64 cast

* Skip errors instead of removing owner from set

* Fix derive ordering

* Skip WrongOrdersAccount error if account is closed

Co-authored-by: Sebastian Conybeare <sebastian@alameda-research.com>
2021-05-31 14:36:17 +08:00
Nathaniel Parke 60f9a3260c
Add flags to crank less aggressively (#128)
* Wait for some time or sufficient events to crank

* Rust fmt

* Fixes

* Fix sign
2021-05-28 15:26:43 +08:00
Sebastian Conybeare 6f446cf300
Fix a bug preventing instant settlement after IOC orders. (#126)
* Update fuzz dependencies

* Atomically release unused funds from IOC bids
2021-05-25 00:03:24 +08:00
Dmitri Makarov 5420646709
dex: Fix compiler error triggered when compiling with rust 1.52 (#123) 2021-05-19 20:21:28 -07:00
Armani Ferrante 6690408859
dex: v0.3.0 (#114) 2021-04-29 23:37:05 -07:00
armaniferrante 419a780fd4
Revert "Mark Various Functions, And Enums Public For On-Chain Price Calculations (#106)"
This reverts commit 905aed67b5.
2021-04-22 11:16:39 -07:00
bonedaddy 905aed67b5
Mark Various Functions, And Enums Public For On-Chain Price Calculations (#106) 2021-04-21 22:16:18 -07:00
Elliott Benisty 480cfefdbd
Update CPI instruction bindings to be compatible with v3 (#100) 2021-03-08 17:03:01 +08:00
Armani Ferrante aa85932deb
Remove regisry, lockup, and solana-client-gen (#95) 2021-03-01 16:09:49 +08:00
Sebastian Conybeare 868c6f1694
Dex V3 (#97)
* Dex V3

* Don't --use-deprecated-loader when deploying the dex

* travis: Use solana-test-validator

* travis: Install deps

* travis: Add libssl-dev

* travis: Use bionic

* travis: Set path

* docker: Update solana cli to 1.5.5

* travis: Create keypair before starting validator

* travis, scripts: Run validator within docker

* scripts: Use solana PascalCase for solana deploy 1.5.5 output

* Add sleep to wait for validator to start

Co-authored-by: Sebastian Conybeare <sebastian@projectserum.com>
Co-authored-by: Armani Ferrante <armaniferrante@gmail.com>
2021-03-01 09:37:36 +08:00
Elliott Benisty 1a9aee6e74
Fix writable spl token program account which should be readonly (#99) 2021-02-09 00:13:09 +08:00
Elliott Benisty d47058600c
Add helper functions to dex instrutions.rs to facilitate use in CPI (#92) 2021-01-24 19:42:31 -08:00