← All articles

The Stake 2.0 Switch: How TRON Drew a Line Through Its Own Ledger

Part ofWho Controls a TRON Wallet? A Complete Guide to TRON Address Attribution

Key takeaways

  • Stake 2.0 arrived in stages. TIP-467 specified it (September 2022), the Aristotle client shipped it disabled (January 2023), and an on-chain vote, committee proposal 84, switched it on at 06:00 UTC on April 7, 2023.
  • The switch was a hard cutover. Once proposal 84 took effect, nodes rejected a new Stake 1.0 stake with the error "freeze v2 is open, old freeze is closed", so no one could create a new Stake 1.0 stake after that point.
  • Existing Stake 1.0 positions were grandfathered and stayed redeemable. The boundary therefore runs one way. No one could create a new 1.0 freeze after the date, but a legacy 1.0 position can still be unstaked long after it.
  • An investigator can date a stake from its contract type. FreezeBalanceContract is the old model and FreezeBalanceV2Contract is the new one, so each type belongs to one side of April 7, 2023.

Stake 2.0 drew a clean line through TRON’s staking records. Every TRX stake created before it used one contract type and one set of rules. New stakes after it use a different contract type, separate staking from delegation, and unstake on a different clock.

That line has a precise date and a public record behind it, and both matter for investigative work. A wallet’s resource history includes what it froze, what it delegated, and when it unstaked. An investigator can use the Stake 2.0 boundary to tell which model each of those records belongs to. The one-way cutover explains why some accounts have records under both. This article covers how the switch was specified and activated, and what it left on each side.

What Stake 1.0 locked together

The original staking model ran on a single contract, FreezeBalanceContract. Staking TRX and delegating the resulting resources were bound together. To change who received delegated Energy or Bandwidth, an account had to unstake and stake again.

Stake 1.0 also tied votes to the stake. Unstaking any frozen TRX under Stake 1.0 revoked all of an account’s votes at once, even when the account withdrew only part of its stake.

TIP-467, the proposal that became Stake 2.0, opens on this limit: “the stake and delegating operation are bound together at present.” The fix was to separate the two. That required new contract types, and the new contract types created the break in the record.

A staged activation

The process ran for about six months, from specification to cutover. Two refinements followed that summer.

SEP 28 2022 TIP-467 STAKE 2.0 SPECIFICATION · CARRIED TO FINAL JAN 2023 Aristotle client ships Stake 2.0 GREATVOYAGE-V4.7.0.1 · DISABLED BY DEFAULT APR 7 2023 Proposal 84 takes effect ALLOW_TVM_VOTE = 1 · UNFREEZE_DELAY_DAYS = 14 STAKE 1.0 STAKING CLOSED KEY JUL 14 2023 TIP-541 / TIP-542 take effect PROPOSAL 88 · CANCEL UNSTAKE · CUSTOM DELEGATION LOCK CODE FROM JANUARY · SWITCHED ON IN APRIL
The Stake 2.0 activation as a staged governance process. The code shipped months before the on-chain vote turned it on.

It began as a specification. TIP-467, “Stake 2.0 - A new TRON staking model,” was created on September 28, 2022, and its status is Final. A TIP is a design document. It defines what the network could do once the code ships and the network agrees to turn it on.

The code came in the java-tron client release GreatVoyage-v4.7.0.1 (Aristotle). TRON Core Devs announced Aristotle on January 16, 2023, and the v4.7.0.1 build was published on GitHub on January 20, 2023. The announcement states that shipping the code did not activate the feature: “after GreatVoyage-v4.7.0.1 (Aristotle) is deployed, it is disabled by default and can be enabled by initiating a proposal vote.” For nearly three months, nodes that had upgraded carried the Stake 2.0 code with the feature switched off.

The final step was the vote. A request on the TIP repository (tronprotocol/tips), issue #519 “Proposal: enable Stake 2.0”, asked the Super Representatives to set two network parameters. It has no TIP number of its own. UNFREEZE_DELAY_DAYS (No. 70) went to 14, which opened Stake 2.0 and fixed the new unstaking wait at fourteen days. ALLOW_TVM_VOTE (No. 59) went to 1, which let smart contracts vote. The request gave an estimated timeline: “the effective time of voting request: 7th April 2023.” Super Representatives approved both parameters on-chain as committee proposal 84. Its expiration time was 06:00 UTC on April 7, 2023. An approved proposal is settled in the first block at its expiration time, and the change applies to the blocks after it.

