Skip to article Blueshift

Blueshift combines cross-chain swaps with portfolio-based liquidity

- updated

Blueshift is a portfolio-based decentralized exchange that combines token trading, cross-chain swaps and shared liquidity portfolios. Users can deposit one supported token or several tokens to acquire a portfolio share. That share follows the portfolio's changing asset mix, so withdrawal choices depend on its balance. Farming, BLUES staking and analytics add separate functions around the exchange.

A swap returns the selected output asset to a trader. A liquidity deposit gives its provider exposure to a basket of assets that supports trading.

Bottom line: A single-token liquidity deposit buys portfolio exposure, so the portfolio's balance can affect which tokens a withdrawal returns.

Trading, deposits and portfolio withdrawals

The exchange supports several ways to interact with its token reserves, each with a different purpose. Trading changes the assets in a wallet. Supplying liquidity creates a stake in the portfolio that serves trades, while withdrawing redeems that stake. Single-token and multiple-token deposits are funding choices within the same portfolio model.

Trading, deposits and portfolio withdrawals at a glance
Operation Asset movement or portfolio claim
Local token swap The trader receives the output token on the application network.
Cross-chain token swap The trader receives output through cross-chain settlement on the destination network.
Single-token liquidity deposit The provider contributes one accepted token and receives a portfolio share.
Multiple-token liquidity deposit The provider contributes a combination of accepted tokens for a portfolio share.
Liquidity withdrawal The provider redeems liquidity provider (LP) tokens for assets from that portfolio.

Local swaps and cross-chain settlement

A local swap uses only local portfolios and executes on the current application network. A route containing a cross-chain portfolio uses the cross-chain settlement path, including when the selected assets belong to the same supported network. The route's components determine the settlement method. The cross-chain design uses BluesChain as a ledger, with liquidity locked and released on the respective chains. Its bridgeless description concerns that settlement mechanism, which avoids using wrapped or synthetic assets for the cross-chain exchange. The interface has also included a separate Bridge function.

Graphic: Local swaps and cross-chain settlement (Blueshift)

Open full-size image

Cross-chain execution includes source-network processing, protocol processing and delivery to the destination wallet. A source-network transaction alone doesn't establish that the destination wallet has received the output.

What does a portfolio share represent?

A portfolio share represents exposure to the portfolio's collection of assets, including assets that the provider didn't originally deposit. LP tokens represent the holder's share of the whole liquidity portfolio. Exchanges within that portfolio change its actual holdings over time.

The automated market maker, or AMM, calculates exchange prices and manages liquidity flows. It creates temporary virtual token pairs from the portfolio's reserves for swaps. After a swap, the virtual pair disappears and the internal price oracle records the resulting price.

Why can withdrawal tokens differ from deposited tokens?

Withdrawal tokens can differ because current portfolio balances affect which assets the portfolio can release without adverse price impact. Depositing an asset buys exposure to a changing basket. It doesn't reserve the original tokens for the provider's later withdrawal.

Token choices around the target balance

The withdrawal interface can distribute an amount across selected portfolio tokens. Its balancing logic considers their current shares against their targets.

Withdrawing an underweight token

A token below its target share is underweight, while a token above its target is in surplus. Removing more of the underweight asset can create price impact. Selecting the original deposit token may therefore produce a less favorable withdrawal quote, even though that token remains a member of the portfolio.

Visual summary: Blueshift - Withdrawing an underweight token

Open full-size image

Receiving another portfolio token

The single-sided withdrawal interface can offer another portfolio token to avoid adverse price impact. That alternative addresses the withdrawal's effect on portfolio balance. It doesn't preserve the original deposit's dollar value over time. Asset prices and the basket's composition can change while the liquidity position remains open.


Single-sided deposits and price impact

Single-sided liquidity lets a provider fund a portfolio with one accepted token. The deposit still creates exposure to the portfolio's assets. Its token weights matter at entry as well as exit: adding an amount that pushes an asset above its target share can cause price impact.

With several selected deposit tokens, the allocation algorithm considers wallet balances and portfolio shares. Its distribution aims to reduce that impact. A single-token deposit changes the funding requirement; it doesn't remove balance-sensitive pricing.


BLUES rewards and staking conditions

BLUES is the protocol's token, used for liquidity incentives and as an asset within portfolios. Its governance design concerns votes over portfolio token membership and weights.

LP farming

Farms accept LP tokens and distribute BLUES rewards under their applicable terms. The underlying portfolio supplies the trading exposure; the farm adds a reward mechanism. Swap-fee earnings and farming incentives consequently have different origins. LP token holders earn fees from trading in their portfolio, while farming rewards come from the incentive program.

