# A user loses funds when he modifies only price of listings.

Flayer's modifyListings charges full-duration tax when only floorMultiple changes, since listing.created isn't reset, overcharging users versus the prorated refund.

- Payout: Audit contest
- Severity: medium
- Program: Flayer
- Found by: 0xHappy
- Disclosed: 2024-08-06
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-08-flayer-judging/issues/340
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-08-flayer%3AM-12
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:medium tech:solidity technique:source-review vuln:accounting-error vuln:business-logic

**Target:** Listings.sol modifyListings / _resolveListingTax (Solidity locker contract)
**Root cause:** When params.duration == 0, listing.created is not refreshed, but taxRequired_ is computed via getListingTaxRequired for the full duration while the refund is prorated on remaining time, so the user pays more tax than owed.
**Steps:**
1. Create a liquid listing with some duration and floorMultiple.
2. Wait partway through the duration so remaining time < full duration.
3. Call `modifyListings(_collection, [ModifyListing(tokenId, duration=0, newFloorMultiple)], true)` changing only floorMultiple.
4. Observe refund computed on remaining time (L933) but taxRequired_ charged for full duration (L355), netting excess tax paid.
**How found:** Code reading of modifyListings: noticed the early-continue guard only checks duration==0 && floorMultiple unchanged, and that listing.created is only updated inside the duration branch while tax is always recomputed for full duration.
**Exploitation:** User legitimately edits only the listing price; protocol deducts full-duration tax from escrow instead of the prorated amount, causing unintended fund loss to the user.
**Insight:** In listing/rental protocols, audit the interaction between partial-update branches and time-based accounting: when a field update skips resetting a timestamp but still recomputes full-period fees, users overpay. Check every path where a stored timestamp gates a prorated refund.

