{
    "Function": "constructor",
    "File": "contracts/deposit-service/DepositBase.sol",
    "Parent Contracts": [
        "contracts/interfaces/IDepositBase.sol"
    ],
    "High-Level Calls": [
        "IAxelarGateway"
    ],
    "Internal Calls": [
        "revert InvalidSymbol()",
        "revert InvalidSymbol()",
        "revert InvalidAddress()",
        "abi.encodePacked()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "constructor(address gateway_, string memory wrappedSymbol_) {\n        if (gateway_ == address(0)) revert InvalidAddress();\n\n        gateway = gateway_;\n\n        // Checking if token symbol exists in the gateway\n        if (IAxelarGateway(gateway_).tokenAddresses(wrappedSymbol_) == address(0)) revert InvalidSymbol();\n\n        // Converting a string to bytes32 for immutable storage\n        bytes memory symbolBytes = bytes(wrappedSymbol_);\n\n        if (symbolBytes.length == 0 || symbolBytes.length > 31) revert InvalidSymbol();\n\n        uint256 symbolNumber = uint256(bytes32(symbolBytes));\n\n        // Storing string length as the last byte of the data\n        symbolNumber |= 0xff & symbolBytes.length;\n        wrappedSymbolBytes = bytes32(abi.encodePacked(symbolNumber));\n    }"
}