Celerbridge

Celerbridge provides cross-chain token transfers with destination amount estimates

Celerbridge is Celer's cBridge, a cross-chain token bridge that estimates the destination amount using bridge rates and fees. Its wallet interface connects transfer review with approval, submission, and destination delivery. The broader system also includes liquidity management and developer-oriented message bridging, supported by the State Guardian Network.

The selected bridge model determines whether destination liquidity or a canonical token mapping governs the transfer, alongside its quoted fees.

Wallets, liquidity, and the State Guardian Network

The wallet, transfer gateway, liquidity providers, and Celer State Guardian Network contribute different parts of cBridge's cross-chain operation. A connected wallet supplies the account and source-chain context. The gateway estimates the proposed transfer, while destination liquidity affects whether a pool-based transfer can proceed. The State Guardian Network, or SGN, supports bridging and liquidity management through its validators and stakers. A quote describes the expected destination amount for the selected inputs. Liquidity providers have management functions beyond making a personal transfer; cBridge supports their participation without requiring them to operate bridge nodes.

Selecting two blockchains does not establish a usable transfer by itself. The token and requested amount must satisfy the configured route's applicable limits.

How does cBridge calculate the receive estimate?

cBridge calculates the estimated destination amount from the requested transfer, its bridge rate, and applicable fees. The quote separates the base fee from the protocol fee. The base fee covers destination-chain delivery gas and is charged in the transferred token. The protocol fee pays SGN validators and stakers; pool-based transfers also compensate liquidity providers. Its pool-based calculation can vary with the chains, transfer amount, and liquidity balance.

The gateway also returns a destination-equivalent amount alongside the estimated receiving amount. The destination-equivalent quantity should not be read as the final net receipt, because the response provides a separate receive estimate. Likewise, a bridge rate describes the relationship between token amounts across chains; it does not state the entire fee.

Rates and fees can change during review, so the quote needs refreshing near submission. The expected receive field does not establish actual delivery.

The wallet transfer flow from quote to arrival

In a transfer flow requiring token approval, connection identifies the account, approval authorizes spending, and later confirmation submits the bridge transaction. The destination balance supplies the arrival evidence, so the interface's submission message belongs to an earlier transfer state.

Transfer stage Wallet and transfer state
Connect a wallet The interface displays the connected account and current chain.
Select the source chain, destination chain, and token The wallet must use the source chain; the selected transfer must be supported.
Enter the amount and review applicable slippage The receive estimate reflects the bridge rate and fees; applicable tolerance needs review.
Approve token spending when requested A successful source-chain approval transaction authorizes token spending for the approval-based flow.
Confirm the transfer and its wallet transaction The cross-chain submission requires confirmation after the token approval.
Review the submission and pending record A submission message records an intermediate state before destination delivery.
Check the funds on the destination chain Tokens arriving in the destination wallet establish receipt of the transfer.

Token approval and the spending permission it creates

A token approval authorizes spending for the relevant token on the connected source chain. It does not deliver tokens to the destination by itself. The later transfer confirmation concerns the cross-chain transaction, so the prompts authorize different actions even when the interface presents them consecutively.

Compare the token spending request with the intended transfer before accepting it. The quoted destination amount cannot tell you what spending permission the wallet request grants. Keep the approval transaction separate from the bridge transaction when interpreting their records: a successful on-chain approval establishes permission, while the cross-chain transfer has its own submission and destination outcome.

Slippage tolerance and the gateway's transaction parameter

Slippage tolerance sets the permitted change for applicable transfers, while the gateway prepares a separate parameter for transaction submission. A low setting can prevent a transfer from proceeding. Changing the tolerance also changes what the transaction permits, so it belongs beside the receive estimate during review.

The v2 estimation API obtains the slippage tolerance rate by dividing the request's integer slippage_tolerance value by 1,000,000. Convert a displayed percentage to that integer scale before constructing the request.

For xLiquidity pool-based transfers, the response supplies max_slippage for the on-chain transaction. Its calculation accounts for the bridge rate, base fee, protocol fee, and user tolerance. A contract minimum also constrains the derived value. The submitted parameter can consequently differ from the user's raw tolerance input.

The minimum-receiving calculation multiplies the destination-equivalent amount by one minus max_slippage divided by 1,000,000. This describes the minimum-output calculation, while the receive estimate describes the expected destination amount.

For pegged-token estimates with is_pegged set to true, the slippage setting has no effect. Transfer mode determines whether changing tolerance addresses the relevant constraint.

Destination liquidity, pool caps, and failed transfers

A pool-based transfer needs sufficient destination tokens and room within the applicable pool limits. The gateway distinguishes a shortage of destination tokens from an inbound pool-volume limit or a total pool cap. A supported token can still encounter these restrictions. Availability therefore concerns the selected amount and direction, as well as the token itself.

For the documented liquidity-cap errors, reducing the sending amount addresses an input exceeding the pool limit. That is a different condition from a disabled chain or transfer route. A disabled route remains unavailable regardless of whether a smaller amount fits a liquidity cap. Treating every estimation failure as a slippage problem would miss these separate constraints.

Insufficient destination liquidity or unfavorable slippage can also cause a submitted transfer to fail. The transfer history can offer Request Refund for these failures. That option requests a refund; it does not establish that the funds have already returned.

