The `_fee()` function is wrongly implemented in the code
_fee() function is wrongly implemented in the code so the protocol will get fewer fees and the trader will earn more\\n```\\n        (uint256 unitFee, , ) = _fees(10**decimals(), settlementFeePercentage);\\n        amount = (newFee * 10**decimals()) / unitFee;\\n```\\n\\nlet's say we have: `newFee` 100 USDC USDC Decimals is 6 `settlementFeePercentage` is 20% ==> 200\\nThe `unitFee` will be 520_000\\n`amount` = (100 * 1_000_000) / 520_000 `amount` = 192 USDC Which is supposed to be `amount` = 160 USDC
The `_fee()` function needs to calculate the fees in this way\\n```\\ntotal_fee = (5000 * amount)/ (10000 - sf)\\n```\\n
The protocol will earn fees less than expected
```\\n        (uint256 unitFee, , ) = _fees(10**decimals(), settlementFeePercentage);\\n        amount = (newFee * 10**decimals()) / unitFee;\\n```\\n