Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 928 Bytes

File metadata and controls

13 lines (11 loc) · 928 Bytes

GateDelay: Market rebate / commission / referral / market referrer

  • Fix Contracts/src/Trading.sol so it correctly wraps Contracts/src/MarketMaker.sol (remove broken accounting and make it compile).
  • Implement taker-based market referrer in Contracts/src/Trading.sol (storage + setter + events).
  • Implement commission payment + market rebate split in Contracts/src/Trading.sol (BUY path; SELL skipped).
  • Wire on-chain rebate attribution to backend (new DB fields or new model + service logic updates).
  • Update backend referral tracking to store/resolve market referrer (link referral to on-chain referrer address).
  • Update backend trade settlement to compute commission/rebate based on actual fee split.
  • Add tests:
    • forge tests for rebate/referrer/fee split correctness
    • backend jest tests for referral attribution using real computed amounts
  • Run build/test commands.