In Solidity, integer division truncates the decimal part, leading to incorrect calculations of platformFees.
In the file MembershipFactory.sol, at line 140, the function joinDAO is responsible for calculating and collecting platformFees. The calculation code is :
The variable tierPrice is set in the function createNewDAOMembership. Assuming it is set to a very small value like 1, the result of the platformFees calculation will be 0 due to integer division truncating the decimal part, which leads to the failure of collecting platformFees.
Failed to collect platformFees
Manual audit.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.