When a vesting is listed on the marketplace, the vesting manager contract inherits the seller's already-claimed step count if it has no prior allocation for that plan. A buyer with no prior allocation who purchases a later listing can therefore inherit that claimed-step count and be unable to claim at the current step, so the order in which listings are created changes what buyers can claim.
The VestingManager's own vesting record keeps a single stepsClaimed value taken from the first sale, so later buyers inherit a stale value. A new buyer can therefore claim tokens immediately instead of waiting for the vesting schedule, and an attacker can repeat the sell-and-rebuy cycle to unlock more tokens early.
The marketplace contract validated the minimum purchase amount against the wrong listing type, so the intended range check was applied to single listings instead of partial ones. A seller could therefore create a partial listing with a minimum purchase amount outside the allowed range, defeating the minimum-purchase enforcement.
When the admin changes the marketplace address in the VestingManager, the old marketplace can no longer call the VestingManager because of the onlyMarketplace check. Listings made on the previous marketplace become stuck, so users cannot unlist or purchase them.
The vesting transfer function only checked the unclaimed remainder against the total minus already-claimed amounts, ignoring tokens that had vested but were not yet claimed. A token issuer could therefore move a user's already-vested tokens to another beneficiary, leaving the original user able to claim less than they had earned.
When a seller unlists a vesting after claiming additional steps, the full listed amount is deducted from their sold value, allowing them to sell more tokens than the maxSellPercent limit permits. This breaks the protocol's sell limit, enabling the seller to sell tokens that should already be unlocked and claimable.
The marketplace requires a per-unit price greater than zero expressed in the payment token's smallest unit, so with a six-decimal token such as USDT the lowest possible listing price is one smallest unit. This prevents sellers from listing very low-value tokens at their true market price.
The vesting contract's sell limit calculation incorrectly includes all previously bought tokens, allowing a user to sell more unvested tokens than the maxSellPercent allows. An attacker could bypass the intended limit and sell a larger portion of locked tokens.
A rounding error in the vesting contract can cause the number of steps claimed to exceed the total number of steps, leading to an underflow when calculating claimable steps. This prevents users who purchase additional tokens from claiming them, locking their funds.
The setSellable function resets maxSellPercent to 20% when the current value is 0, which is interpreted as uninitialised. This allows the admin to inadvertently override the token issuer's setting of 0, enabling token sales that the issuer intended to prevent.
The marketplace lets the buy and sell fees for a vesting plan be changed after a listing is created, so the fees a seller will pay are not fixed at listing time. A seller can therefore receive less revenue than expected if the seller fee is raised later.
The unlistVesting function charges the current penalty fee rather than the fee that was in effect when the listing was created. If the penalty fee changes after listing, a user cancelling early may pay a different amount than expected.
A vesting beneficiary can prevent the token issuer from reallocating their vesting by listing it on the marketplace, which moves the allocated amount to the VestingManager contract. The issuer's reallocation then fails due to an insufficient balance check, and reallocating from the manager could make the marketplace insolvent.
The completePurchase function lacks a check that the vesting plan is still marked as sellable, so a buyer can purchase tokens from a plan that the admin has since marked unsellable. This allows a purchase to succeed even after the admin has disabled selling for that plan.
When a seller unlists a vesting after claiming some steps, the refunded tokens are spread over the remaining unclaimed steps, which lowers the amount that should already be claimable. This locks tokens that should have been available to the seller.
The marketplace contract lacks a function to remove a token from the whitelist of supported payment currencies. If a whitelisted stablecoin depegs, users can still list and sell vestings for that worthless token, causing financial loss to sellers and the protocol.
The referral fee calculation in the marketplace contract subtracted a small percentage from the total buyer fee instead of taking a percentage of it, so the referral payout came out far larger than intended. An attacker could name themselves as referrer and receive up to roughly 90% of the buyer fee total rather than the expected 10%.
A vesting contract calculates a per-step release rate by integer division, which can round down to zero or one when the number of steps is very large. This can cause beneficiaries to lose their vested tokens or receive an uneven distribution.
When a user transfers part of their vesting to the marketplace, the contract recalculates the seller's release rate using the full total amount rather than the unclaimed remainder, so the seller can claim tokens they have already received. An attacker can therefore unlock more tokens than they originally locked, taking tokens owed to other vesting participants.
The vesting deployer contract stored token ownership in a mapping keyed by owner address rather than token address, allowing a token to have multiple owners. A creator of one vesting plan could then influence or create vesting plans for the same token, potentially causing loss of funds from the actual creator.
A listing with a fixed discount could have a discounted price so low that the calculated payment amount rounds down to zero, causing the purchase transaction to revert. This prevents buyers from purchasing discounted vesting entries.
The vesting contract calculates step duration by integer division, which can round down to zero or cause the schedule to finish early. An attacker could cause a denial of service on the claim function or make vesting complete prematurely.