Submitted by 0Kage, also found by chaduke
https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/Trading.sol#L178 
https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/Trading.sol#L734
Formula for fee paid in Line 734 is incorrect leading to incorrect margin calculations. Since this directly impacts the trader margin and associated fee calculations, Ive marked as HIGH risk.
On initiating a market order, Margin is adjusted for the fees that is charged by protocol. This adjustment is in Line 178 of Trading. Fees computed by _handleOpenFees is deducted from Initial margin posted by user.
Formula misses to account for the 2*referralFee component while calculaing _feePaid.
Note that _feePaid as per formula in Line 734 is the sum of _daoFeesPaid, and sum of  burnerFee&botFee .  \_daoFeesPaidis calculated from\_fees.daoFeeswhich itself is calculated by subtracting2\*referralFeeandbotFee\.
So when we add back burnerFee and botFee to _feePaid, we are missing to add back the 2*referralFee  which was earlier excluded when calculating _daoFeesPaid. While botFee is added back correctly, same adjustment is not being done viz-a-viz referral fee.
This results in under calculating the _feePaid and impacts the rewards paid to the protocol NFT holders.
Suggest replacing the formula in line 734 with below (adding back \_fees.referralFees\*2)
Alex the Entreprenerd (judge) decreased severity to Medium and commented:
GainsGoblin (Tigris Trade) confirmed and  commented:
