Send any remaining token balances to the buyer in Escrow.sol::confirmReceipt()
The Escrow contract might have some extra funds, which could be more than i_price
. This could be happen because of pre-funding the contract multiple times by mistake, or due to multiple attempts when creating the Escrow account.
After seller is sent i_price
amount of tokens in the Escrow.sol::confirmReceipt()
method, the rest of the amount should be sent back to the buyer, so that there is no loss of funds if there was such multiple findings.
If the Escrow contract had more funds than i_price
, then they can never be recovered
Marking this as medium as both the following medium criteria satisfy:
Funds are indirectly at risk
Disruption of protocol functionality or availability
Source: https://docs.codehawks.com/rewards-and-judging
Manual inspection
Update the method as:
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.