changes balance of all intended actors in RewardControl contract but the actual money not deposited to Rewardcontrol contract
c4-bot-8 opened this issue · 0 comments
Lines of code
Vulnerability details
Impact
Only changes balances of actors, no actual money is sent from PhiRewards to RewardControl. So withdrawal doesn't happen in RewardControl if this contract has less money than expected.
Proof of Concept
This PhiNFT1155 contract sent transactions with msg.value to PhiRewards, this contract changes the balance of all intended actors in the RewardControl contract but the actual money was not deposited to the Rewardcontrol contract. It definitely an issue while withdrawing all this money, instead the handeRewardsAndGetValueSent function should send actual money to the RewardControl contract.
Tools Used
Manual review
Recommended Mitigation Steps
depositRewards function in PhiRewards should send all rewards to the RewardControl contract along with changing balances of actors
Assessed type
Token-Transfer