When has a cross-chain transfer actually finished?

A cross-chain transfer has finished when the destination delivery completes, rather than when the wallet approves spending or the interface reports submission. Source-chain confirmation and destination receipt concern different records. A source-chain explorer can clarify the sending transaction's status. The destination wallet and transfer status concern arrival on the receiving chain.

The gateway offers a route-specific median transfer latency based on the latest seven days, reported in seconds. It is an estimate of timing, not a deadline for an individual transfer. The median describes recent timing without identifying an individual transfer's current processing stage.

Security rate limits can require additional processing time, including for transfers above applicable thresholds. The status helps distinguish source submission from later SGN confirmation or fund release. A transfer awaiting SGN confirmation has reached a different stage from one awaiting source-chain confirmation.

Liquidity provision alongside node operation

cBridge supports liquidity management for bridge node operators and for liquidity providers who do not operate nodes. Supplying liquidity is a separate activity from bridging a personal token balance. Transfers can change how a provider's liquidity is distributed across chains. Significant imbalance can also reduce its value, creating a risk similar to impermanent loss in automated market makers. Providers can add or remove liquidity and earn fees when their funds support transfers. Pools with active farming sessions can also offer CELR rewards that require manual claims. Smart-contract providers need a separate withdrawal process on supported chains; the documented frontend does not support their removals.

Message bridging for cross-chain applications

General message bridging extends the developer-facing scope beyond a wallet's token transfer. It supports cross-chain application use cases such as decentralized exchanges and non-fungible tokens, or NFTs. Their presence does not establish that the transfer interface provides every exchange action or NFT operation. An application's own integration determines how the messaging capability becomes a user-facing function.

Celerbridge: Message bridging for cross-chain applications - diagram
Illustration: Message bridging for cross-chain applications

View full-size image

xAsset mapping and xLiquidity pools

xAsset creates a mapped token through canonical bridging, while xLiquidity uses token pools on the participating chains. In the original-to-mapped xAsset direction, original tokens enter a vault and corresponding tokens are minted on the destination chain. The reverse direction burns mapped tokens and releases original tokens. The mapping uses a 1:1 peg, which describes the token relationship before considering bridge fees.

xAsset v2 also supports transfers between supported canonical mapping chains through minting and burning, without returning through the original chain. It does not imply unrestricted transfers between arbitrary token deployments.

xLiquidity instead draws destination tokens from pools. Many pool-based pairs use a StableSwap pricing curve, while some use a fixed 1:1 bridge rate. A fixed rate does not supply missing destination liquidity or remove pool caps. The configured pricing method determines the bridge rate; available destination liquidity and pool caps constrain transfer capacity. Similar-looking receive estimates can arise from different underlying mechanisms.

Transfer configuration and application integration

Transfer configuration identifies the chains, tokens, token decimals, and applicable bridge contracts an application uses. It also describes pegged-token pairs and transfer-disable flags. Mainnet and testnet configurations belong to their respective environments. Mixing an environment's token or contract information with another environment's request can prevent the intended transfer from working.

The estimate request combines source and destination chain IDs with the token symbol, amount, and applicable mode settings.

The wallet-address field identifies the user when included; the documented multi-chain token estimation path does not require it. That API option concerns quote construction. It does not remove the connected wallet's role in the transfer interface.

A pool-based quote calls for available liquidity and applicable tolerance review. A canonical mapping transfer calls for the correct original or mapped token relationship. Decide whether the configured token route serves your intended destination and its current quote shows an acceptable receiving amount.

What readers ask about Celerbridge

Does the Celerbridge interface need JavaScript?

The cBridge web application requires JavaScript to run. With JavaScript disabled, the application displays an enable-JavaScript message instead of its interactive interface. This browser requirement concerns loading the transfer application; it does not describe whether a particular token route is available.

Can a VPN prevent cBridge from returning a transfer estimate?

The gateway can reject a transfer-estimation request made through a VPN with error code 1018. That error concerns access to the estimate request. It does not establish that every bridge operation, wallet, or connection has the same restriction, and it differs from insufficient liquidity or unsupported-token errors.

Is a same-chain request valid for cBridge's estimation API?

The estimation API supports cross-chain requests and may return an error when source and destination chain IDs match. Moving tokens between wallet addresses on one blockchain is a different operation. Changing a receiving address would not turn matching chain IDs into a cross-chain request.

What does error code 1016 mean for the opposite transfer direction?

Error code 1016 means the selected source-to-destination transfer direction is disabled. It does not establish whether the reverse direction is available. Error code 1009 separately describes transfers disabled in both directions.

How should an application encode the token amount in an estimate request?

The amt field is a string expressing the transfer amount in the token's smallest units. Convert the displayed token quantity using its configured decimal precision before building the request. The token symbol alone does not establish that precision. Incorrect scaling changes the amount the gateway is asked to estimate.

Why can MetaMask show no token after cBridge marks a transfer completed?

MetaMask can omit a received token from its asset list until the destination-chain token has been added to the wallet. The transfer history item includes a MetaMask icon for adding the token. A missing asset entry concerns wallet display and should be distinguished from an unfinished cross-chain transfer.

ยท updated