The admin cannot set a pool's protocol fee because the required function is not implemented in the SeawaterAMM contract. This means protocol fees remain unconfigurable, contrary to intended functionality.
A withdrawal function that let users set minimum amounts to receive was removed, so the only way to withdraw now offers no slippage protection. An attacker could sandwich a user's withdrawal and take a large amount of their funds.
The Solidity function createPoolD650E2D0 has a different signature from the Stylus function it calls, so direct calls to create a pool always fail. An attacker cannot exploit this, but the intended pool creation functionality is broken.
The adjust_position_internal function does not check whether the liquidity pool is enabled before taking tokens from users, unlike update_position_internal. An attacker could supply liquidity to a disabled pool, contrary to the documented requirement.
The swap function takes the actual input amount from the user but then also refunds the difference between the original requested amount and the actual input, even though that difference was never taken. An attacker could repeatedly swap to drain the pool's funds through these unnecessary refunds.
The swap slippage check in swap_internal() used a logical OR, so a swap was accepted when only one of the two output amounts was above zero. An attacker or unlucky user could complete a swap that returns nothing of the token they wanted while still passing validation.
The contract's transfer callback check uses an inverted comparison, so it reverts when a compliant receiver returns the expected selector and accepts when the selector is wrong. This prevents safe transfers to contracts that correctly implement the ERC-721 receiver interface.
The ERC-721 safeTransferFrom function that accepts a bytes data parameter does not forward that data to the recipient contract's onERC721Received callback, instead passing empty bytes. This can cause transfers to revert for recipient contracts that expect to decode the data, making the function unusable for them.
The swap calculation in a Rust implementation of a Uniswap-like pool uses unchecked subtraction and addition for the amount already swapped, which can underflow or overflow in release mode. An attacker could potentially cause incorrect swap amounts, though the report does not demonstrate a practical exploit.
A pool-disabling feature blocks all liquidity changes, including withdrawals, because a single check rejects any call when the pool is disabled. Users cannot remove their funds during an emergency, leaving their money at risk.
A liquidity provider can remove liquidity and then burn their position, but if a blockchain re-org occurs, an attacker can manipulate the pool price so the removal reverts while the burn succeeds, locking the funds. The report claims this could cause loss of the LP's liquidity.
The tick_spacing parameter in the pool initialisation function is a u8, so pools requiring a tick spacing greater than 256 (such as those with fees above 1.3%) cannot be created. This prevents the protocol from supporting volatile asset pairs that need higher fee tiers.
The fee collection function passed the recipient address as the token address and the pool address as the recipient when calling the token transfer helper, so every attempt to collect protocol fees reverted. As a result, the admin could not withdraw accumulated fees, locking them in the pools.
The swap-out functions in SeawaterAMM checked the wrong token amount against the minimum output, so the slippage protection was ineffective. An attacker could exploit this to make users accept worse swap rates and lose funds.
When a swap request exceeds the available liquidity within the user's price limit, the pool's stored square root price is set to the user's price limit rather than the price of the last executed swap. This can confuse subsequent users and cause their swaps to revert if they use the default maximum price limit.
The position update function in a Uniswap-like contract uses checked subtraction for fee growth, which reverts when the fee growth inside is less than the stored value. This prevents users from adding or removing liquidity, permanently locking their funds.
The mint_position function does not check that the lower tick is less than the upper tick, allowing positions with equal or inverted ticks. An attacker can create positions with arbitrary liquidity without paying tokens or manipulate fee calculations to steal fees from other liquidity providers.
The smart contract does not clear token approvals when an NFT is transferred, so a previously approved address can still transfer the NFT away from its new owner. This allows the previous owner or an approved address to reclaim the NFT after a sale or transfer.
The function intended to update the emergency council instead updates the nft manager. An attacker could not directly exploit this, but the admin calling it would change the wrong sensitive address, potentially disrupting the system.
The fee growth calculation in tick.rs uses checked subtraction, so it reverts on underflow instead of wrapping as Uniswap v3 does. This can cause operations like liquidation to revert unexpectedly, potentially making positions permanently inaccessible.
The Solidity wrapper function decrPosition09293696 is missing the pool address parameter that the underlying Rust function requires, so any call to it will fail. This makes the decrease position functionality inaccessible through the wrapper.
The swap_2_internal function required the intermediate USDC amount produced by the first swap to exactly equal the amount consumed by the second swap. When the second pool ran out of liquidity, only part of the intermediate amount was used, so a valid swap that still met the user's minimum output was reverted.
The pool contract defines a protocol fee rate but provides no function to set it, so the protocol can never accumulate fees. An attacker cannot exploit this; it is a missing feature that prevents the protocol from earning revenue.
In the swap_2_internal function, if the first pool has insufficient liquidity, the calculated amount_in may be less than the original amount, but the contract still takes the full original amount from the user, causing overpayment. An attacker could exploit this to make users pay more tokens than necessary.
The protocol's liquidity calculation used the price at the current tick instead of the actual current square-root price, causing incorrect liquidity deltas. This could make transactions revert when minimum amounts are close to desired amounts, and the judge noted it could make a portion of the protocol inaccessible.
SU
Superposition
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.