You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b461f9d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: finance/order-book/anchor-v1/README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1473,15 +1473,20 @@ anchor test --skip-local-validator
1473
1473
Expected:
1474
1474
1475
1475
```
1476
-
running 29 tests
1476
+
running 35 tests
1477
1477
test authority_can_withdraw_fees_after_match ... ok
1478
+
test better_order_evicts_the_worst_and_rests ... ok
1478
1479
test cancel_and_settle_bid_refunds_full_quote ... ok
1479
1480
test cancel_ask_credits_unsettled_base ... ok
1480
1481
test cancel_order_rejects_non_owner ... ok
1481
1482
test deepest_path_adds_little_compute_to_insert_fill_and_cancel ... ok
1482
1483
test doubling_prices_build_the_deepest_path_prices_allow ... ok
1484
+
test evicted_maker_settles_their_refund ... ok
1485
+
test eviction_rejects_missing_or_wrong_evicted_accounts ... ok
1483
1486
test fee_rounds_up_when_gross_is_not_a_bps_multiple ... ok
1484
1487
test fee_vault_receives_exactly_bps_of_taker_gross ... ok
1488
+
test full_side_cancel_of_the_last_scanned_order_fits_the_default_budget ... ok
1489
+
test full_side_refuses_an_order_no_better_than_its_worst ... ok
1485
1490
test initialize_market_rejects_oversized_fee ... ok
1486
1491
test initialize_market_rejects_zero_base_lot_size ... ok
1487
1492
test initialize_market_rejects_zero_quote_lot_size ... ok
@@ -1503,6 +1508,7 @@ test taker_bid_gets_price_improvement_from_resting_ask ... ok
1503
1508
test taker_crosses_multiple_resting_orders_best_price_first ... ok
1504
1509
test taker_partially_filled_remainder_rests_on_book ... ok
1505
1510
test taker_partially_fills_resting_order_rest_stays_on_book ... ok
1511
+
test trader_can_evict_their_own_worst_order ... ok
1506
1512
```
1507
1513
1508
1514
### What each test exercises
@@ -1554,6 +1560,7 @@ test taker_partially_fills_resting_order_rest_stays_on_book ... ok
1554
1560
-`evicted_maker_settles_their_refund`: The evicted owner's `settle_funds` pays out the refund
1555
1561
-`eviction_rejects_missing_or_wrong_evicted_accounts`: No evicted order, a non-worst order, or the wrong owner's `MarketUser`
1556
1562
-`trader_can_evict_their_own_worst_order`: Only the `Order` account is passed, and the caller's own `MarketUser` is credited
1563
+
-`full_side_cancel_of_the_last_scanned_order_fits_the_default_budget`: Canceling the bid found last among 512 stays inside the default 200,000-unit budget
Copy file name to clipboardExpand all lines: finance/order-book/anchor/README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1481,15 +1481,20 @@ anchor test --skip-local-validator
1481
1481
Expected:
1482
1482
1483
1483
```
1484
-
running 29 tests
1484
+
running 35 tests
1485
1485
test authority_can_withdraw_fees_after_match ... ok
1486
+
test better_order_evicts_the_worst_and_rests ... ok
1486
1487
test cancel_and_settle_bid_refunds_full_quote ... ok
1487
1488
test cancel_ask_credits_unsettled_base ... ok
1488
1489
test cancel_order_rejects_non_owner ... ok
1489
1490
test deepest_path_adds_little_compute_to_insert_fill_and_cancel ... ok
1490
1491
test doubling_prices_build_the_deepest_path_prices_allow ... ok
1492
+
test evicted_maker_settles_their_refund ... ok
1493
+
test eviction_rejects_missing_or_wrong_evicted_accounts ... ok
1491
1494
test fee_rounds_up_when_gross_is_not_a_bps_multiple ... ok
1492
1495
test fee_vault_receives_exactly_bps_of_taker_gross ... ok
1496
+
test full_side_cancel_of_the_last_scanned_order_fits_the_default_budget ... ok
1497
+
test full_side_refuses_an_order_no_better_than_its_worst ... ok
1493
1498
test initialize_market_rejects_oversized_fee ... ok
1494
1499
test initialize_market_rejects_zero_base_lot_size ... ok
1495
1500
test initialize_market_rejects_zero_quote_lot_size ... ok
@@ -1511,6 +1516,7 @@ test taker_bid_gets_price_improvement_from_resting_ask ... ok
1511
1516
test taker_crosses_multiple_resting_orders_best_price_first ... ok
1512
1517
test taker_partially_filled_remainder_rests_on_book ... ok
1513
1518
test taker_partially_fills_resting_order_rest_stays_on_book ... ok
1519
+
test trader_can_evict_their_own_worst_order ... ok
1514
1520
```
1515
1521
1516
1522
### What each test exercises
@@ -1562,6 +1568,7 @@ test taker_partially_fills_resting_order_rest_stays_on_book ... ok
1562
1568
-`evicted_maker_settles_their_refund`: The evicted owner's `settle_funds` pays out the refund
1563
1569
-`eviction_rejects_missing_or_wrong_evicted_accounts`: No evicted order, a non-worst order, or the wrong owner's `MarketUser`
1564
1570
-`trader_can_evict_their_own_worst_order`: Only the `Order` account is passed, and the caller's own `MarketUser` is credited
1571
+
-`full_side_cancel_of_the_last_scanned_order_fits_the_default_budget`: Canceling the bid found last among 512 stays inside the default 200,000-unit budget
0 commit comments