Commit 79094f6 committed Feb 21, 2025 · 2 / 2
1 parent c1be11c commit 79094f6 Copy full SHA for 79094f6
File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -589,6 +589,7 @@ contract ChatterPay is
589
589
function _isStableToken (address token ) internal view returns (bool ) {
590
590
string memory symbol = IERC20Extended (token).symbol ();
591
591
bytes32 symbolHash = keccak256 (abi.encodePacked (symbol));
592
+ // TO-IMPROVE: Change by a token list!
592
593
return (symbolHash == keccak256 (abi.encodePacked ("USDT " )) ||
593
594
symbolHash == keccak256 (abi.encodePacked ("USDC " )) ||
594
595
symbolHash == keccak256 (abi.encodePacked ("DAI " )));
@@ -602,6 +603,7 @@ contract ChatterPay is
602
603
function _isBTCToken (address token ) internal view returns (bool ) {
603
604
string memory symbol = IERC20Extended (token).symbol ();
604
605
bytes32 symbolHash = keccak256 (abi.encodePacked (symbol));
606
+ // TO-IMPROVE: Change by a token list!
605
607
return (symbolHash == keccak256 (abi.encodePacked ("WBTC " )) ||
606
608
symbolHash == keccak256 (abi.encodePacked ("renBTC " )));
607
609
}
You can’t perform that action at this time.
0 commit comments