airswap / airswap-protocols

AirSwap Contracts and Tools
https://about.airswap.io/
MIT License
231 stars 94 forks source link

Swap param checks #1248

Closed dmosites closed 10 months ago

dmosites commented 10 months ago

Adds hasValidParams to Adapters and includes in Swap.check. ERC20: requires id to be zero. ERC721: requires amount to be zero. ERC1155: requires amount to be nonzero.

openzeppelin-code[bot] commented 10 months ago

Swap param checks

Generated at commit: af572f28ae64d7e8be80472ebd6f6a1df2b9a74e

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
0
0
0
9
24
33
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector