Skip to content
Business logic Audit finding Intermediate

PoolMintFee is not considered for or checked against themintingCapAMG limits.

The minting cap check in the FAssets Minting library only counts the base minted value and ignores the pool fee that is minted alongside it, so the total supply can exceed the configured cap. An attacker or agent could push total minted assets slightly past the intended upper bound, breaking the protocol's supply invariant.

farman1094 Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

#47039 [SC-Medium] `poolMintFee` is not considered for or checked against the`mintingCapAMG` limits.

Submitted on Jun 8th 2025 at 11:05:07 UTC by @farman1094 for Audit Comp | Flare | FAssets

Description

Brief/Intro

There is mechanism or of Minting::checkMintingCap which make sure the Fassets is not minted more then the limit, but there is multiple places where the minting cap is not considered for the mint Amount.

Vulnerability Details

The function Minting::checkMintingCap in the Minting.sol contract is used to enforce a global limit (cap) on the total amount of assets that can be minted by the protocol. But there are multiple places at the time of mint of pool fee is not considered or check against the total cap, if that is under the global limit.

There is multiple places it is happening.

  • MintingFacet::selfMint: This function is used by agent to mint the fassets (FXRP) for himself.
        uint64 valueAMG = _lots * Globals.getSettings().lotSizeAMG;
        checkMintingCap(valueAMG);

Here we only checking the amountToMint against the total minting, poolFeeUBA is not included in this. the actual amount what minted by agent is poolFeeUBA + valueAMG.

  • MintingFacet::mintFromFreeUnderlying The same thing happening here at the time of check poolFeeUBA is not considered, and later minted amount was different

instead what should be happen is, like we checking for CollateralReservations::reserveCollateral checking the both amount, value + fee

        _reserveCollateral(agent, valueAMG + _currentPoolFeeAMG(agent, valueAMG));

// _reserveCollateral
        Minting.checkMintingCap(_reservationAMG);

The same type of thing also happening in confirmations of redemptions. RedemptionConfirmations::confirmRedemptionPayment After the redemption has completed we minting the pool share of redemption fees through function _mintPoolFee,

        uint256 poolFeeUBA = _request.underlyingFeeUBA.mulBips(_request.poolFeeShareBIPS);
        if (poolFeeUBA > 0) {
            Agents.createNewMinting(_agent, Conversion.convertUBAToAmg(poolFeeUBA));
            Globals.getFAsset().mint(address(_agent.collateralPool), poolFeeUBA);
            _agent.collateralPool.fAssetFeeDeposited(poolFeeUBA);
            emit IAssetManagerEvents.RedemptionPoolFeeMinted(_agent.vaultAddress(), _redemptionRequestId, poolFeeUBA);
        }

here's also the the cap is not considered. There can be possibility, between the redemption requested and completed. There are assets minted or reserved by any other agent, later at the time of executionMinting the cap is not considered as it checked already at the time of reservation.

Impact Details

Even if the pool fee amount is small, not including it in the minting cap check can still have meaningful negative consequences

  • Not including the pool fee in the cap check undermines the entire purpose of the minting cap, breaking the invariant.
  • The cap’s purpose is to be a strict upper bound. Any breach—no matter how small—means the protocol’s guarantees are broken.

Proof of Concept

Proof of Concept

There are multiple incident where this is happening, I am explaining the POC one of the case, however all the cases has highlighted above.

  1. Agent complete the payment, on his underlying address.
  2. Agent would call MintingFacet::selfMint with proof and details.
  3. Then this function has check underside, which call checkMintingCap. But that's only look for the valueAMG which exclude the poolFeeSharewhich also going to mint at the time of minting.
        checkMintingCap(valueAMG);

In _performMinting function

        Globals.getFAsset().mint(_minter, mintValueUBA);
        Globals.getFAsset().mint(address(_agent.collateralPool), _poolFeeUBA);

So there assets can me minted more then mintingCapAMG

The original report as published on Immunefi, by farman1094. 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 cap check is applied only to the base mint value while the pool fee is minted separately without being added to the checked amount.

Impact

The total minted supply could exceed the configured minting cap, breaking the invariant that the cap is a strict upper bound, though the excess is limited to the pool fee amount.

What the attacker needed

Agent role with underlying payment; minting cap near its limit

The fix

The cap check should include the pool fee, checking the base value plus the fee together as is done in reserveCollateral.

How it was found

  1. Agent completes the underlying payment.
  2. Agent calls selfMint with proof and details.
  3. The function calls checkMintingCap on the base value only, excluding the pool fee.
  4. The minting step then mints both the base value and the pool fee, exceeding the cap.

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.

A minting cap is a hard limit on how many tokens a system is allowed to create. Here the code checks the main amount against that limit but forgets to add a small extra fee amount that is created at the same time, so the real total can go over the limit. The report argues this breaks the promise that the cap is a strict upper bound.

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 farman1094

View all

11 more disclosed reports, best first.

More from Flare | FAssets

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.