Closed detectivekim closed 11 months ago
The permit function is payable, but its invocation will not send native funds together with it. Hence, the payable keyword is redundant.
Loss of funds if users accidentally invoke permit() with non-zero msg.value.
permit()
msg.value
Remove the payable keyword.
payable
Details
The permit function is payable, but its invocation will not send native funds together with it. Hence, the payable keyword is redundant.
Impact
Loss of funds if users accidentally invoke
permit()
with non-zeromsg.value
.Mitigation
Remove the
payable
keyword.