Assessment reports>d3-doma>Threat Model>Function: detokenize(string calldata tokenId, bool isSynthetic, string calldata claimedBy, string calldata correlationId)

Function: detokenize(string calldata tokenId, bool isSynthetic, string calldata claimedBy, string calldata correlationId)

This function detokenizes domain names by verifying ownership, burning tokens, and completing the detokenization process. It can only be called by authorized cross-chain senders from Doma chain. It includes ownership verification before proceeding.

Inputs

  • tokenId

    • Control: Full.

    • Constraints: Converted to uint256 via Strings.parseUint().

    • Impact: Identifies the specific token to detokenize.

  • isSynthetic

    • Control: Not controlled.

    • Constraints: Must be false (synthetic tokens not implemented).

    • Impact: Distinguishes between regular and permissioned tokens.

  • claimedBy

    • Control: Full.

    • Constraints: Converted to address via Strings.parseAddress() and must match token owner.

    • Impact: Expected owner address that must match the current token owner.

  • correlationId

    • Control: Full.

    • Constraints: N/A.

    • Impact: Used for cross-chain operation tracking and correlation.

Branches and code coverage (including function calls)

Intended branches

Negative behavior

Zellic © 2025Back to top ↑