The coinswap module's balance retrieval iterates over all token balances, so an attacker can send many token denominations to a pool's escrow address, causing gas exhaustion and failure of liquidity operations. This could disrupt swaps and liquidity removal, though the impact is limited to auto-swap during onboarding.
The MsgSwapOrder message lacks a signer annotation, so Canto nodes cannot identify who signed it and the message never works. This prevents arbitrage that would balance pool prices, potentially causing the onboarding swap to fail its slippage check.
The govshuttle module did not register its message server, so governance proposals containing LendingMarketProposal or TreasuryProposal messages would fail to execute. An attacker could not exploit this directly, but legitimate governance actions would be ineffective.
The protobuf amino.name tags for several message types did not match the names registered in the RegisterConcrete calls. As a result, messages signed with LegacyAmino on a v7 client would be rejected by the v8 app because the type names were not recognised.
The ASDRouter contract does not refund excess native gas tokens (CANTO) sent with a transaction when an asD redemption succeeds, leaving the surplus stuck in the contract. An attacker could deliberately send extra value to cause funds to be permanently locked, violating the protocol's invariant that the router's native balance should always be zero.
The withdraw function only allows withdrawing a USDC version that is currently whitelisted, so if the owner removes a version from the whitelist, the tokens backed by that version can no longer be withdrawn. Holders of the remaining whitelisted version could then drain its balance, leaving other users unable to withdraw.
The router contract stored the NOTE token address once at deployment instead of reading it dynamically from the cNOTE contract, so it effectively hardcoded the address. If NOTE is redeployed at a new address, the swap and cross-chain compose functions would break, causing a denial of service.
The ASDRouter contract failed to approve the crocSwapAddress to spend ASDUSDC tokens, so the swap step in lzCompose always fails. As a result, the router cannot complete the intended deposit and swap flow, and ASDUSDC is refunded to the receiver instead of being converted to NOTE and deposited for ASD.
The secRewardsPerShare calculation uses insufficient precision, causing rounding down to zero for typical market supplies. This means secondary rewards are effectively not accumulated, leading to a loss of yield for participants.
The reward calculation in update_market() used block numbers as the time parameter for gaugeController.gauge_relative_weight_write(), but that function expects a timestamp. This mismatch caused the weight to be looked up for an epoch in 1970, resulting in near-zero rewards and preventing users from earning their fair share.
The update_market function divides by 1e18 before multiplying by 1e18, causing rounding down and reducing the rewards users receive. An attacker could not directly exploit this, but it leads to a small loss of yield for users.
The update_market() function calculates nextEpoch incorrectly when crossing an epoch boundary, using i + BLOCK_EPOCH instead of epoch + BLOCK_EPOCH. This causes accCantoPerShare to be over- or under-calculated, potentially increasing allocated rewards.
The Market contract's buy and sell functions lack slippage protection, so the price can change between when a user submits a transaction and when it executes. An attacker can sandwich the user's transaction to profit at the user's expense.
When a user buys additional tokens of a share they already hold, the buy function updates their reward checkpoint after splitting the new fee, so their existing tokens never earn a share of that fee. The buyer permanently loses the reward they should have received on their old holdings, while other holders gain slightly more.
The withdrawCarry function miscalculates the maximum withdrawable interest because it assumes the cNOTE exchange rate is scaled by 1e28, but it is actually scaled by 1e18. This causes the owner to be unable to withdraw the full accrued interest, as the calculated maximum is 10^10 times too small.
A logic error in the liquidity mining contract's time-weighted liquidity accrual causes the time increment variable to be set incorrectly when a tick's exit timestamp falls in the next week. This leads to fewer loop iterations, under-accruing the position's time-weighted liquidity and resulting in lower reward calculations.
The reward calculation divides by the pool's total liquidity time weight, including positions that are not eligible for rewards, so eligible positions receive less than the intended weekly reward. An attacker could add ineligible liquidity to dilute rewards for legitimate participants.
The liquidity mining reward-setting functions did not verify that the caller sent the native tokens corresponding to the declared weekly reward amount. The owner could therefore set rewards that draw on native tokens already held by the DEX, using those funds to pay rewards instead of supplying new tokens.
A boundary condition in the liquidity mining contract causes the tick tracking index not to be incremented when a user exits exactly at the next week timestamp, so accrued liquidity rewards for that tick period can be lost and never recovered.
The tickTracking_ array grows by one entry every time a trade crosses a tick, and the reward-accrual loop iterates over every entry. An attacker can make many tiny swaps back and forth across a tick boundary to inflate the array, causing minting, burning and harvesting of liquidity to run out of gas and revert for most users.
The protocol command entry point in LiquidityMiningPath is not marked payable, so any call that sends a positive value is rejected. This prevents rewards from being transferred when setting them up through the intended command flow.
The onboarding module ignores errors from the coinswap keeper and still uses the returned swapped amount to compute how many IBC vouchers to convert. If a future change makes the swap function return a non-zero amount alongside an error, the module would convert the wrong number of vouchers, leaving some unconverted.
The smart contract's swap limit for ETH was set to 0.1 ETH instead of the specified 0.01 ETH, allowing swaps up to ten times larger than intended. An attacker could exploit this to manipulate pools and cause larger losses than the risk management intended.
The oracle's getUnderlyingPrice function reverts on errors instead of returning 0 as the Comptroller expects, causing unexpected errors for consumers. An attacker could trigger these reverts to disrupt the lending market's price retrieval.
The setPeriodSize function loops over every entry in the allPairs array, and anyone can grow that array by calling createPair. By spamming createPair, an attacker could make the loop exceed the block gas limit so that setPeriodSize always reverts, stalling that admin function.
The evm_hooks processEvents function ignores errors when handling Turnstile events, so if one event fails, subsequent events are skipped and contracts or NFTs may never receive CSR fees. An attacker could cause a transaction with multiple events to fail silently, leaving contracts unregistered in the CSR store.
The PostTxProcessing hook in the CSR module returns an error when any CSR-specific operation fails, which causes the entire user transaction to be reverted even if it did not interact with the Turnstile contract. An attacker could trigger such errors (e.g., by causing zero fees due to rounding) to revert unrelated transactions.
The register function on the application layer accepts any non-zero recipient address, but the consensus layer rejects fresh accounts, so the transaction succeeds while the contract is never registered. An attacker could cause a user to register with a fresh address, permanently preventing the contract from earning fees.
Integer division inside brackets was performed before multiplication when computing token0TVL, so the result could round down to zero for tokens with many decimals. An attacker could then obtain a wrong, near-zero LP token price from the oracle.
CA
Canto
Medium
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.