The documentation for the buyOrder
function states it accepts "ETH or any token" for payment, but the implementation only accepts ETH payments via msg.value.
There is a discrepancy between the documentation and implementation of the buyOrder
function:
Documentation comment states:
However, the implementation only accepts ETH payments:
Misleading documentation could cause integration issues
Developers may build incorrect integrations based on documentation
Manual code review
Update the documentation to clearly state that only ETH payments are accepted:
Or modify the implementation to accept token payments as documented by:
Adding parameters for payment token address
Adding token transfer logic
Implementing proper token approval checks
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.