i_price
should be used over i_tokenContract.balanceOf(address(this)
When the escrow contract is created, the seller should only receive i_price
tokens (if there was no arbiter involved).
But in the confirmReceipt()
method, the seller is sent i_tokenContract.balanceOf(address(this))
tokens, which could be more or less than i_price
.
The seller can be paid less/more if the contract's token balance is different thatn i_price
Manual Code Review
i_price
should be used over i_tokenContract.balanceOf(address(this)
when paying the amount to the seller
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.