Security review · September 2026
Canton BurnMint Adapter for LayerZero
Guardian's review of Canton BurnMint Adapter for LayerZero, published September 2026. The report records 3 findings, including 2 low and 1 informational.
See how Guardian runs a cross-chain bridge audit.
- Published
- Review window
- September 15 to 21, 2026
- Language
- DAML
- Sector
- Cross-chain
- 0 Critical
- 0 High
- 0 Medium
- 2 Low
- 1 Informational
Scope
-
GuardianAudits/audit-external
ab3b128c7a
16 files in scope · 1,442 nSLOC
| File | nSLOC | Lines |
|---|---|---|
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml.yaml | 27 | 28 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/BurnMintAdapter.daml | 176 | 197 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/BurnMintAdapterConfig.daml | 273 | 310 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/Callback/Dispatcher.daml | 69 | 79 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/Callback/ExecuteContext.daml | 79 | 88 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/Errors.daml | 15 | 22 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/LzReceive/Call/Impl.daml | 68 | 75 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/LzReceive/Callback/Accept.daml | 112 | 125 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/LzSend/Call/Impl.daml | 158 | 177 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/LzSend/Call/Keys.daml | 46 | 57 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/LzSend/Call/Parser.daml | 127 | 138 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/LzSend/Callback/Accept.daml | 97 | 108 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/LzSend/Callback/ContextBuilder.daml | 55 | 58 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/LzSend/Callback/Parser.daml | 14 | 16 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/LzSend/Callback/Reject.daml | 96 | 106 |
contracts/protocol/canton/contracts/Layerzero/BurnMintAdapter/daml/Utils/Core.daml | 30 | 32 |
Findings 3
-
L-01 Low Local payouts bypass sender holder credentials Access Control Acknowledged
Description
An
OApp_LzSendrequest can allocate part of a sender's holdings to local recipients as contingent payouts. For a Utility Registry instrument,holderRequirementsgovern transfers andTransferFactory_Transferchecks the sender's holder credential. The adapter instead funds payouts by burning the sender's holding throughBurnMintFactory_BurnMint, which checksissuerRequirementsbut notholderRequirements. The send path does not check the sender's holder eligibility before accepting a positive payout.After acceptance, the callback mints that payout to
mintEscrowand opens a transfer to the chosen recipient. The Registry checks the escrow's holder credential at that point. A sender who may burn but may not transfer can therefore pay a credentialed recipient through the adapter, even though a direct transfer from that sender would fail. This applies to supported instruments with different issuer and holder requirements, including sends with a positive cross chain amount.Recommendation
Require the original sender to satisfy the instrument's holder transfer requirements before accepting a send with a positive local payout. Use an issuer authenticated policy check or disable contingent payouts for instruments whose holder requirements the adapter cannot verify.
-
L-02 Low Pending payouts lose their recovery path Business logic errors Acknowledged
Description
The adapter mints refunds and inbound deliveries to
mintEscrow, then creates token transfers for their recipients. Contingent send payouts use the same transfer helper. A recipient may need to accept the resulting offer in a later transaction.proposePendingTransferdiscards the instruction CID when the factory returnsTransferInstructionResult_Pending. Finalization then consumes thePendingCallbackwithout creating an adapter settlement record that preserves the recipient's entitlement. The normal token offer carries a 24 hour deadline. The pinned Utility Registry rejects acceptance after that deadline and returns holdings tomintEscrowwhen the offer is withdrawn or rejected.A recipient who cannot complete the offer has no adapter choice to reissue the delivery or refund. The consumed callback cannot be retried because the later offer failure does not roll back the earlier finalization. Recovery requires the escrow operator to recover the holdings and arrange another transfer. This affects user access to refunds and deliveries without implying that the tokens are irretrievably destroyed.
Recommendation
Create a persistent settlement record when a transfer returns
Pending. Store the instruction identity, recipient, instrument and amount. Preserve the entitlement until delivery completes and provide a controlled replacement path when the offer expires or fails, preventing both duplicate payment and loss of the recovery right. -
I-01 Informational Escrow holder policy blocks inbound delivery Compatibility Acknowledged
Description
An accepted inbound request mints the received amount to
mintEscrow, then asks the token transfer factory to create an offer for the resolved recipient. The adapter checks the factory administrator but does not establish thatmintEscrowis permitted to transfer the token.The bundled Utility Registry applies
issuerRequirementswhen minting and a separateholderRequirementspolicy when transferring. An instrument can therefore allow the mint tomintEscrowwhile rejecting the following transfer because escrow lacks a holder credential. The finalization transaction aborts, leaving the accepted callback active and no offer for the recipient. Delivery remains blocked until the issuer grants escrow the required holder credential or provides another recovery route.Recommendation
Require an issuer approved holder transfer capability for
mintEscrowunder each supported instrument before enabling inbound delivery. Preserve a recovery path for already accepted callbacks if that capability expires or is revoked.
No findings match.
More from LayerZero
All 12 reportsPut your code through the same review.
This review started with a conversation about scope. Tell us what you are building and we will plan yours with you.