Contact
Reports

Smart Contract Security Assessment

Paxos Labs Transit Station

Protocol
Paxos Labs
Timeline
Jun 16, 2026 - Jun 18, 2026
Audit Team
watermelon, fedebianu
Contents

Protocol Overview

The reviewed Transit Station module implements a 1:1 same-underlying asset order flow where users submit backend-signed quotes, source assets are collected locally, cross-chain order terms are relayed through LayerZero when needed, and a privileged executor fulfills pending orders from a configured want-asset source.
This audit covers 6 smart contract totaling approximately 618 lines of code across 3 days of review.

Severity Classification

SeverityDescriptionPotential Impact
CriticalImmediate threat to user funds or protocol integrityDirect loss of funds, protocol compromise
HighSignificant security risk requiring urgent attentionPotential fund loss, major functionality disruption
MediumImportant issue that should be addressedLimited fund risk, functionality concerns
LowMinor issue with minimal impactBest practice violations, minor inefficiencies
UndeterminedFindings whose impact could not be fully assessed within the time constraints of the engagement. These issues may range from low to critical severity, and although their exact consequences remain uncertain, they present a sufficient potential risk to warrant attention and remediation.Varies based on actual severity
GasFindings that can improve the gas efficiency of the contracts.Increased transaction costs
InformationalCode quality and best practice recommendationsReduced maintainability and readability

Key Findings

0
Critical
0
High
0
Medium
1
Low
5
Informational
0
Gas

Evaluation Matrix

