Skip to content

Commit

Permalink
program: add maker rebate to order action record from fill w amm
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Dec 6, 2023
1 parent 5afe639 commit 9b97e01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion programs/drift/src/controller/orders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,11 @@ pub fn fulfill_perp_order_with_amm(
Some(base_asset_amount),
Some(quote_asset_amount),
Some(user_fee),
None,
if maker_rebate != 0 {
Some(maker_rebate)
} else {
None
},
Some(referrer_reward),
Some(quote_asset_amount_surplus),
None,
Expand Down

0 comments on commit 9b97e01

Please sign in to comment.