Closed sherlock-admin2 closed 1 month ago
symbol()
name()
getTokenName
Low/Info issue submitted by NoOne
in function getTokenName is used symbol() instead name()
The use of symbol() will return the symbol of token not the name of token
string memory symbol0 = IERC20Metadata(token0_).symbol(); string memory symbol1 = IERC20Metadata(token1_).symbol();
Manual Review
Use
string memory name0= IERC20Metadata(token0_).name(); string memory name1= IERC20Metadata(token1_).name();
Incorrect Use of
symbol()
Instead ofname()
ingetTokenName
Low/Info issue submitted by NoOne
Summary
in function getTokenName is used
symbol()
insteadname()
Vulnerability Detail
Impact
The use of
symbol()
will return the symbol of token not the name of tokenCode Snippet
Tool used
Manual Review
Recommendation
Use