We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba8ad84 commit 8335d5fCopy full SHA for 8335d5f
programs/drift/src/state/user.rs
@@ -1407,7 +1407,6 @@ impl Order {
1407
}
1408
};
1409
1410
- // if order is post only, can disregard reduce only
1411
if !self.reduce_only {
1412
return Ok(base_asset_amount_unfilled);
1413
programs/drift/src/state/user/tests.rs
@@ -1540,7 +1540,7 @@ mod get_base_asset_amount_unfilled {
1540
..Order::default()
1541
1542
1543
- assert_eq!(order.get_base_asset_amount_unfilled(Some(1)).unwrap(), 1)
+ assert_eq!(order.get_base_asset_amount_unfilled(Some(1)).unwrap(), 0)
1544
1545
1546
#[test]
0 commit comments