Closed code423n4 closed 2 years ago
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L498
Fees is calculated and sent only in the condition if put is expired or call is exercised No fees sent in either withdraw() or exercise() in condition if put is exercised or call is expired.
Loss of fees
Calculate similar fees and send
Duplicate: Fees are only applied on puts if they are expired: https://github.com/code-423n4/2022-06-putty-findings/issues/269
dup of #285
Lines of code
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L498
Vulnerability details
Fees is calculated and sent only in the condition if put is expired or call is exercised No fees sent in either withdraw() or exercise() in condition if put is exercised or call is expired.
Impact
Loss of fees
Recommended Mitigation Steps
Calculate similar fees and send