{
    "Function": "sendNative",
    "File": "contracts/cgp/test/AxelarDepositService.sol",
    "Parent Contracts": [
        "contracts/cgp/interfaces/IAxelarDepositService.sol",
        "contracts/cgp/test/DepositServiceBase.sol",
        "contracts/cgp/interfaces/IDepositServiceBase.sol",
        "contracts/cgp/util/Upgradable.sol",
        "contracts/cgp/interfaces/IUpgradable.sol"
    ],
    "High-Level Calls": [
        "IWETH9",
        "IAxelarGateway",
        "IWETH9"
    ],
    "Internal Calls": [
        "wrappedSymbol",
        "revert NothingDeposited()",
        "wrappedToken"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function sendNative(string calldata destinationChain, string calldata destinationAddress) external payable {\n        address wrappedTokenAddress = wrappedToken();\n        uint256 amount = msg.value;\n\n        if (amount == 0) revert NothingDeposited();\n\n        // Wrapping the native currency and into WETH-like token\n        IWETH9(wrappedTokenAddress).deposit{ value: amount }();\n        // Not doing safe approval as gateway will revert anyway if approval fails\n        // We expect allowance to always be 0 at this point\n        IWETH9(wrappedTokenAddress).approve(gateway, amount);\n        // Sending the token trough the gateway\n        IAxelarGateway(gateway).sendToken(destinationChain, destinationAddress, wrappedSymbol(), amount);\n    }"
}