The 20% charged as a yeetback is not considered as part of addYeetVolume and boostedValue
The contract calculates a user's Yeet volume and boosted value using only the 80% of the after-tax amount that goes to the pot, ignoring the 20% yeetback. This means users receive lower Yeet rewards and boosted value than the documentation promises.
Originally disclosed on Immunefi
- Disclosed after under an hour
#41542 [SC-Insight] The 20% charged as a `yeetback` is not considered as part of `addYeetVolume` and `boostedValue`
Submitted on Mar 16th 2025 at 12:27:35 UTC by @robin_bl4z3 for Audit Comp | Yeet
- Report ID: #41542
- Report Type: Smart Contract
- Report severity: Insight
- Target: https://github.com/immunefi-team/audit-comp-yeet/blob/main/src/Yeet.sol
- Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
Description
Brief/Intro
The Documentation says the pool's value of 100% is distributed like this
80% of the pot goes to the lastYeet (Winner)
20% goes to the 10 random users
But the 20% is not considered when it comes to addYeetVolume, only the 80% of the deposited amount after tax is. It should be 100% after-tax amount that determines the $Yeet Reward a user should get.
Vulnerability Details
As the docs said (Check reference or screenshot #2 in Attachments), the mechanism is that 15% of every yeet is taxed, then the ValueAftertax is distributed as 80-20. 80% to the winner and 20% to other random winners.
But as you know, when a user participates, they provide $BERA and receive $Yeet as a reward according to the $BERA amount they provided. Aside from tax, the contract only takes 80% as the volume provided by the user, and that determines the $Yeet and Boosted Value they will get. But that seems to be incorrect as the 20% that would go to the other 10 winners is not considered for $Yeet rewards, as the docs said even if the user does not wish to participate but only wants to earn $Yeet rewards they can do so, but they will only be entitled to 80% of their YeetVolume
Impact Details
Users do not get their promised returns as it was stated in the docs (Scrrenshot #1) that calculating BoostedValue depends on how much $BERA an address has yeeted in an epoch (assuming it excludes tax).
Users will be entitled to only 80%of theirYeetVolumeand leaving the20%, which will result in the low amount of $YeetReward andBoostedValue` they will get.
References
https://docs.yeetit.xyz/yeet/yeet-game/mechanics (YeetingRewards section and Lottery Section)
Recommendation
Consider the amount of $BERA an address has yeeted to calculate the $Yeet and BoostedValue they will receive.
Proof of Concept
Proof of Concept
Let's assume that Finding 5 is fixed from the pre-audit (for simplicity)
- When we look at the _yeet function, it calls
getDistributionwhich will calculate tax (10% of the total amount), the yeetback amount (20% of the taxed amount), and the PotValue (80% of the taxed amount). and return values
(uint256 valueToPot, uint256 valueToYeetback, uint256 valueToStakers, uint256 publicGoods, uint256 teamRevenue)
= getDistribution(msg.value);
- That means the
valueToPotrepresents the 80% of one winner and valueToYeetback represents 20% of 10 winners, which makes up 100%. But when we go get theaddYeetVolume(orBoostedValue). The 80%valueToPotis used to reward the user $Yeet rewards.
uint256 boostedValue = getBoostedValue(msg.sender, valueToPot, tokenIds);
rewardsContract.addYeetVolume(msg.sender, boostedValue);
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the code uses only the value sent to the pot (80% of the after-tax amount) when calculating the user's Yeet volume and boosted value, instead of the full after-tax amount.
Impact
Users could receive lower Yeet rewards and boosted value than promised, as only 80% of their after-tax contribution is counted.
What the attacker needed
User participates in the Yeet game
The fix
The contract should use the full after-tax amount (pot plus yeetback) when calculating Yeet volume and boosted value.
How it was found
- Call the _yeet function, which calls getDistribution to calculate tax, yeetback, and pot value.
- Observe that valueToPot is 80% of the taxed amount and valueToYeetback is 20%.
- See that getBoostedValue and addYeetVolume are called with valueToPot only, ignoring the yeetback.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When someone plays the game, they pay some money and get points (Yeet volume) that determine future rewards. The game takes a cut and splits the rest: most goes to a prize pot and a smaller part goes to other players. The report says the points are calculated only from the prize-pot portion, so players get fewer points than they should according to the rules.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.