Skip to content
Business logic Audit finding Intermediate

The contract calculates the minimumYeetPoint using the Pot going to the winner instead of the whole Pot.

The contract calculates the minimum yeet amount using only the pot going to the winner, not the total of both pots. This means the minimum yeet size does not increase as much as the documentation promises, and the protocol collects less tax than it would if the full pot were used.

robin_bl4z3 Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

#41511 [SC-Low] The contract calculates the `minimumYeetPoint` using the Pot going to the winner instead of the whole Pot.

Submitted on Mar 16th 2025 at 00:09:11 UTC by @robin_bl4z3 for Audit Comp | Yeet

Description

Brief/Intro

As the docs say (See the Reference or the screenshot), the minimumYeetPoint is determined using the Pot Value (after the bootstrap has ended), but only 1 Pot Value is used to calculate this.

Vulnerability Details

There are two types of Pots in this system: potToWinner and potToYeetback, but the contract only uses the potToWinner to calculate what the next user is required to yeet

Impact Details

  • The first impact is that as the docs promised, "minimum yeet size increases with the pot size" But only 1 of 2 pot sizes is being used to calculate the minimum yeet, which is failing to deliver promised returns.
  • The second one is that the protocol loses the tax they would have been able to get as if the actual pool value was used to increase the minimum yeet required more tax would be collected. So the Protocol loses some of their tax that would accumulate faster.

References

Recommendation

Change the minimumYeetPoint to account for both pots

Solidity
- uint256 minimumYeetPoint = _minimumYeetPoint(potToWinner);

+ uint256 minimumYeetPoint = _minimumYeetPoint(potToWinner + potToYeetback);

Proof of Concept

Proof of Concept

  1. As you can see when the user yeets, only the PotToWinner is taken to consideration when calculating the minimumYeetPoint and not both Pots
Solidity
uint256 minimumYeetPoint = _minimumYeetPoint(potToWinner);
  1. This is how the minimumYeetPoint is calculated when Bootstrap has ended; it takes the totalPot as the param value (But only the PotToWinner is passed)
Solidity
 function _minimumYeetPoint(uint256 totalPot) private view returns (uint256) {
        if (totalPot == 0) {
            return MINIMUM_YEET_POINT;
        }

        if (isBoostrapPhase()) {
            return MINIMUM_YEET_POINT;
        }

        uint256 min = totalPot / POT_DIVISION;
        if (min < MINIMUM_YEET_POINT) {
            return MINIMUM_YEET_POINT;
        }
        return min;
    }
  1. On the Tax side, it relies on the msg.value, while msg.value relies on the returned minimumYeetPoint, which is only for the PotToWinner.
Solidity
        uint256 minimumYeetPoint = _minimumYeetPoint(potToWinner);
        if (msg.value < minimumYeetPoint) {
            revert InsufficientYeet(msg.value, minimumYeetPoint);
        }

        (uint256 valueToPot, uint256 valueToYeetback, uint256 valueToStakers, uint256 publicGoods, uint256 teamRevenue)
        = getDistribution(msg.value);

The original report as published on Immunefi, by robin_bl4z3. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

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 passes only the winner's pot to the minimum calculation function instead of the sum of both pots.

Impact

The contract fails to deliver the promised behaviour that the minimum yeet size increases with the pot size, and the protocol may collect less tax than it would if the full pot were used.

What the attacker needed

Bootstrap phase has ended

The fix

The minimum yeet point should be calculated using the sum of both pots.

How it was found

  1. A user calls the yeet function, which calculates the minimum yeet point using only the potToWinner.
  2. The _minimumYeetPoint function receives only the potToWinner as the totalPot parameter.
  3. The tax calculation relies on msg.value, which must be at least the minimumYeetPoint, so the tax is based on a lower minimum than intended.

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.

In this game, users must send at least a certain amount of cryptocurrency to play. The rules say this minimum should grow as the total prize pool grows. However, the code only looks at one part of the prize pool, so the minimum stays lower than it should, and the game earns less in fees.

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.

More by robin_bl4z3

View all

1 more disclosed report, best first.

More from Yeet

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.