Two follow-on TIPs tuned the model. TIP-541, created on May 5, 2023, added the ability to cancel an in-progress unstake. TIP-542, created a week later, made the delegation lock period, previously a fixed three days, customizable. Those are the dates the TIPs were written. Both features shipped in the GreatVoyage-v4.7.2 (Periander) client on July 1, 2023. They took effect on July 14, 2023, when committee proposal 88 set ALLOW_CANCEL_ALL_UNFREEZE_V2 (No. 77) to 1 and MAX_DELEGATE_LOCK_PERIOD (No. 78) to 864,000 blocks.

The capability was in the code from January, but the chain moved to Stake 2.0 only when the governance parameter changed. That gap between shipping and switching is why the boundary is a single moment.

The hard cutover

The date holds as a hard boundary because of what happened to the old model when proposal 84 took effect. It closed to new stakes, with no gradual deprecation.

The issue #519 request states the cutover directly: “after the proposal takes effect, the Stake 1.0 staking API will return the error message ‘freeze v2 is open, old freeze is closed’.” java-tron’s validation code throws that error for a FreezeBalanceContract once parameter No. 70 is above zero. From that point, no one could create a new Stake 1.0 freeze on the network.

After the proposal took effect, the old staking path returned an error.

The cutover was not retroactive, so the boundary runs one way. Existing Stake 1.0 positions were grandfathered. The request says, “the resources already staked and obtained under Stake 1.0 and the votes on the chain are still valid and will not change, and the assets can be redeemed using the unstake method of Stake 1.0.” After April 7, 2023, no account could create a new Stake 1.0 freeze, but an account holding a legacy 1.0 position can still unstake it with the old method. A Stake 1.0 unstake dated 2024 would be a legacy position being closed, long after new ones became impossible.

APR 7, 2023 · PROPOSAL 84 New Stake 1.0 freeze FreezeBalanceContract KEY REJECTED “freeze v2 is open, old freeze is closed” Legacy 1.0 position STAKED BEFORE THE CUTOVER GRANDFATHERED Stake 1.0 unstake STILL ACCEPTED THE CONTRACT TYPE DATES THE STAKE
A one-directional boundary: no new 1.0 freezes after the cutover, but legacy positions can still be unstaked across it. A later Stake 1.0 unstake is no contradiction.

What changed underneath

The new model’s mechanics are the subject of the Stake 2.0 resource model article. How an investigator weighs a delegation as evidence is covered in fueling and fee provision. For the history, three structural changes matter. Each one introduced a contract type or behavior that appears only after the boundary.

Stake 2.0 separated staking from delegation. A user freezes once and can then delegate to multiple recipients independently, and can re-delegate without unstaking. This removed the limit TIP-467 was written to remove. Unstaking became partial and delayed. An account can run several unstaking operations at once. After the wait, which proposal 84 set at fourteen days (still 14 days on November 17, 2026), it calls a separate withdrawal to recover the TRX. Smart contracts also gained access to staking. TIP-467 added staking instructions to the TVM, and they opened with Stake 2.0 itself. Contract voting opened with the ALLOW_TVM_VOTE parameter in the same proposal.

An account’s own stakes, unstakes, withdrawals, and delegations use FreezeBalanceV2Contract, UnfreezeBalanceV2Contract, WithdrawExpireUnfreezeContract, and the delegate and undelegate contract types. A contract that stakes does so inside its own call, through the new TVM instructions. Those contract types did not exist in the protocol before the Aristotle client, and nodes rejected them on the network until April 7, 2023.

The boundary an investigator reads

An investigator can date a stake from its contract type, with no external data. Each type belongs to one side of the line.

FreezeBalanceContract is Stake 1.0. FreezeBalanceV2Contract and UnfreezeBalanceV2Contract are Stake 2.0. A new freeze using the old contract type cannot have been created after April 7, 2023, because the network stopped accepting them. A freeze using the V2 contract type cannot have been created before that date. An investigator reads the side of the boundary from the type and the time from the transaction’s own timestamp. The origin and architecture of TRON notes that an investigator reads pre- and post-upgrade staking transactions differently on-chain. This is the mechanism behind it.

Two cautions apply. The first is the asymmetry. A Stake 1.0 unstake after the cutover means a legacy position was closed. It does not mean someone created an old-style stake after the cutover. The second is the vote rule. A Stake 1.0 unstake revokes all of the account’s votes at once, while a Stake 2.0 unstake reduces votes only when the remaining stake no longer covers them. A wallet that staked before April 2023 and staked or unstaked again after it has records under two rule sets. From the contract types, an investigator can tell where one ends and the other begins.

Sources

Primary records used for facts in this article:

A note on sourcing: the activation date and time (April 7, 2023, 06:00 UTC) are the expiration time of committee proposal 84, read from the chain. The request in issue #519 gave the same date as an estimate.