Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixes

- program: correct fee tier 5 volume requirement ([#1800](https://github.com/drift-labs/protocol-v2/pull/1800))

- program: fix small number mark-twap-integer-bias ([#1783](https://github.com/drift-labs/protocol-v2/pull/1783))

### Breaking
Expand Down
2 changes: 1 addition & 1 deletion programs/drift/src/math/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ fn determine_perp_fee_tier(
ONE_MILLION_QUOTE * 2,
FIVE_MILLION_QUOTE * 2,
TEN_MILLION_QUOTE * 2,
FIFTY_MILLION_QUOTE * 2,
TEN_MILLION_QUOTE * 8,
ONE_HUNDRED_MILLION_QUOTE * 2,
];

Expand Down
2 changes: 1 addition & 1 deletion programs/drift/src/math/fees/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ mod calcuate_fee_tiers {
assert_eq!(res.maker_rebate_numerator, 25);
assert_eq!(res.maker_rebate_denominator, 1000000);

taker_stats.taker_volume_30d = 80_000_000 * QUOTE_PRECISION_U64;
taker_stats.taker_volume_30d = 70_000_000 * QUOTE_PRECISION_U64;

let res: FeeTier =
determine_user_fee_tier(&taker_stats, &fee_structure, &MarketType::Perp, false)
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3515,7 +3515,7 @@ export class User {
new BN(2_000_000).mul(QUOTE_PRECISION),
new BN(10_000_000).mul(QUOTE_PRECISION),
new BN(20_000_000).mul(QUOTE_PRECISION),
new BN(100_000_000).mul(QUOTE_PRECISION),
new BN(80_000_000).mul(QUOTE_PRECISION),
new BN(200_000_000).mul(QUOTE_PRECISION),
];
const stakeThresholds = [
Expand Down
Loading