Ubeswap connects token swaps with liquidity provision on Celo
Updated on
Ubeswap is a mobile-first decentralized exchange and automated market maker for token swaps on Celo. Its liquidity pools hold the assets traders exchange, connecting swaps with liquidity provision. Providers can earn trading fees, and eligible liquidity can also participate in farming incentives. UBE has a separate role in protocol governance. Access starts with a compatible wallet, while the pool version determines how a liquidity position works and when it earns fees.
Celo Wallet Access and Swap Authorization
A swap requires assets available to the selected Celo account and liquidity along a supported trading path. The exchange connects to that account through a compatible wallet. A token balance on another network does not become a Celo balance merely because the wallet connects.
Account Control
The wallet-based model lets an account owner interact directly with exchange contracts while retaining control of the private keys. The wallet signs requested transactions. Connecting an account identifies it to the interface; permission to spend a particular token is a separate authorization.
Token Permissions
The documented approval-based swap flow separates the token approval from the exchange transaction. An approval grants a specified contract permission to spend the selected token within its allowance. The approval must succeed before that flow proceeds to the swap. Approval success establishes spending permission, while a completed swap establishes the exchange of assets. The token and spending contract therefore belong in the permission review.
Liquidity Pools in V2 and V3
The pool version determines the form of the provider's position and how its liquidity participates in trades. Separate V2 and V3 contract deployments support different liquidity models.
V2 Pool Shares
V2-style liquidity uses paired deposits and liquidity-provider tokens, usually called LP tokens. The paired-deposit model uses equal values of both assets at the pool price. Each asset's price determines the token count needed for that value. LP tokens represent a share of the pool, so providing liquidity creates exposure to the assets inside it.
V3 Price Ranges
Ubeswap V3 uses unmodified Uniswap V3 core contracts. Its concentrated-liquidity model lets providers allocate assets within a selected price interval. A position's range affects when its liquidity participates in trades and the mix of assets it holds. Choosing liquidity pools therefore involves both the assets and the position's price range.
A V3 position provides active liquidity within its selected price range and earns fees from swaps using that liquidity. Outside the range, its liquidity remains inactive until the pool price returns.
Trading Fees, Network Costs and Price Changes
Pool fees and network charges cover different parts of a swap. The selected pool determines the trading fee, while network charges pay for transaction execution. A separately submitted approval also consumes network resources. Neither cost establishes the amount of the output token a trade will receive. That amount also reflects the trade size and the liquidity available along its execution path.
Price impact is the price change caused by the trade itself. A larger trade relative to available liquidity can move the pool price further. Slippage describes the difference between expected execution and the actual outcome. These distinctions matter when comparing quotes: a favorable displayed exchange rate can accompany shallow liquidity. A quote applies to its stated input amount and the liquidity used to calculate it.
Farming Incentives for Eligible Liquidity
Farming adds a reward mechanism to qualifying liquidity positions. Trading fees come from exchange activity; farming rewards follow the incentive program applicable to the deposited liquidity.
LP Token Deposits
The LP-token farming model accepts the tokens representing liquidity in an eligible pool. Supplying liquidity and depositing its LP tokens into a farm are distinct actions. In the V2 LP-token farming model, trading fees continue to accrue in the underlying pool while deposited LP tokens participate in farming. The pool share remains exposure to the pooled assets, so receiving incentives does not remove price risk.
V3 Position Incentives
The V3 farm protocol targets V3 liquidity positions and bases reward distribution on their total value locked, or TVL. That is a different position model from depositing interchangeable V2 LP tokens. Eligibility and reward allocation belong to the relevant farm; an exchange-wide return cannot describe every position. Changes in token prices and incentive allocation can alter the value of rewards received.
UBE and Protocol Governance
UBE is the governance token used to vote on the protocol's direction. The governance architecture includes voting contracts and a timelock for administrative execution. Governance concerns protocol decisions, while a liquidity position represents assets committed to a pool. Holding the governance token and holding a pool share therefore create different rights and exposures.
The token economy introduced on March 16, 2024 specifies allocations totaling 250,000,000 UBE. That allocation includes portions assigned to holders, mining reserves, ecosystem development and other recipients. An allocation total is distinct from circulating supply or the amount available as farming rewards. Token price and reward value also remain separate quantities: a reward stated in UBE must be valued using the token price applicable to that calculation.
Ubestarter and Limit-Order Architecture
Ubestarter supports token-sale launches on Celo. Its launch settings include a funding currency, fundraising thresholds and sale dates. Liquidity options connect a sale with a configured allocation of raised funds to a trading pool. A token-sale purchase follows that sale's conditions, which differ from a swap against existing pool liquidity. Displayed tokenomics describe a project's proposed distribution and do not by themselves establish an enforced vesting schedule.
The separate limit-order architecture combines a signed order with an on-chain order book. Order placement in this design also carries a fee intended to discourage spam. The order signature authorizes execution under the specified terms, and the order book records information fulfillers can discover. Fulfillers have an incentive to execute when market conditions allow a profitable fill. Recording an order establishes its placement, not its completion; a price condition alone does not establish a completed trade.
A Swap Without a Liquidity Deposit
In this hypothetical case, a trader wants to exchange one Celo token for another and has a supported trading path with adequate liquidity. The swap can use liquidity other participants have already supplied; the trader does not need to create a liquidity position to use that pool.
The output token becomes the trader's holding, while the existing providers retain their pool positions and can earn fees from swaps using their liquidity. A farm is relevant only to a qualifying liquidity position. Choosing to supply liquidity would introduce pooled-asset exposure and, in V3, a price-range decision.
Questions and answers
Is Ubeswap Open Source?
Ubeswap publishes its protocol code publicly. Its contract documentation identifies separate exchange, governance and farming components. Public code makes inspection possible, although understanding one component does not establish the behavior of every deployed contract or interface.
Where Can I See Tokens After a Completed Swap?
Token balances can appear in a compatible wallet or a Celo block explorer. The relevant balance belongs to the account receiving the swap output. The exchange documentation distinguishes viewing account tokens from viewing liquidity positions or LP tokens deposited into farms.
How Can Legacy UBE Be Distinguished From the Replacement Token?
Legacy UBE and its replacement have distinct contract identities. The governance deployment includes a conversion contract for old UBE and new UBE. A matching ticker does not establish which token an account holds or confirm a completed conversion.
What Is the Process for Proposing a Default token-list Addition?
A default token-list addition begins with a pull request to the project's token-list repository and follow-up contact with its team. The proposal concerns inclusion in the default list. Trading also requires suitable liquidity; submitting a listing proposal does not supply that liquidity.
Must Every Swap Involve UBE?
A token swap does not inherently require UBE as either traded asset. The exchange supports Celo asset pairs with suitable liquidity. UBE's governance role is separate from the input and output assets selected for an ordinary pool swap.
Can the Exchange Be Accessed From a Desktop Browser?
Browser access is part of Ubeswap's stated scope. A desktop session needs a compatible wallet capable of interacting with the relevant Celo account.
Are Audited Contracts a Guarantee Against Losses?
An audit does not make a liquidity position loss-free. A review concerns the code within its scope, while token-price changes can alter a position's value. Pool contracts, farm contracts and governance contracts also have distinct responsibilities, so an audit claim needs to match the component involved.