access control
Good
The reviewed contracts uses Solady's Auth contract to define different roles and privileged roles within its contracts. The roles are adequately defined and segregated, such that a single compromise in any low privilege account does not lead to catastrophic consequences. The highest privilege role, which is able to execute critical storage writes and grant or remove other roles, is intended to be assigned to a multisig account.
mathematics
Good
TransitStation contract uses very simple mathematical relations, particularly when a transit quote is submitted, in order to calculate the maximum amount of fees to be charged.
complexity
Good
The reviewed contracts present a low degree of complexity: their intended behaviour is clearly defined and accurately implemented. Layerzero's integration poses as a source of complexity, especially revolving the safety of the configuration used once the contracts are deployed.
libraries
Good
The contracts use the well established Solady library.
decentralization
Low
TransitStation is a strongly permissioned contract: order submission is gated via ECDSA signatures provided by a proprietary backend, order execution is only executable by accounts with appropriate privilege level and isn't guaranteed.
documentation
Excellent
Exceptional in-line documentation was provided within the code, along side external development documentation.
testing
Average
Unit tests for TransitStation are currently being developped within [PR 306](https://github.com/paxoslabs/nucleus-boring-vault/pull/306). The tests cover constructor validation and `submitOrder` failure paths, including route, fee, decimal-conversion, token-transfer and ECDSA signature checks. Furthermore, the protocol team is actively testing the contracts in testnet environments.

Overall Assessment

No Critical, High, or Medium vulnerabilities were identified under the stated trust model. The review reported one Low severity issue and several Informational findings, primarily around cross-chain liveness, operational recovery, observability, and documentation clarity.

Findings Summary

L-1Finding

L-1: Same-chain order submissions can retain accidental native sent with the transaction

Low

Description:

Both submission entrypoints, submitOrder() and submitOrderWithPermit(), are payable because cross-chain orders use msg.value to pay LayerZero fees.

Both functions delegate to _submitOrder(). When quote.route.destEID == thisChainEID, _submitOrder() queues the order locally through _pushOrder() and does not call _sendOrder(), the only branch that forwards msg.value to LayerZero with msg.sender as the refund recipient.

The same-chain branch has no msg.value check and does not refund native. Any native accidentally attached to a local submission remains as stray contract balance and can later be swept to the owner through recoverETH(), not to the original submitter.

Impact:

Low. Users or integrations can accidentally lose native ETH attached to same-chain submissions. The loss is limited to accidental msg.value, and funds are recoverable only by the privileged owner path.

Recommendation:

Reject native for same-chain submissions:

if (quote.route.destEID == thisChainEID && msg.value != 0) revert UnexpectedMsgValue();

Alternatively, immediately refund the full msg.value to msg.sender before queuing the local order.

Developer Response:

Fixed in commit cff03ae.

I-1Finding

I-1: `recoverETH()` / `recoverTokens()` emit no events

Informational

Description:

recoverETH() and recoverTokens() move value out of the contract but emit nothing.

Impact:

Informatioal.

Recommendation:

Emit a dedicated event from each recovery function.

Developer Response:

Fixed in commit b1d6ac7.

I-2Finding

I-2: Constructor does not code-check `_authority`

Informational

Description:

The constructor() verifies _endpoint.code.length != 0 but performs no code-existence check on _authority, although the project's design notes describe a code-existence check on _authority.

Impact:

Informational.

Recommendation:

Align implementation and documentation: add the documented _authority code-existence check.

Developer Response:

Acknowledged, we perhaps mistakenly mentioned a code-existence check on _authority but it should not exist. A 0 address authority is equivalent to using Auth as a simple owner only contract which is desired sometimes even if only during the deployment process.

I-3Finding

I-3: `_pushOrder()` has no local idempotency guard for the order UUID

Informational

Summary:

_pushOrder() unconditionally writes pendingOrders[terms.uuid], with no check that the UUID is not already pending. UUID uniqueness is therefore guaranteed entirely by two external invariants rather than by the function itself. Under the current trust model and topology this is sound and not reachable, but a single duplicate push would reset a partially-filled order's amountDue back to its full value. A one-line local guard makes the invariant self-contained.

Description:

The reason a duplicate uuid cannot reach this code today:

  1. Same-chain / source side — _verifyAndCollect() sets usedDigests[digest] = true before dispatch, and the uuid is the digest, so a quote cannot be submitted (and thus pushed/bridged) twice.
  2. Cross-chain receive side — _lzReceive() performs no usedDigests check, so it relies solely on the LayerZero endpoint delivering each committed packet at most once.

However, _pushOrder() does not enforce that invariant itself. EnumerableSet.add() is idempotent and its return value is ignored, while pendingOrders[terms.uuid] = order blindly overwrites any existing order.

Impact:

Informational.

Recommendation:

Make the uniqueness self-contained. EnumerableSet.add() already returns whether the element was newly added, so the guard is free:

if (!pendingOrderIds.add(terms.uuid)) revert OrderAlreadyPending(terms.uuid);

Developer Response:

Fixed in commit fc99730.

I-4Finding

I-4: Cross-chain dust orders can collect source funds without creating a destination order

Informational

Description:

TransitStation._verifyAndCollect validates that the source-chain net amount is nonzero in offer-asset token units before collecting funds from the caller. The method then transfers the protocol fee, integrator fee, and net amount, and returns offerAmountNormalized18AfterFees derived from the nominal net amount collected.

For cross-chain orders, _submitOrder sends the resulting OrderTerms to the destination chain after the source funds have already been collected. The destination later calls _pushOrder, which converts terms.offerAmountNormalized18AfterFees into want-asset token units and reverts with ZeroAmountDue if the conversion truncates to zero.

As a result, an order can pass the source-chain NetTruncatesToZero check and still truncate to zero on the destination. For example, if the offer asset has more decimals than the destination want asset, a low-value order may collect a nonzero offer amount on the source while producing zero want-asset units on the destination. In this case the source transaction has already completed, while the destination LayerZero delivery remains retryable and cannot create a pending order without a protocol-side intervention or refund process.

Impact:

Informational. Small cross-chain orders may collect user funds without creating a fillable destination order. The issue may be limited by backend quote signing and route approval, but it can still cause avoidable stuck orders and manual refund handling.

Recommendation:

Enforce a source-chain minimum that accounts for the destination want asset's decimals before collecting funds. If implementing and maintaining such data structure is deemed to cumbersome, enforcing a minimum order amount for a given want asset can also suffice.

Developer Response:

Acknowledged, the backend quote signer may apply minimums effectively and this is not considered an issue as any rounding occurs only in protocol favor and is capped to asset decimals.

I-5Finding

I-5: Removing a peer does not immediately disable established inbound Transit routes

Informational

Summary:

Removing a destination LayerZero peer is a receive-side quarantine action, not a complete route shutdown. If the source station, source route approval, and backend quote issuance remain active, users can still submit cross-chain orders and have source funds collected before the destination rejects delivery.

Description:

Transit uses LayerZero's peer authentication model to control which remote chains can deliver cross-chain orders. The setPeer(eid, peer) function in OAppAuthCore sets the trusted sender address for a given source endpoint, and setPeer(eid, 0) removes that trust relationship.

When an operator calls setPeer(eid, 0) on the destination chain while the source chain remains active, subsequent cross-chain orders encounter this flow:

  1. A user submits a valid quote through submitOrder() on the source station
  2. _verifyAndCollect() immediately transfers the user's offer asset to protocolFeeRecipient, integratorFeeReceiver, and offerReceiver
  3. _sendOrder() emits a LayerZero packet containing the OrderTerms
  4. The destination endpoint verifies the packet successfully because the path was already established
  5. When execution reaches lzReceive() in OAppAuthReceiver.sol:113-128, the call to _getPeerOrRevert(_origin.srcEid) reverts because the peer mapping now returns zero
  6. The revert prevents _lzReceive() from queueing the pending order, leaving the user's funds collected on the source chain without a corresponding order on the destination

The user has paid into a route that operators intended to disable. Because the LayerZero delivery reverted atomically, the verified payload remains retryable on the endpoint but cannot be consumed until the peer is restored.

Impact:

Informational.

Recommendation:

Document peer removal as a coordinated shutdown step rather than a unilateral route kill switch. Operators should first stop new source-side admissions by disabling backend quote issuance and deapproving the affected route on the source station, or by pausing submissions when a broader stop is required. After in-flight LayerZero packets have delivered or been reconciled, the destination peer can be removed safely.

Developer Response:

Acknowledged, considering this is assuming misuse we will take the consideration but change nothing in the code.