Closed code423n4 closed 2 years ago
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L573-L577
invalid, payable is required in this function as ETH is a valid payment token.
QA1 : payable should only be marked for functions that guarantee to revert for normal user like with onlyOwner modifier, else it's best to add withdraw function to prevent token locks sent by mistake.
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L573-L577