Basebridge

Basebridge was retired, so ERC-20 allowance checks must identify the replacement route’s spender

Basebridge was a web interface for deposits and withdrawals between Ethereum and Base. Base later deprecated it. On replacement ERC-20 routes, an allowance check reads how much a particular spender may still take from your wallet. Match the network, token contract, wallet address, and spender address; provider names alone do not identify that permission.

Updated:

Replacement bridge providers still need compatible tokens. ERC-20 approvals concern a specified spender on the source network, while support on Base depends on the selected route. An allowance reading describes spending permission at a particular state of the token contract.

The short version: A replacement bridge route can request a different spender, so an earlier ERC-20 approval may leave its transfer request unauthorized.

Replacement bridge access does not transfer token permissions

A replacement frontend may use a different spender, so an earlier approval may not cover the selected route. The relevant identity is the spender address in the token approval. Changing a website or provider does not move an allowance to another address. If two interfaces use the same token contract and spender on the same network, their branding does not distinguish the permission.

Base lists Superbridge among the replacement providers for Ethereum-Base transfers. That listing establishes a route option; it does not identify a wallet’s existing approvals. An interface’s retirement does not itself change a token contract’s allowance. Permissions that a wallet granted to earlier spenders therefore need their own inspection, separate from the replacement route’s approval request.


ERC-20 operations have different permission effects

An allowance reading and a balance reading can differ because they describe permission and holdings, respectively. Neither value replaces the other when interpreting a transfer request. Approval and transfer calls have different effects again: one changes a spending limit, and the other moves tokens if execution succeeds.

Operation Effect Limit or condition
allowance(owner, spender) Reads remaining spending permission. Applies to one owner-spender pair in this token contract.
balanceOf(owner) Reads the owner’s token holdings. A balance does not grant a spender permission.
Set a nonzero cap with approve Sets the desired replacement allowance. A successful call overwrites the current allowance.
Set a zero cap with approve Removes the specified spending permission on success. Other token-spender permissions fall outside this call.
transfer(to, value) Transfers the caller’s tokens to a recipient. Does not authorize a delegated spender.
transferFrom(from, to, value) Moves tokens through delegated authorization. Requires authorization to spend from the owner.
decimals() Reads precision for displaying token quantities. Optional metadata; implementations must handle its absence.

A useful allowance reading matches the token, owner, and spender

The allowance query runs against the ERC-20 token contract on the network where spending would occur. It receives the owner address and the spender address. The owner is the account whose tokens the spender can access. A provider label cannot replace either query argument. A matching wallet address on another chain still refers to a separate token ledger.

A returned value describes the selected pair at the state the query reads. A pending approval does not establish a changed limit, while a subsequent allowance reading can confirm the permission that a successful change recorded. Other approval or spending activity can make an earlier value stale, so the value relevant to a new request is the remaining allowance.

The read itself does not change authorization. Stopping after the query leaves the permission state unchanged, which provides a stopping point before authorizing an unfamiliar spender.

Diagram: A useful allowance reading matches the token, owner, and spender (Basebridge)

Open full-size image

A fresh approval replaces the spending cap

A successful ERC-20 approve call replaces the spender’s current allowance with the supplied value. The supplied value describes the new cap. Increasing permission therefore uses the intended replacement limit, rather than only the difference from the earlier reading. A replacement route’s requested token amount can help establish whether the remaining allowance covers that request. Adequate permission still cannot supply tokens that the owner does not hold. The token’s transfer rules and the bridge’s compatibility requirements remain separate.

An approval affects one spender’s permission in one token contract. Approving another spender creates a separate permission; it does not move the earlier cap or remove the earlier authorization.


Resetting an existing allowance has a timing limit

The ERC-20 specification recommends resetting an existing allowance to zero before setting another nonzero value for the same spender. That guidance addresses a timing risk: the spender can use the old allowance before the replacement executes and then spend against the new allowance. Standard approve accepts one spender and one value per call. Following the zero-first recommendation through that function uses a zero-setting call before the later nonzero call.

A zero-setting approval removes that allowance’s spending permission once the change takes effect. It cannot undo a token transfer that already succeeded. Until the zero-setting call executes, the earlier permission can remain usable.

The recommendation targets interface behavior. ERC-20 does not prescribe a mandatory zero-first rule inside the token contract, preserving compatibility with existing contracts.

Token units determine how the spending limit displays

Allowance values use the token’s raw integer units, so a human-readable spending limit requires the token’s decimal precision. The optional decimals method describes that conversion. Divide the raw amount by ten raised to the number of decimals to obtain the displayed token quantity. Approval inputs need the corresponding conversion back to raw units. ERC-20 does not guarantee that every token exposes decimals , so an integration must handle missing precision metadata. A raw integer and a displayed quantity need the same scale for comparison. Decimal precision changes representation, leaving the permission’s owner and spender unchanged.


Bridge support remains separate from spending permission

The standard bridge supports ETH and compatible ERC-20 transfers between Ethereum and Base through bridge contracts and cross-domain messengers. ERC-20 transfers need a supported token pairing. A positive allowance does not establish that an Ethereum token has the expected Base counterpart. The programmatic deposit guidance calls for checking token addresses and confirming a Base entry in the Superchain token list. That guidance restricts use of the linked sample to deposits and warns against modifying it for withdrawals.

The route’s accepted token contracts determine compatibility. A familiar ticker does not establish the supported pairing. Matching the spender address identifies the allowance to read, while matching the bridge’s token pair answers the transfer-support question.

Native ETH uses a different authorization model

Native ETH transfers through the standard bridge use its payable ETH functions, which accept ETH with the call. ERC-20 approval applies to token contracts and does not set a native ETH spending cap. Direct Coinbase withdrawals provide another access model when the account supports Base for the selected asset. Selecting Base sends that withdrawal through the account’s supported network option without an Ethereum-Base bridge transaction. An ERC-20 allowance adjustment changes one spender’s permission, while a standard-bridge native ETH transfer or Coinbase account withdrawal leaves that allowance unchanged.

Key questions about Basebridge

Which ERC-20 events distinguish a permission change from a token movement?

A successful approve call emits an Approval event, while a token transfer emits a Transfer event. Approval identifies the owner, spender, and allowance value; Transfer identifies the sending address, receiving address, and transferred value. Those fields describe different operations, so an Approval event alone does not establish that tokens moved.

How should software handle an ERC-20 call that returns false?

Software must handle a false return value instead of assuming that every ERC-20 call succeeds. An integration should not treat that response as confirmation that an approval or transfer succeeded. Reading the resulting allowance addresses the permission state directly.

Is a deadline part of a standard ERC-20 approval?

The standard approve function accepts a spender address and an allowance value, without a deadline parameter. The ERC-20 interface therefore provides no approval-expiry setting through that call. Any additional timing behavior needs its own token-specific implementation details; the standard signature alone does not establish an expiry for every permission.

Does a zero-value token transfer revoke an allowance?

A zero-value transfer does not perform the allowance reset that approve(spender, 0) specifies. ERC-20 treats zero-value transfers as normal transfers and requires their Transfer event. Revoking standard spending permission uses the approval operation on the relevant token contract, with the intended spender and a zero allowance value.

Who receives tokens when a spender calls transferFrom?

The transferFrom call names the recipient in its _to parameter. The authorized spender invokes the token contract to move the specified amount from _from to _to. The spender and recipient can be different addresses, so the address receiving the tokens does not identify which address holds spending permission.