{
    "Function": "refundNativeUnwrap",
    "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": [],
    "Internal Calls": [
        "abi.encodeWithSelector()",
        "wrappedToken"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function refundNativeUnwrap(\n        bytes32 salt,\n        address refundAddress,\n        address payable recipient,\n        address[] calldata refundTokens\n    ) external {\n        address wrappedTokenAddress = wrappedToken();\n\n        uint256 tokensLength = refundTokens.length;\n        for (uint256 i; i < tokensLength; ++i) {\n            // Allowing only the refundAddress to refund the intended WETH-like token\n            if (refundTokens[i] == wrappedTokenAddress && msg.sender != refundAddress) continue;\n\n            refundToken = refundTokens[i];\n            // NOTE: `DepositReceiver` is destroyed in the same runtime context that it is deployed.\n            new DepositReceiver{ salt: salt }(\n                abi.encodeWithSelector(ReceiverImplementation.receiveAndUnwrapNative.selector, refundAddress, recipient),\n                refundAddress\n            );\n        }\n\n        refundToken = address(0);\n    }"
}