Neotokyo

Neotokyo BYTES 1.0 to 2.0 Upgrade, Rewards and Token Controls

Neotokyo BYTES is an ERC-20 token whose February 14, 2023 BYTES2 design burns legacy tokens and mints replacements one-for-one to the calling address. The conversion changes the token contract that records those holdings. It does not create a staking position or set a reward rate.

Burning Legacy Tokens Creates a Replacement Balance

The upgrade burns the selected BYTES 1.0 amount and mints an equal BYTES 2.0 amount to its caller.

The replacement is an ERC-20 token named BYTES. Neotokyo's BYTES 2.0 plan proposed token payments for community apps and tools, alongside existing minting uses. Sharing that name does not combine the balances maintained by the original and replacement contracts.

The caller chooses the amount passed to upgradeBytes, which checks the input against the caller's legacy balance. A partial conversion leaves the unconverted units in the legacy balance. It does not require the entire holding as its input.

The receiving address follows directly from the call. Both the legacy burn and replacement mint use msg.sender, meaning the address making the contract call. The function accepts no separate recipient argument.


The Caller's Balance and the Completed Upgrade Record

The calling address must hold at least the requested BYTES 1.0 amount before the upgrade function can perform the conversion. The balance comes from BYTES1, the original token address fixed when the replacement contract was constructed. Neither a BYTES 2.0 balance nor legacy tokens held elsewhere contribute to that check. The legacy contract must also list BYTES2 as an authorized burn caller.

Graphic: The Caller's Balance and the Completed Upgrade Record (Neotokyo BYTES)

View full-size image

A successful transaction through the intended BYTES2 contract records BytesUpgraded with the caller and conversion amount after the burn and mint. The separate token balances show which version the address holds. Signing a request or obtaining a transaction hash alone does not establish this completed state. Later transfers can change balances again, so the event in a successful transaction receipt identifies that conversion more precisely than a later wallet total.

Fixed Token Parameters and Changeable Addresses

The BYTES2 contract fixes the migration source and caller destination, while authorized administrators retain control over certain supporting addresses. These parameters describe the implementation dated February 14, 2023.

Parameter Value in the 2023 Design Control Over the Value
Token name and symbol BYTES and BYTES The ERC-20 declaration fixes both.
Accepted legacy token BYTES1 contract address The constructor sets an immutable address.
Upgrade quantity Equal amounts burned and minted The caller supplies an amount within its legacy balance.
Replacement recipient Calling address The function has no separate recipient argument.
Reward calculation source STAKER contract address The owner or a caller with a valid ADMIN permit under UNIVERSAL can replace it.
Treasury recipient TREASURY address The owner or a caller with a valid ADMIN permit under UNIVERSAL can replace it.

Changing STAKER replaces the contract queried for reward calculations, while changing TREASURY redirects future treasury minting. Those controls do not override the upgrade function's caller-only recipient.


Does Upgrading BYTES Start Staking Rewards?

An upgrade changes the token balance without creating a Citizen or liquidity-provider stake in the 2023 design.

Tokens in the Holder's Wallet

The upgrade function contains the legacy burn and replacement mint, followed by its event, without calling the staking function. Holding replacement tokens therefore does not create the escrowed asset position used to calculate rewards.

Rewards From Eligible Deposits

The March 2023 staking design allocates separate emission pools to S1 Citizens, S2 Citizens and the configured liquidity-provider token. A position competes for a share of its pool through points. Administrators configure the pool's emission windows, so accrual depends on the applicable window and competing point totals. An S1 pool share does not specify the rate for an S2 or LP deposit.


Claimed Rewards and Deposited BYTES Follow Different Rules

Accrued BYTES rewards can be claimed separately from withdrawing a Citizen and its deposited tokens in the 2023 design. The reward entry point getReward asks the configured staker to calculate the recipient's reward. The replacement contract mints positive reward amounts to the recipient and positive treasury allocations to TREASURY. That allocation concerns emissions, not a percentage levied on every token held in the recipient's wallet.

