Some ERC20 tokens are not compliant with IERC20Metadata().decimals(), for example, USDT in Ethereum. This will cause create() function reverted if token is USDT in Ethereum.
In SablierFlow, users can create one stream via create() function. In create function, we will record payment token's decimal. We get the payment token's decimal via IERC20Metadata(address(token)).decimals()
. The problem is that some tokens are not complicant with the stander IERC20Metadata().decimals() interface, for example, USDT token in Ethereum.
This will cause the IERC20Metadata(address(token)).decimals()
reverted. Users cannot create one stream based on the USDT Token.
Users cannot create streams using USDT in Ethereum.
Manual
Suggest to use low-level call to check the decimal to support USDT in Ethereum.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.