StableVault does not support tokens with decimals
> 18
#494
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate-533
satisfactory
satisfies C4 submission criteria; eligible for awards
Lines of code
https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/StableVault.sol#L44-L51
Vulnerability details
Impact
deposit
will revert at L49 for tokens withdecimals
> 18.Recommended Mitigation Steps
Consider checking if the token's
decimals
< 18 inlistToken()
.The text was updated successfully, but these errors were encountered: