Skip to content

Commit

Permalink
program: fix validate test
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Jul 15, 2024
1 parent fa862dc commit a413ab1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions programs/drift/src/validation/fee_structure/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ use crate::validation::fee_structure::validate_fee_structure;

#[test]
fn default_fee_structures() {
validate_fee_structure(&FeeStructure::perps_default()).unwrap();
let mut default_perp_fees = FeeStructure::perps_default();
default_perp_fees.flat_filler_fee = 3333;
validate_fee_structure(&default_perp_fees).unwrap();

validate_fee_structure(&FeeStructure::spot_default()).unwrap();
let mut default_spot_fees = FeeStructure::spot_default();
default_spot_fees.flat_filler_fee = 3333;
validate_fee_structure(&default_spot_fees).unwrap();
}

0 comments on commit a413ab1

Please sign in to comment.