BYTES 2.0 deposits can increase the reward points of an S1 or S2 Citizen NFT that you have already staked. The 2023 staker rejects a deposit if it would take the Citizen's total deposited BYTES above its configured cap: VAULT_CAP for an S1 with an associated Vault, or NO_VAULT_CAP for an S1 without a Vault and all S2 Citizens. Deposited BYTES remain in escrow until that Citizen's withdrawal returns them. The selected timelock controls asset withdrawal, while reward claiming leaves the deposited amount in place. The 2023 staker rejects a request to withdraw those BYTES independently.

Authorized Burns and Their Separate Treasury Allocation

The 2023 BYTES2 implementation treats a role-authorized burn differently from a legacy-token upgrade. The owner or a caller with a valid BURN permit under UNIVERSAL can invoke burn for a specified holder address. This permission model allows an authorized caller to burn tokens from that address without an ERC-20 allowance. The migration entry point instead invokes the original token's burn routine for the upgrade caller.

The BYTES2 burn function remints two thirds of an authorized burn amount to TREASURY, subject to integer rounding. The calculation applies to the amount passed into that burn operation. It does not apply to an entire wallet balance by default. The one-for-one upgrade does not deduct this treasury fraction from the replacement amount.


Balance Errors and Transaction Outcomes

A failed legacy-balance check stops the 2023 upgrade before it attempts either the burn or replacement mint.

A Request Above the Available Legacy Balance

The error DoNotHaveEnoughOldBytes reports the requested amount when the source balance falls short. The relevant balance is BYTES 1.0 at the calling address. Rechecking that balance and reducing the requested amount can address this particular mismatch. A smaller request resolves only this balance condition; it does not establish that every remaining contract call will succeed.

A Request Without a Successful Receipt

A transaction hash identifies a transaction without proving successful execution. A pending transaction has no final execution outcome, while a reverted transaction has failed and rolls back its token changes. A mined transaction's receipt reports success or failure; pending transactions have no receipt yet. After a successful conversion, another upgrade must draw on remaining BYTES 1.0 units.

Neotokyo BYTES: common questions

Does the 2023 Upgrade Function Set a Migration Deadline?

The February 14, 2023 upgrade function applies no date cutoff within its own logic. Its explicit check concerns whether the caller holds enough BYTES 1.0 for the requested amount. This historical contract design does not establish the present availability of a migration interface or a current migration deadline.

Will Existing Token Allowances Authorize Spending BYTES 2.0?

An ERC-20 allowance for BYTES 1.0 does not automatically authorize spending BYTES 2.0. Allowances belong to their respective token contracts, and the 2023 upgrade function does not copy them into the replacement contract. This distinction concerns ordinary ERC-20 spending permissions; role-authorized burns follow the separate permission model built into BYTES2.

Is a Reverse Conversion Included in the BYTES2 Contract?

The February 14, 2023 BYTES2 contract includes no reverse conversion entry point. Its upgrade function burns the requested legacy amount and mints the replacement amount. That version provides no corresponding function that restores those burned legacy tokens in exchange for BYTES 2.0.

Does an S1 Citizen Transfer Automatically Claim BYTES 2.0 Rewards?

The 2023 BYTES2 replacement leaves the S1 Citizen transfer hook updateReward as a no-op. That hook performs no reward calculation or payment. When configured to use BYTES2, the legacy S1 Citizen contract calls that hook before transferring an NFT, preserving interface compatibility while the replacement reward flow uses getReward. Transferring a Citizen does not itself execute that claim entry point.

Who Receives Rewards When Someone Else Calls getReward?

The 2023 getReward function mints a positive accrued reward to the address supplied as its recipient. Calling it with another address does not redirect that address's reward to the caller. Any configured treasury share goes to TREASURY through a separate mint. The recipient's staking state determines the reward amount.

Last updated ยท