Skip to content

Commit 79094f6

Browse files
committedFeb 21, 2025·
[chore] 💡 add comment reminder to improve swap token list in Chatterpay.sol
1 parent c1be11c commit 79094f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/ChatterPay.sol

+2
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ contract ChatterPay is
589589
function _isStableToken(address token) internal view returns (bool) {
590590
string memory symbol = IERC20Extended(token).symbol();
591591
bytes32 symbolHash = keccak256(abi.encodePacked(symbol));
592+
// TO-IMPROVE: Change by a token list!
592593
return (symbolHash == keccak256(abi.encodePacked("USDT")) ||
593594
symbolHash == keccak256(abi.encodePacked("USDC")) ||
594595
symbolHash == keccak256(abi.encodePacked("DAI")));
@@ -602,6 +603,7 @@ contract ChatterPay is
602603
function _isBTCToken(address token) internal view returns (bool) {
603604
string memory symbol = IERC20Extended(token).symbol();
604605
bytes32 symbolHash = keccak256(abi.encodePacked(symbol));
606+
// TO-IMPROVE: Change by a token list!
605607
return (symbolHash == keccak256(abi.encodePacked("WBTC")) ||
606608
symbolHash == keccak256(abi.encodePacked("renBTC")));
607609
}

0 commit comments

Comments
 (0)
Please sign in to comment.