In the resolveTrick(), users do not have a clear way to view the remaining ETH balance required to complete a purchase in the "trick" scenario, where they are required to pay double the base cost for the treat. This creates a usability issue, as users may not know how much more ETH they need to send, leading to potential failed transactions and a poor user experience.
A user calls trickOrTreat
with insufficient funds during a "trick" (double-price) scenario.
The NFT is marked as pending, and the user is required to complete the payment using resolveTrick
.
The user does not have a straightforward way to determine the remaining balance they owe to complete the transaction.
Users cannot view the remaining balance required and may send incorrect amounts, resulting in failed transactions and increased gas fees.
manual
Add a public view function, getPendingBalance
, to allow users to check the remaining balance required for completing the payment in the "trick" scenario. Here’s an example of how it could be implemented:
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.