Shambolic Mint Dinosaur
High
The claimFee function uses UFixed6Lib and UFixed18Lib for token amounts, assuming consistent decimal handling.
In https://github.com/sherlock-audit/2025-01-perennial-v2-4-update/blob/main/perennial-v2/packages/core/contracts/Market.sol#L360 the claimFee function uses UFixed6Lib and UFixed18Lib for token amounts, assuming consistent decimal handling.
In https://github.com/sherlock-audit/2025-01-perennial-v2-4-update/blob/main/perennial-v2/packages/core/contracts/Market.sol#L390
For tokens with decimals ≠ 18 (e.g., USDC with 6 decimals), conversions like UFixed18Lib.from(feeReceived) may miscalculate values.
No response
No response
No response
Token transfers may fail or lose precision for non-18 decimal tokens.
No response
Use library methods that explicitly account for token decimals during conversions.