The addValidator function on the AgentNftV2 contract had no access control, so anyone could add a validator to a predicted upcoming virtual ID. Because mint later adds the founder as a validator again, the duplicate entry inflated the shared validator pool rewards, which could be withdrawn and leave the contract short of funds for legitimate reward claims.
The promptMulti() function fails to update prevAgentId inside the loop, so the cached agentTba address can be uninitialised or stale. This can cause tokens to be sent to address(0) or to the wrong agent.
The AgentToken contract's tax swap function calls the Uniswap router with a minimum output amount of zero, so the swap will accept any amount of tokens in return. An attacker could manipulate the pool price before the swap to make the contract receive far fewer tokens than expected, causing a loss for the project tax recipient.
The slippage protection in BondingTax::swapForAsset and AgentTax::dcaSell is computed from the price fetched at execution time, so the minimum output is derived from the very price the trade will execute at. An attacker could move the pool price just before the call, and the swap would still pass the check, letting the protocol or agent creators lose part of their fees.
The burnFrom function in the FERC20 contract reduces a user's balance and emits a burn event but does not reduce the total supply. This allows the owner to manipulate the reported total supply, affecting market cap calculations and DeFi protocols that rely on it.
The contract overwrites a user's claimable agent token balance on each successful genesis launch instead of adding to it. If a user does not claim before a second launch, their unclaimed tokens from the first launch are lost.
The battleElo function passes the two player ratings to the Elo rating-change helper in the wrong order, so the change and its direction are computed for the opponent rather than the player. This produces incorrect rating updates for every battle processed.
The price calculation functions priceALast and priceBLast use integer division on pool reserves, causing truncation of fractional parts. An attacker could exploit this precision loss to obtain incorrect prices, potentially leading to financial loss or manipulation.
The migration function creates new token and veToken contracts but does not unlock the founder's original LP tokens from the old veToken, which remain locked for 10 years. Founders must therefore provide additional virtual tokens to migrate, leaving their original capital stuck in the obsolete contract.
The slippage check in BondingTax's swapForAsset function is ineffective because the minimum output is calculated from the current spot price, which is itself dynamic. An attacker could cause the treasury to receive less than the intended minimum amount, or normal trading could lead to losses.
The launchFor() function in Bonding.sol computes the liquidity amount with a division performed before a multiplication, so integer rounding discards precision. This causes less liquidity than intended to be added to the pair via the router, and in some cases the computed liquidity can be zero.
The ELO rating calculation in the contract miscomputes the expected score because it offsets the rating difference by 800 before taking a sixteenth root, so the exponent no longer matches the standard formula. This makes all rating changes wrong and could let an attacker obtain abnormally large rating gains.
The contract stores a single global asset token address, but applications record only amounts, not which token they were funded with. If an admin changes the asset token, withdrawals and application execution can fail or use the wrong token, potentially locking or misdirecting funds.
The battleElo function in EloCalculator.sol can underflow when a validator casts a vote with certain battle results, causing a revert. This blocks validators from submitting votes with those specific results, potentially disrupting governance for low-maturity services.
The withdraw function does not clear a staker's delegation when they fully withdraw, leaving historical delegation records intact. An attacker could repeatedly stake and withdraw after maturity to inflate a delegatee's apparent uptime and claim excessive rewards.
The withdraw function only enforces a maturity lockup for the founder staker, so non-founder users can stake and immediately withdraw without waiting. This removes the intended lockup incentive for those users.
The earlyExecute function runs a proposal's actions through an internal helper that does not mark the proposal as executed, so the public execute function can later run the same proposal a second time. An attacker could therefore cause an approved proposal's actions to be carried out twice.
The contract calls Uniswap's addLiquidity with zero minimum amounts for both tokens, so the transaction reverts if the pool price moves even slightly before execution. An attacker could manipulate the pool price just before the transaction to cause it to fail, denying the liquidity addition.
Two owner-only functions in the FERC20 token contract cannot be called because the owner is the Bonding contract, which does not expose them. As a result, the maximum transaction limit cannot be updated and addresses cannot be excluded from that limit.
The AgentDAO contract increases a user's score whenever they vote on a proposal, but since anyone can create a proposal and voting requires no tokens, an attacker can spam dummy proposals and vote on them to artificially inflate their score. This undermines the score's reliability as a measure of genuine participation.
A rounding error in the Bonding contract's graduation logic causes the liquidity pool supply to be truncated, making the vault supply too large and leaving dust agent tokens permanently locked in the FPair contract. An attacker cannot directly profit, but the protocol loses a small amount of tokens and the accounting becomes inconsistent.
The buy and sell functions in the FRouter contract do not check the minimum amount of tokens a user receives, so trades can execute at a much worse price than expected. An attacker could front-run a transaction to manipulate reserves and cause the user to receive significantly fewer tokens.
The contract's check for an existing Uniswap pair only verifies that the pair address is zero, but anyone can create an empty pair without adding liquidity. An attacker can front-run the victim's executeApplication() call by creating the pair first, causing the victim's transaction to revert and preventing them from executing their application.
New validators are initialised with a base score equal to the total number of proposals ever created, so they can earn full rewards without voting. An attacker could register a new validator or delegate to one to receive unearned rewards.
The stake function in AgentVeToken allows any caller to set the delegatee for an arbitrary receiver by staking a minimal amount (1 wei) of LP tokens. An attacker can thus become the delegate for multiple high-balance users, potentially gaining majority voting power in the AgentDAO and submitting malicious proposals.