Skip to content

Sherlock

Peapods

Every publicly disclosed report for Peapods and what kind of bugs they were.

disclosed reports
41
most reported class
Business logic
bug classes found
5
first disclosure
2025
Find Peapods on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Peapods chose to make public.

Business logic

Pods with `hasTransferTax` set to `true` have an incorrect `totalSupply` because the burn fee is applied recursively to itself

When a pod has a transfer tax enabled, the burn fee is applied recursively because burning is itself a transfer, causing the total supply to decrease more than intended and users to lose extra tokens. Over many transfers, buys, and sells, the total supply becomes lower than it should be, leading to incorrect minting during bonding.

Peapods

Medium
Business logic

The attacker can steal rewards from spTKNs because they can influence the fee processing by making a direct token transfer to the pod when the fees are below the minimum

Fees collected in a pod are only swapped into staking rewards once they pass a minimum threshold, and that threshold is measured from the pod's own token balance, which anyone can top up with a direct transfer. An attacker could stake just before pushing the balance over the minimum, then unstake in the same transaction to claim a share of rewards they did not earn, potentially amplified with a flash loan.

Peapods

Medium
Business logic

Reward tokens could be locked in `VotingPool` contract

When SPTKN is configured as a stakeable token in VotingPool, staking and unstaking transfers SPTKN to and from the contract, which causes reward tokens to be sent to the contract as well. Because no mechanism handles those reward tokens, they become locked in the contract.

Peapods

Medium
Business logic

`addInterest` will not update the interest acurately which would enable users to claim rewards for time that they weren't staked inside `LendingAssetVault`

The `addInterest` function in `LendingAssetVault` only updates interest when the utilisation rate changes by at least 0.1%, but it uses stale total asset and borrow values, so interest is often not accrued. An attacker can deposit after a period of inactivity, then trigger an update to capture interest earned before their deposit, effectively claiming rewards for time they were not staked.

Peapods

Medium
Misconfiguration

hardcoded V3_POS_MGR address won't be the same on every chain

The V3Locker contract's constructor hardcodes a single NonfungiblePositionManager address, but that address is not the same on every chain the protocol targets. As a result the locker cannot function correctly on chains where the deployed position manager lives at a different address.

Peapods

Medium
Business logic

Incorrect reserve mapping leads to fault swap

The function `_getSwapAmt` incorrectly assumes that the first reserve returned by Uniswap V2 corresponds to the first token argument, but reserves are sorted by token address. This mismatch can cause swap calculations to be wrong, leading to failed swaps or unintended behaviour that may be exploited for arbitrage.

Peapods

High
Business logic

Open fee is overcharged in `_addLeveragePostCallback` function

The contract charges an open fee based on the user's desired paired token amount rather than the amount actually used in the liquidity provision, causing users to overpay fees on leftover tokens. An attacker could exploit this by setting a high desired amount to increase the overpayment, though the primary impact is accidental overcharging.

Peapods

Medium
DoS

AutoCompoundingPodLp `_pairedLpTokenToPodLp()` does not correctly handle leftover pTKNs

The AutoCompoundingPodLp contract's _pairedLpTokenToPodLp function does not account for existing pTKN balance when swapping pairedLpTKN to pTKN, leading to an imbalance that can cause liquidity addition to fail and pTKN to become stuck. An attacker can donate pTKN to trigger this imbalance, potentially causing a denial of service.

Peapods

High
Business logic

Transferring of _userProvidedDebtAmtMax does not work in _acquireBorrowTokenForRepayment because _props.sender is never set, which leads to a transferFrom call from address(0), causing the transaction to revert

The function `_acquireBorrowTokenForRepayment` attempts to transfer tokens from `_props.sender`, which is never set, so the transfer is from the zero address and reverts. This prevents users from providing their own tokens to repay a flash loan, causing `removeLeverage` to fail when the alternative swap method is unavailable.

Peapods

Medium
Business logic

`PodUnwrapLocker` can be drained due to an arbitrary input

The debondAndLock function in PodUnwrapLocker accepts any address as the pod without validating it, so an attacker can supply a malicious contract that reports the same token twice. This lets the attacker withdraw twice the amount of tokens they deposited, draining tokens other users have locked in the contract.

Peapods

High
DoS

Pod DoS if the LEAVE_AS_PAIRED_LP_TOKEN option is enabled

When the LEAVE_AS_PAIRED_LP_TOKEN option is enabled, the TokenRewards contract reverts on depositFromPairedLpToken if there are no stakers, causing all debond and stake operations to fail permanently. This leads to a denial of service where users cannot withdraw their funds.

Peapods

High
Business logic

AutoCompoundingPodLP does not use correct oracle price as slippage for pairedLpTKn -> pTKN swap

The AutoCompoundingPodLP contract computes its minimum-output slippage check for a pairedLpTKn to pTKN swap using an oracle that returns the base-token-to-pTKN price rather than the paired-LP-token-to-pTKN price. For podded or fraxlend pair tokens the two prices differ by a constant asset/share ratio, so the slippage floor is set too low and attackers may be able to sandwich the swap.

Peapods

Medium
Business logic

AutoCompoundingPodLp `_swapV2()` may lead to leftover tokens in multihops

The AutoCompoundingPodLp contract's two-hop swap function may leave intermediate tokens stuck in the contract when a maxSwap limit is set for the intermediate token. This results in a loss of rewards because those leftover tokens are never used in future swaps.

Peapods

Medium
Business logic

Transaction may revert unexpectedly due to missing allowance for the lending pair asset

The remove leverage function in the LeverageManager contract calculates the borrow shares to repay using a stale interest rate because addInterest does not always update the interest. When repayAsset later accrues interest, the required asset amount exceeds the allowance, causing the transaction to revert. This can prevent a user from reducing leverage and lead to liquidation.

Peapods

Medium
Smart contracts

VotingPool.sol Uniswap V2 pricing formula for spTKN is incorrect

The conversion factor used to price spTKN LP tokens in VotingPool applies the Uniswap V2 fair LP pricing formula incorrectly: the PEAS/stablecoin price is inverted, stablecoins with fewer than 18 decimals are not normalised, and a multiplication can overflow. As a result users are minted the wrong number of VotingPool shares for their staked tokens.

Peapods

Medium