Submitted by pmerkleplant, also found by GiveMeTestEther, WatchPug, and defsec
There exist ERC20 tokens that charge a fee for every transfer.
This kind of token does not work correctly with the TwabRewards contract as the
rewards calculation for an user is based on promotion.tokensPerEpoch (see line 320).
However, the actual amount of tokens the contract holds could be less than
promotion.tokensPerEpoch * promotion.numberOfEpochs leading to not claimable
rewards for users claiming later than others.
To disable fee-on transfer tokens for the contract, add the following code in
createPromotion around line 11:
PierrickGT (PoolTogether) confirmed
LSDan (judge) commented:
