Skip to content
We manage your security to weather the AI storm →

Security review · October 2026

MultiHopComposer Review for USDT0

Guardian's review of MultiHopComposer Review for USDT0, published October 2026. The report records 7 findings, including 4 low and 3 informational.

See how Guardian runs a stablecoin security audit.

Published
Review window
September 30 to October 1, 2026
Language
Solidity
Sector
Stablecoins
  • 0 Critical
  • 0 High
  • 0 Medium
  • 4 Low
  • 3 Informational

7 acknowledged

Scope

  • GuardianOrg/mirror-everdawn-labs-lz-oft-wiring-tooling c56e79e054
1 file in scope · 152 nSLOC
FilenSLOCLines
apps/multihop-composer-app/contracts/evm/contracts/MultiHopComposer.sol152253

Findings 7

  1. L-01 Low Low compose value can force a refund DoS Acknowledged
    Location
    apps/multihop-composer-app/contracts/evm/contracts/MultiHopComposer.sol:112-114,116-119,138-147

    Description

    The source payload sets minMsgValue, the least native value a caller must supply when delivering the compose message. If that minimum is below the current fee for the onward OFT send, any caller can deliver with the insufficient minimum. The send reverts for lack of native fees, but lzCompose catches the error and records a FailedMessage. Anyone can then call refund before the intended route is retried, returning the tokens to the source chain. The caller does not receive the tokens, but the user loses the original route and its messaging costs if the refund executes.

    Recommendation

    When the onward send fails specifically for insufficient native fees, revert lzCompose so the endpoint keeps the compose message pending for a delivery with enough value.

  2. L-02 Low Decimal mismatch strands transfer dust Rounding Acknowledged
    Location
    apps/multihop-composer-app/contracts/evm/contracts/MultiHopComposer.sol:109-110,242-247

    Description

    The constructor accepts OFTs that share a token and endpoint without checking their shared decimal conversion rates. When the outbound OFT has coarser precision than the inbound OFT, it rounds the credited amount down to an amount it can send. The composer then emits Sent while the remainder stays in its token balance without a record that lets the user recover it. In the tested 8 decimal to 6 decimal route, the remainder can reach 99 base units. That is 0.00000099 token per transfer. The repository's AUDIT.md describes this limitation. It affects a deployment only if its registered OFTs use different conversion rates.

    The repository's Foundry test test_lzCompose_DifferentSharedDecimals configures an 8 decimal inbound OFT and a 6 decimal outbound OFT. It observes a successful send while 99 base units remain in the composer.

    Recommendation

    Document the maximum retained remainder for each supported route and register OFTs with differing shared decimal rates only when that loss is acceptable for users.

  3. L-03 Low Second hop minimum is discarded Informational Acknowledged
    Location
    apps/multihop-composer-app/contracts/evm/contracts/MultiHopComposer.sol:106-110

    Description

    The source payload can specify sendParam.minAmountLD for the onward transfer, but lzCompose replaces that minimum with zero before calling the outbound OFT. This only changes the user's received amount if the registered outbound bridge actually deducts a fee or otherwise reduces the transfer. Such amount reduction is not expected on the intended routes. If an outbound bridge with that behavior is registered, the composer can emit Sent even though the destination receives less than the minimum selected for the second hop.

    Recommendation

    Document that the second hop ignores sendParam.minAmountLD and that registered outbound OFTs are expected not to reduce the received amount.

  4. L-04 Low Retry caller receives cached native surplus Informational Acknowledged
    Location
    apps/multihop-composer-app/contracts/evm/contracts/MultiHopComposer.sol:153-160,258-266

    Description

    When the onward send fails, the composer stores the native value delivered with the compose message in failedMessages[_guid].msgValue. A later retry() combines that cached value with any payment from the retry caller and names tx.origin as the recipient of the unused amount. An unrelated caller can therefore complete the recorded route without adding native value and receive surplus from the original message's prefunding. This is the documented retry payment rule, so users funding a compose message cannot assume its unused native value will return to them.

    Recommendation

    Carry the retry payment rule from the audit notes into user facing fee and recovery documentation. State that a successful retry pays all unused native value to the transaction origin, including value cached from the original compose delivery.

  5. I-01 Informational Short token credits can deplete refund backing Trust Assumptions Acknowledged
    Location
    apps/multihop-composer-app/contracts/evm/contracts/MultiHopComposer.sol:83-84,106-108,127-145

    Description

    The composer uses the amount reported in an inbound OFT message for both the onward send and any refund. It does not measure how many tokens that OFT actually credited. This matches the repository's explicit assumption that registered OFTs and their tokens always credit the full reported amount. If a registered token later deducts a transfer fee or reduces balances, the reported amount can exceed the tokens available for that message. A later send can then use tokens backing an earlier failed message, leaving its recorded refund without enough funds. No such short credit has been established for the intended deployment.

    Recommendation

    Treat exact token credit as a deployment requirement for every registered OFT. Document how that requirement remains true if the underlying token's fee or balance behavior can change.

  6. I-02 Informational Outdated payload example requires owner rescue Documentation Acknowledged
    Location
    apps/multihop-composer-app/contracts/evm/contracts/MultiHopComposer.sol:91-104,210-213

    Description

    The LayerZero lzAsset transfer guide instructs integrators to encode the second hop as abi.encode(nextHopParam) in the first hop's composeMsg. This version of MultiHopComposer instead decodes a SendParam together with the outbound OFT address, the refundTo address and minMsgValue. Its decoder rejects the single struct format. If a sender follows the guide, the first hop can credit tokens to the composer, but lzCompose records the transfer in undecodableMessages without initiating the second hop. The transfer then requires the owner's rescue call because users cannot retry or refund an undecodable message.

    Recommendation

    Update the lzAsset transfer guide's multi hop examples to encode (nextHopParam, outboundOFT, refundTo, minMsgValue) for this composer version and identify the required outbound OFT and recovery fields.

  7. I-03 Informational Recovery comments overstate route outcomes Documentation Acknowledged
    Location
    apps/multihop-composer-app/contracts/evm/contracts/interfaces/IMultiHopComposer.sol:26-34,79-84,222-226

    Description

    The interface describes FailedMessage as a failure on oft.send and says that several failed routes need to be refunded. lzCompose also stores a FailedMessage when the composer's send function rejects an unregistered outbound OFT before calling oft.send. A refund then depends on the inbound OFT accepting the fixed return route. If that route lacks a peer or usable enforced options, refund reverts and leaves the failed message pending. A limit that resets over time can also make retry available again without an OFT configuration update.

    The Refunded event and refund comment say the hop has been refunded to the source chain. The event is emitted when the local OFT and Endpoint accept the return message, before the source chain credits its recipient. Integrators relying on these descriptions can misclassify a failed hop, assume a refund is always available or mark an initiated return as complete.

    Recommendation

    Revise the interface comments to cover failures caught before oft.send, describe retry and refund as conditional on the respective route being usable and define Refunded as local acceptance of the return message rather than completed source chain credit.

More from USDT0

All 45 reports
  1. Canary Sponsored DVN Migration

    0 findings No findings
  2. Zero Network - USDT & XAUT Deployment

    0 findings No findings
  3. OFT Contracts Upgrade - Fast lane

    3 findings 3 findings: 2 low, 1 informational
  4. WrappedTetherTokenTron & WrappedTetherToken

    0 findings No findings

Put 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.

Get a quote