Skip to content
Audit finding Beginner

Missing Documented Function in the CollateralPool Contract

The CollateralPool contract documentation describes a setAutoClaiming function for agent vault owners to configure automatic reward claiming, but the function is not implemented in the contract. As a result, agent vault owners cannot use this documented feature.

Victor_TheOracle Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

#46220 [SC-Insight] Missing Documented Function in the CollateralPool Contract

Submitted on May 26th 2025 at 20:57:25 UTC by @Victor_TheOracle for Audit Comp | Flare | FAssets

Description

Brief/Intro

The setAutoClaiming function is documented as available in the CollateralPool contract to allow agent vault owners to set executors for automatic reward and airdrop claiming, but this function is not implemented in the actual CollateralPool contract.

Vulnerability Details

The documentation explicitly states that setAutoClaiming should be available in the CollateralPool contract:

- `setAutoClaiming`: Set executors that can then automatically claim rewards and airdrop. NOTE: only the owner of the pool's corresponding agent vault may call this method.

However, the CollateralPool contract does not contain any setAutoClaiming function implementation, despite being documented as a core feature for automated reward management.

While other documented owner-restricted functions are properly implemented with agent vault owner restrictions, the documented setAutoClaiming function is completely missing from the contract.

Impact Details

The setAutoClaiming function is documented but does not exist in the CollateralPool contract implementation. Agent vault owners cannot configure automatic reward claiming because the function is missing entirely.

References

  1. CollateralPool documentation for the setAutoClaiming function: https://github.com/flare-foundation/fassets/blob/fc727ee70a6d36a3d8dec81892d76d01bb22e7f1/docs/ICollateralPool.md?plain=1#L23-L24
  2. CollateralPool contract implementation: https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/implementation/CollateralPool.sol

Proof of Concept

  1. The documentation states that agent vault owners can call setAutoClaiming to configure automatic reward claiming:
**setAutoClaiming** - Set executors that can then automatically claim rewards and airdrop.
NOTE: only the owner of the pool's corresponding agent vault may call this method.
  1. Any attempt to call this non-existent function will fail because although it has been documented, it has not been implemented.

The original report as published on Immunefi, by Victor_TheOracle. 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 a documentation or implementation oversight where the setAutoClaiming function was described in the documentation but never added to the contract code.

Impact

Agent vault owners cannot configure automatic reward claiming because the function is missing entirely.

What the attacker needed

None

How it was found

  1. Check the documentation that states setAutoClaiming is available.
  2. Attempt to call setAutoClaiming on the CollateralPool contract.
  3. The call fails because the function does not exist.

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.

This report is about a mismatch between documentation and code. The documentation says a function called setAutoClaiming exists so that an owner can set up automatic claiming of rewards, but the actual smart contract does not contain that function. Therefore, anyone trying to use it would fail because the function simply is not there.

More by Victor_TheOracle

View all

4 more disclosed reports, best first.

More from Flare | FAssets

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.