Lucene search
+L

2 matches found

Code423n4
Code423n4
added 2023/03/09 12:00 a.m.13 views

Loss of reward for stakingRewardRecipient

Lines of code Vulnerability details Impact Anyone can call claimRewards function with rewardType = LotteryRewardType.STAKING, in which function LotteryMath.calculateRewards is used to calculate reward to transfer to beneficiary. By observing number of ticketsSold calculated from the...

6.7AI score
SaveExploits0
Code423n4
Code423n4
added 2023/03/09 12:00 a.m.14 views

Calculation in calculateNewProfit function is broken when jackpot is not won

Lines of code Vulnerability details The function calculateNewProfit present in the LotteryMath library is used when finalizing the current draw in the Lottery to track and update the currentNetProfit variable in the contract. function calculateNewProfit int256 oldProfit, uint256 ticketsSold,...

6.7AI score
SaveExploits0
Rows per page
Query Builder