Inside tokensToVotes()
(tokenAmount * voteFactor) / fractionDenominator
if tokenAmount has 6 decimals then it would create a rounding error as tokenAmount is in 6 decimal while fractionDenominator is of 18 decimals which rounds down number to zero.
Eg . 5 1e6 2 / 10*18, this would round down to zero even if user has deposited 510**6 tokens thus he has zero voting power.
And in readme it is stated that they would be using USDC so this issue would be very much likely.
Impact
tokensToVotes() would round down to zero and his voting power would be zero.
smbv-1923
high
Rounding issue in tokensToVotes()
Summary
Rounding issue in tokensToVotes()
Vulnerability Detail
Impact
Code Snippet
-https://github.com/sherlock-audit/2024-05-tokensoft-distributor-contracts-update/blob/main/contracts/packages/hardhat/contracts/claim/abstract/PerAddressContinuousVesting.sol#L17
Tool used
Manual Review
Recommendation