Submitted by cccz
In the TribeRedeemer contract, the user provides redeemedToken to redeem the tokens in the list.
The transaction will revert when the balance of tokens in the list is 0. This prevents the user from losing their redeemedToken if they redeem when there are no tokens in the contract.
However, a malicious user could send tokens in the list to the TribeRedeemer contract so that the token balance is not 0. This would allow the redeem function to work, and the user would suffer a loss when they redeem early by mistake.
TribeRedeemer.sol#L44-L61
Consider making the TribeRedeemer contract inherit the Pausable contract and allow users to redeem when a sufficient number of tokens have been sent to the contract.
thomas-waite (FEI and TRIBE) disputed and commented:
cccz (warden) commented:
hickuphh3 (judge) commented:
thomas-waite (FEI and TRIBE) commented:
hickuphh3 (judge) commented:
