52339 sc low loss of daily streak and jackpot eligibility due to supra generator callback delay and on callback time usage in spin sol
Description
// plume_network/attackathon-plume-network/plume/src/spin/Spin.sol:304-321
function handleRandomness(uint256 nonce, uint256[] memory rngList) external onlyRole(SUPRA_ROLE) nonReentrant {
// ...
// Compute daily streak and determine reward
uint256 currentSpinStreak = _computeStreak(user, block.timestamp, true); // @audit-issue compute streak based on the callback time
uint256 randomness = rngList[0]; // Use full VRF range
(string memory rewardCategory, uint256 rewardAmount) = determineReward(randomness, currentSpinStreak);
// ...
}Previous52620 sc medium permanently dos to arctokenpurchase contractNext51847 sc critical dos via dust leftover in erc 20 approvals
Was this helpful?