A calculation error in the interest compounding function causes users to be charged ten times the intended interest. An attacker could exploit this to cause financial loss to users who overpay interest.
The CollectionShutdown contract fails to clear shutdown parameters after a collection is shut down, allowing an attacker to reuse stale data. By creating a new collection for the same ERC-721 contract and restarting the shutdown, the attacker can claim more funds than they are owed, draining the contract.
The `reserve` function in the `Listings` contract does not delete the original `_listing` mapping for a token, so if the protected listing is later unlocked without withdrawing the token, the stale listing remains active and can be filled by a third party. This allows the token to be sold twice, causing the original reserver to lose funds and the seller to be paid twice.
The `thresholdCross` function in `InfernalRiftBelow` checks that the caller is the aliased address of `InfernalRiftAbove`, but the actual caller is the relayer address. As a result, cross-chain NFT transfers fail and user assets are lost.
The ProtectedListings contract fails to create a new checkpoint whenever the total supply of collection tokens changes, leading to incorrect interest rate calculations. An attacker can exploit this by manipulating the total supply to artificially inflate the utilization rate, causing users to pay higher interest or face liquidation.
The beforeSwap hook in UniswapImplementation priced pending collectionToken fees using the current pool spot price rather than a time-weighted average, so the price could be pushed around within a single transaction. An attacker could sell tokens to depress the price, swap the pending fees at the discounted rate, then buy back, draining risk-free profit from the protocol.
The donation of fees to a Uniswap V4 pool can be sandwiched within a single transaction because the maximum donation limit is per transaction, not per block. An attacker can add concentrated liquidity just before a fee donation and remove it immediately after, capturing a large portion of the donated fees.
The checkpoint creation function returns an incorrect index when updating an existing checkpoint at the same timestamp, causing subsequent listings to reference a non-existent checkpoint. This can lead to out-of-bounds array access and a denial of service in the unlock price calculation.
When a user cancels a listing, the contract requires them to return the full listing amount minus only the unused tax refund, effectively making them pay the already-used tax twice. This results in an unfair loss of funds for the user.
The claim function checks a global flag indicating whether the current beneficiary is a pool, rather than checking the specific beneficiary being claimed for. If the beneficiary is changed to a pool, the previous beneficiary can no longer claim the fees they earned while they were the beneficiary.
The bridged NFT contracts set a single default royalty recipient and amount for all tokens, instead of per-token royalties as required by EIP-2981. This means marketplaces cannot pay the correct royalty amounts to the original artists.
The setFee function in a Uniswap implementation contract only updates a memory copy of the pool parameters, so the new fee is never saved to storage. As a result, any custom pool fee set by the admin is ignored and only the default fee applies to swaps.
A user with many NFTs can deposit and redeem them without fees to change the total supply of ERC20 tokens, which alters the utilization rate and interest rates, potentially forcing other protected listings into liquidation. The attacker could then earn keeper rewards and buy liquidated NFTs at a discount.
When a listing is reserved, the collection's compoundFactor is checkpointed while the CollectionToken total supply is temporarily reduced, leading to an inflated utilization rate and a higher interest rate for the new protected listing. This causes borrowers to accrue more interest than they should.
When initialising a Uniswap V4 pool, the contract calculates liquidity from the provided token amounts, but one token is always left over. The leftover tokens remain locked in the UniswapImplementation contract because no refund is made to the user.
The relist function in Listings.sol lacks the checks present in modifyListings and cancelListings that prevent changes to Dutch auctions and liquidation listings. An attacker can use a second wallet to relist a Dutch auction as a liquid listing and then cancel it, bypassing the intended lock and manipulating the auction.
The beforeSwap hook in UniswapImplementation compares the wrong variable when deciding whether to convert accumulated collection token fees, causing swaps from native tokens to collection tokens to revert under certain conditions. An attacker could trigger these reverts, disrupting swaps.
The CollectionShutdown::execute() function does not verify that all locked NFTs are included in the array of token IDs to be sold. An attacker could deposit an NFT after the admin's transaction is submitted, causing that NFT to remain locked and unsold, leading to indirect loss of funds for collection token holders.
A loophole in the listing fee mechanism allows users to create listings with reduced tax by reserving and liquidating their own listing, and to relist expired listings for free. An attacker could evade fees and hijack tokens at floor value.
The unlockProtectedListing function burns the entire fee paid by the user, including the interest portion, instead of distributing that interest to liquidity providers. This reduces the total supply of collection tokens, causing a mismatch with the number of NFTs and potentially making some NFTs unredeemable and the utilisation rate exceed 100%.
The contract incorrectly used the user-supplied price limit as the price target in internal swap calculations, leading to wrong token amounts and reverting swap transactions. This could cause a denial of service for swaps.
When a user modifies only the price of a listing (leaving duration unchanged), the protocol charges tax for the full listing duration instead of the remaining time, causing the user to pay more tax than normal.
A collection that was shut down and later re-initialised cannot be shut down again because the shutdown vote count is not reset to zero. This prevents the shutdown process from starting a second time.
The collection shutdown mechanism can be blocked by listing a single NFT of the collection after the shutdown quorum is reached, causing the execute function to revert. An attacker can repeatedly prevent the collection from being deleted, making the voting system ineffective.
The removeFeeExemption function checks for a value of 1 in the lower 24 bits, but setFeeExemption sets those bits to 0xFFFFFF, so the check always fails and the exemption is never removed. An attacker (or any user with an exemption) could continue to receive reduced fees indefinitely, causing fee losses for LPs and the protocol.
The ERC1155Bridgable contract does not emit the required URI event when a token's URI is changed via setTokenURIAndMintFromRiftAbove, violating the EIP-1155 standard. This could cause integrating protocols that rely on the event to work incorrectly.