BLUES yield pools

The December 15, 2023 yield-pool design distinguished Auto HODL from Manual staking. Auto HODL compounded BLUES rewards and included locked rewards that early unstaking could forfeit. Remaining participants could benefit from forfeited rewards, with the larger locked-reward payout depending on the applicable total value locked, or TVL, goals.

The Manual pool accumulated rewards separately and required manual harvesting, which incurred a transaction fee. It didn't impose the Auto HODL early-withdrawal reward loss. Auto HODL's locked rewards weren't immediately available to harvest.


Ecosystem indexes with different constituents

Ecosystem indexes organize portfolio exposure around groups of blockchain projects. Blueshift's March 21, 2024 launch announcement named TangleSwap, NEWM and DACAU of the Djed Alliance as Cardano Startup Index constituents. The separate Cardano Index focused on established projects. Their different constituents created different asset exposure. The index structure connects token discovery, trading and liquidity provision around a shared basket. A project's inclusion identifies a constituent of that portfolio; it doesn't promise that every token from the same ecosystem qualifies. The relevant asset list belongs to the chosen portfolio, and its composition matters more to the position than the broad ecosystem label.


Analytics and the execution quote

The analytics dashboard organizes token prices, portfolio TVL and trading-volume information. Its overview distinguishes TVL without staking from a 24-hour volume measure. TVL describes the value held in liquidity, while volume describes trading activity over a period. Neither measure is an individual provider's return.

Illustration: Blueshift - Analytics and the execution quote
Analytics and the execution quote, illustrated.

Open full-size image

A dashboard price and a swap quote also answer different questions. Price impact reflects how the proposed trade changes its execution price relative to the current price. A price difference between markets therefore doesn't establish an executable profit after trading costs and any required asset movement.


Network retirement and contract scope

Network support has changed during the protocol's history. The December 25, 2023 sunsetting announcement marked the Milkomeda Algorand A1 integration for retirement. It scheduled the rollup's shutdown for the end of May 2024 and warned that unharvestable Auto HODL rewards on A1 would be lost with the closure.

Older A1 access instructions consequently shouldn't serve as present-day transfer directions. The announcement concerned that integration and didn't announce the closure of the entire exchange.

CertiK audited the BLUES token and protocol smart contracts, with the listed protocol review revised on May 2, 2022. That audit concerns the reviewed code; it doesn't fix portfolio asset prices or establish coverage of every later deployment. Choose a supported network before deciding whether its portfolio assets and withdrawal conditions fit the position you want.

Useful questions about Blueshift

Does holding BLUES give me a share of every liquidity portfolio?

Holding BLUES alone doesn't give you an LP share in every portfolio. A portfolio's liquidity provider (LP) tokens represent that specific liquidity position. BLUES has a separate incentive role and can itself appear among portfolio assets. Its governance role concerns portfolio decisions, which differs from acquiring a portfolio share.

Why does a selected deposit token sometimes show a zero allocation?

A zero allocation can reflect the deposit algorithm's attempt to reduce price impact. The documented multiple-token interface considers wallet balances and portfolio shares when dividing the deposit. Another selected token may suit that balance better. Reordering tokens won't necessarily change the allocation when the lowest-impact distribution stays the same.

What does the 'no fee limit' sorting option mean?

The June 20, 2023 single-sided interface used 'no fee limit' to sort portfolio choices by whether tokens would incur deposit or withdrawal price impact. That label concerns portfolio balancing. Price impact is separate from network transaction charges and fees on other operations.

Can a swap pass through several tokens?

The documented router supports multihop swaps through routes containing more than two tokens. Swaps can connect tokens within one portfolio or across different portfolios. The swap settings include an option to disable multihop routing.

How does local-swap priority affect route selection?

Local-swap priority favors routes without cross-chain portfolios when possible, even if another route has lower price impact. Turning it off removes that preference. The available reserves still influence the quote, so changing the setting doesn't guarantee a better output amount for every trade.

When must LP tokens leave a farm before a liquidity withdrawal?

LP tokens staked in a farm must be unstaked in the required amount before the underlying portfolio liquidity can be withdrawn. Unstaking returns the LP tokens; redeeming them removes liquidity from the portfolio. The withdrawal mechanism burns the redeemed LP tokens in exchange for the selected portfolio assets.

Is approving a token the same as providing liquidity?

A token approval grants the smart contract permission to access that token; it doesn't by itself create a portfolio share. The documented deposit interface requests this permission when needed and separately asks for confirmation of the liquidity transaction. Receipt of the portfolio's LP tokens represents the resulting liquidity share.