Assessment reports>Orderly Network>Threat Model>estimateGasFee

Function: estimateGasFee(OrderlyCrossChainMessage.MessageV1 data, byte[] payload)

This estimates the gas fee for a cross-chain message.

Inputs

  • data

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: The gas fee is estimated.

  • payload

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: The gas fee is estimated.

Branches and code coverage

Intended branches

  • Return the lzEndpoint.estimateFees result based on the given payload and adapterParams.

Zellic © 2024Back to top ↑