The oracle for CurveV2 LP tokens used the price of the second coin in ETH rather than in the first coin, so the LP token price was computed with the wrong quote currency. This could overvalue or undervalue the LP token, leading to incorrect debt values, rebalancing decisions, and withdrawal amounts.
In the LMPVault contract, when a withdrawal pulls more assets than needed, the code overwrites the idleIncrease value instead of adding to it, so Destination Vault rewards are not recorded. These unrecorded rewards become frozen in the contract because the recover function cannot extract the base asset.
The price calculation in the stats calculator incorrectly scales the average price by 1e18, causing the filter prices to be inflated by a factor of 1e18. This inflated price can lead to false signals and unprofitable rebalances, potentially causing losses to the protocol.
The LMPVault's gain from reward tokens can be stolen by an attacker who deposits a large amount just before the permissionless updateDebtReporting function is called, then withdraws immediately after, capturing most of the gain. This dilutes the profit of existing depositors.
The Tellor oracle integration in Tokemak's TellorOracle.sol does not follow Tellor's recommended best practices: it does not cache recent values and timestamps to mitigate dispute attacks, and it does not check for zero values. An attacker could exploit dispute attacks to cause wrong pricing or repeated reverts, potentially harming the protocol.
The fee collection mechanism only charges performance fees when the net asset value per share exceeds a stored high-water mark, and that mark is updated to the current value whenever the permissionless debt reporting function is called. An attacker could trigger this function during a temporary price spike, locking in a high mark and preventing the protocol from collecting fees until the value surpasses that level again.
The vault registry's removeVault function does not clear the _vaultsByType mapping, so a vault that has been removed cannot be added back because addVault reverts with VaultAlreadyExists. This breaks the addVault function in that edge case and affects all protocol operations that rely on the vault registry.
The Tellor oracle integration did not check that the returned price was non-zero, so a zero price could be accepted. This could cause affected assets to be valued at zero, impacting debt calculations, rebalancing, NAV, and withdrawal amounts.
The flashRebalance function passes the total token balance after the flash loan to _handleRebalanceIn instead of the difference between the after and before balances. This can cause the rebalance to deposit too many funds or fail with an insufficient amount error, potentially leading to a denial of service.
The LMPVault contract's withdrawal function can revert due to an arithmetic underflow when the amount of debt decreased exceeds the total assets to pull. An attacker could cause a denial of service by triggering this condition, preventing users from withdrawing their assets.
When the total supply of StakeTracker tokens is zero, the reward-per-token value does not increase but the last update block is still advanced, so rewards queued during that period are never distributed. An attacker or ordinary user could cause reward tokens to become stuck in the rewarder contracts, leading to lost rewards.
The vault mints fee shares using the same conversion formula as for user deposits, but without adding the fee to total assets, so the minted shares are worth less than the intended fee. The protocol receives fewer assets than it is owed, resulting in a loss of fee.
The withdrawal mechanism allows users to burn shares from profitable destination vaults first, so faster users can exit with minimal loss while slower users bear a larger share of losses from depreciating vaults. An attacker could monitor vault performance and withdraw quickly to avoid losses, leaving remaining users with a faster rate of depreciation.
The MavEthOracle contract calculates the price of Maverick LP tokens using the pool's reserves, which can be manipulated by swapping tokens. An attacker could use a flash loan to temporarily alter the reserves and change the oracle price, potentially affecting LMPVault share calculations.
The Convex rewards adapter measured claimed rewards by comparing token balances before and after calling the external Convex contract, but anyone can trigger a claim for the Tokemak contract directly. An attacker could pre-claim the rewards so the adapter's balance difference is zero, leaving the tokens stuck in the LiquidationRow contract instead of being queued to the MainRewarder.
Users with TOKE rewards below the minimum stake amount cannot claim any rewards because the reward processing attempts to stake the small TOKE amount, which reverts and blocks the entire claim, leaving extra rewards stuck.
The swETH token is an upgradeable proxy, and its admin could upgrade the contract to make the exchange rate function return an arbitrarily high value. This would let users withdraw more assets than expected, draining the LMPVault.
The previewRedeem and redeem functions of the LMPVault contract do not follow the ERC4626 standard because previewRedeem uses cached totalDebt and totalIdle values that may be higher than actual on-chain conditions, so redeem can return fewer assets than previewed. An attacker or integrator relying on previewRedeem could make incorrect decisions, such as accepting insufficient collateral.
The TellorOracle contract did not check whether a retrieved Tellor price was older than the last one used, so an attacker could dispute a current value and force the oracle to return a previous, more favourable price. This could let them manipulate the protocol's pricing to withdraw more assets or execute unprofitable rebalances.
The reward-claiming function identifies stash tokens by checking whether their total supply is zero, but stash tokens can have a non-zero total supply. When such a token is encountered, the code calls balanceOf on a contract that does not implement it, which can make the claim revert and block the vault from claiming Aura rewards.
The vault's high-water mark for fees was not reset when all shares were withdrawn, so later deposits and profits below the old mark incurred no fee. This caused the protocol to lose fee revenue.
The LMPVault contract enforces a per-wallet share limit, and when collecting fees it mints shares to the feeSink address. If the feeSink balance plus new fee shares exceeds the perWalletLimit, the mint reverts, causing functions that collect fees to fail.
The reentrancy check in BalancerUtilities.sol uses a staticcall that always reverts due to a state change, consuming 63/64 of the gas forwarded. This can cause out-of-gas errors or force users to pay excessive gas fees for withdrawals.
The APR calculation for a liquid staking token uses a function that floors negative changes at zero, so a slashing event during the initial 9-day observation period sets the initial APR to zero. Because subsequent updates only apply a 10% weight to new values, it can take up to 84 days for the APR to recover to the correct level, causing suboptimal fund allocation.
The report claims that a Curve pool admin can drain the pool by setting a malicious fee receiver and reentering the withdraw_admin_fees function, which could harm Tokemak's funds if it uses that pool. The attacker could repeatedly reenter to withdraw more than the admin balance.
The queueNewRewards function adds previously queued rewards to the new amount before transferring tokens from the caller, so the caller is charged for both the new rewards and the old queued rewards. This can cause the call to revert if the caller lacks funds or approval, or overcharge the caller if they have sufficient balance.
The LiquidationRow contract calls the async swapper with a normal external call, so the tokens to be swapped are never transferred to the swapper and the swap reverts. As a result, liquidation cannot be performed and rewards collected through claimsVaultRewards become stuck in the contract.
The CurveV2CryptoEthOracle only enables reentrancy checks for pools containing the native ETH sentinel address, but Curve V2 pools use WETH and can still accept native ETH via a use_eth flag, allowing read-only reentrancy. An attacker could manipulate the oracle price to withdraw more assets than their shares are worth and drain the LMPVault.
The vault's profit and loss tracking compares the current debt value to the last recorded debt basis, so after a small rebalancing the debt basis is updated and the vault appears not to be at a loss even though it still is. This allows users to burn all shares of the destination vault, locking in the loss for the vault and its shareholders.
TO
Tokemak
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.