Make functions guaranteed to revert when called by normal users as 'payable'
Making certain access controlled functions payable can save the right caller gas. If not made payable there will be costly checks in opcodes that make the function more expensive for the right caller
Make payable Escrow.sol confirmReceipt() payable ....saves buyer gas when calling function
Make payable Escrow.sol initiateDispute() payable... saves buyer and seller gas when calling function
Make payable Escrow.sol resolveDispute() payable... saves arbiter gas when calling function
The following opcodes avoided are CALLVALUE(2),DUP1(3),ISZERO(3),PUSH2(3),JUMPI(10),PUSH1(3),DUP1(3),REVERT(0),JUMPDEST(1),POP(2), which costs an average of about 21 gas per call to the function
Manual Analysis
It is recommended the suggested functions are made payable; to save gas for the caller who has the right privileges to call the function
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.