uint256 sellLimit = userAllocation.bought;
uint256 currentAlloc = SecondSwap_Vesting(plan).total(seller);
if (currentAlloc + userAllocation.sold > userAllocation.bought) {
sellLimit +=
     ((currentAlloc + userAllocation.sold - userAllocation.bought) vestingSettings[plan].maxSellPercent) /
     BASE;
}
    struct Allocation {
        uint256 bought;
+       uint256 stepsBought;
        uint256 sold;
    }
uint256 boughtAmountPerStep = userAllocation.bought / (stepsBought - SecondSwap_Vesting(plan).numOfSteps());`
uint256 claimedStepsSinceBuy = SecondSwap_Vesting(plan)._vestings(seller).stepsClaimed  stepsBought;
uint256 sellLimit = userAllocation.bought  (boughtAmountPerStep * claimedStepsSinceBuy)
