Skip to content

[WIP] Feature/referral maker fees#10

Open
bathord wants to merge 9 commits into
feature/referral-feesfrom
feature/referral-maker-fees
Open

[WIP] Feature/referral maker fees#10
bathord wants to merge 9 commits into
feature/referral-feesfrom
feature/referral-maker-fees

Conversation

@bathord

@bathord bathord commented Mar 15, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

bathord added 9 commits March 15, 2026 12:34
Add MakerReferralInfo & MakerReferralKey. MakerReferralInfo is attached to pool.id as DF when maker referral fee is locked in vault.
Add lock_maker_referral_fee function to pre-lock the maker ref. fee.
Add process_maker_referral_fills function to process all the fills against maker orders that have pre-locked referral fees.
Update cancel_order function to refund pre-locked maker referral fees if any.
Update modify_order function to refund a proportional part of the pre-locked maker referral fees if any.
Update locked_balance to take into account locked maker referral fees if any.
Update place_order_int to process maker referral fills and to pre-lock maker referral fees for the created order.

Add credit_account_settled_balances function to state module to refund maker referral fees when orders expire during matching.
@avernikoz avernikoz changed the title Feature/referral maker fees [WIP] Feature/referral maker fees Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant