Skip to content

Commit

Permalink
Merge pull request #5 from euler-xyz/name-symbol-fixes
Browse files Browse the repository at this point in the history
remove unnecessary check for 0 length symbol/names
  • Loading branch information
dglowinski authored Jul 30, 2024
2 parents 45f9f50 + 8edac49 commit b62b529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EVault/modules/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ abstract contract TokenModule is IToken, BalanceUtils {

/// @inheritdoc IERC20
function name() public view virtual reentrantOK returns (string memory) {
return bytes(vaultStorage.name).length > 0 ? vaultStorage.name : "Unnamed Euler Vault";
return vaultStorage.name;
}

/// @inheritdoc IERC20
function symbol() public view virtual reentrantOK returns (string memory) {
return bytes(vaultStorage.symbol).length > 0 ? vaultStorage.symbol : "UNKNOWN";
return vaultStorage.symbol;
}

/// @inheritdoc IERC20
Expand Down

0 comments on commit b62b529

Please sign in to comment.