The state of teh collateral should reset to zero after the seller collect it
After the seller collect the amountToSeller they state of teh collateral didn't update so they still 20 USDC that mean the seller can keep claiming it
Likelihood:
Reason 1: Every seller that have NFTs and sell it can call this and get the collateral
Reason 2: There is no reentrancy protection, so a user or malicious contract can call it multiple times in the same function
Impact:
Impact 1: An attacker can drain all the collateral in the contract, effectively stealing users’ funds
Impact 2: This causes huge financial damage to the protocol and its users, severely reducing trust in the
collateral is not reset to zero after collecting USDC from sold NFT. No accounting for collected USDC
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.