Closed code423n4 closed 1 year ago
Looks valid, but no impact, meaning I will most likely downgrade due to a lack of showing how the finding can cause a loss beside it not working with DAI
I believe this should be QA.
TriHaz marked the issue as sponsor acknowledged
Per a similar report, some tokens will revert when calling the function, a sidestep is offered by using the "normal way"
meaning this is a QA - Low Severity finding
L
Lines of code
https://github.com/code-423n4/2022-12-tigris/blob/main/contracts/StableVault.sol#L56 https://github.com/code-423n4/2022-12-tigris/blob/main/contracts/Trading.sol#L647
Vulnerability details
Impact
Some tokens may not conform with
IERC20Permit
. Case in point, DAI stablecoin which uses apermit()
that is different than the reference permit.IERC20Permit:
DAI's permit:
Proof of Concept
N/A
Tools Used
Manual Review
Recommended Mitigation Steps
Either check if the token being permitted is DAI or not, and use DAI's permit if it is. Alternatively, Uniswap's
permit2
.