AI Development Setups Review and When to Use Each
AI-assisted development and AI-native companies are becoming more and more popular, but security is not catching up. This article compares the most common AI […]
The rewards may have been partially stolen.
The DuctLock contract currently permits a new reward to be added to the next epoch when the notifyRewardAmount function is invoked. This allows individuals to create locks before the new epoch and subsequently claim a portion of the newly added reward. The potential for exploitation increases with larger reward amounts due to the ability to optimize the timing
and size of token locks.
Attackers can optimise the attack by initially creating small locks at the beginning of each epoch and subsequently increasing the amount of tokens in locks that are closest to expiration after a significant reward is added.
The attackers might take the following steps in sequence:
Note: Attackers may also create a new lock after step 2, but a 4-week waiting period is required to withdraw tokens.
MEDIUM – Part of the rewards are stolen.
RevenueReward contract.Meet Composable Security
Get throughly tested by the creators of Smart Contract Security Verification Standard
Let us help
Get throughly tested by the creators of Smart Contract Security Verification Standard