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
- Chains
- Ethereum, Arbitrum, Hyperliquid, Solana, Ink
- Sector
- Stablecoins
- 0 Critical
- 0 High
- 0 Medium
- 4 Low
- 3 Informational
Scope
-
GuardianOrg/mirror-everdawn-labs-lz-oft-wiring-tooling
c56e79e054
1 file in scope · 152 nSLOC
| File | nSLOC | Lines |
|---|---|---|
apps/multihop-composer-app/contracts/evm/contracts/MultiHopComposer.sol | 152 | 253 |
Findings 7
-
L-01 Low Low compose value can force a refund DoS Acknowledged
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, butlzComposecatches the error and records aFailedMessage. Anyone can then callrefundbefore 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
lzComposeso the endpoint keeps the compose message pending for a delivery with enough value. -
L-02 Low Decimal mismatch strands transfer dust Rounding Acknowledged
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
Sentwhile 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'sAUDIT.mddescribes this limitation. It affects a deployment only if its registered OFTs use different conversion rates.The repository's Foundry test
test_lzCompose_DifferentSharedDecimalsconfigures 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.
-
L-03 Low Second hop minimum is discarded Informational Acknowledged
Description
The source payload can specify
sendParam.minAmountLDfor the onward transfer, butlzComposereplaces 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 emitSenteven though the destination receives less than the minimum selected for the second hop.Recommendation
Document that the second hop ignores
sendParam.minAmountLDand that registered outbound OFTs are expected not to reduce the received amount. -
L-04 Low Retry caller receives cached native surplus Informational Acknowledged
Description
When the onward send fails, the composer stores the native value delivered with the compose message in
failedMessages[_guid].msgValue. A laterretry()combines that cached value with any payment from the retry caller and namestx.originas 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.
-
I-01 Informational Short token credits can deplete refund backing Trust Assumptions Acknowledged
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.
-
I-02 Informational Outdated payload example requires owner rescue Documentation Acknowledged
Description
The LayerZero lzAsset transfer guide instructs integrators to encode the second hop as
abi.encode(nextHopParam)in the first hop'scomposeMsg. This version ofMultiHopComposerinstead decodes aSendParamtogether with the outbound OFT address, therefundToaddress andminMsgValue. Its decoder rejects the single struct format. If a sender follows the guide, the first hop can credit tokens to the composer, butlzComposerecords the transfer inundecodableMessageswithout initiating the second hop. The transfer then requires the owner'srescuecall 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. -
I-03 Informational Recovery comments overstate route outcomes Documentation Acknowledged
Description
The interface describes
FailedMessageas a failure onoft.sendand says that several failed routes need to be refunded.lzComposealso stores aFailedMessagewhen the composer'ssendfunction rejects an unregistered outbound OFT before callingoft.send. A refund then depends on the inbound OFT accepting the fixed return route. If that route lacks a peer or usable enforced options,refundreverts and leaves the failed message pending. A limit that resets over time can also makeretryavailable again without an OFT configuration update.The
Refundedevent andrefundcomment 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 defineRefundedas local acceptance of the return message rather than completed source chain credit.
No findings match.
More from USDT0
All 45 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.
