Skip to content
The Kagari
Developer

Movement Aptos Core Adds Failsafe for Staking Rewards Treasury

Apr 26, 2026 · 1 min read

A new pull request (#274) to the Movement Aptos Core repository introduces critical failsafe logic designed to protect network stability during staking reward distribution. The feature prevents epoch transitions from failing entirely when the Governed Gas Pool (GGP) has insufficient balance to cover calculated staking rewards.

The implementation modifies the `distribute_rewards` function in stake.move to check available GGP balance before attempting withdrawal. Rather than aborting the epoch when funds are depleted, the system now caps reward withdrawals at the actual available balance using `min(rewards_amount, available_balance)`. This ensures validators receive partial rewards or zero rewards during treasury depletion, rather than causing a network halt.

Comprehensive testing confirms the failsafe's effectiveness. A new smoke test (`test_staking_reward_failsafe_zero_ggp_balance`) validated the mechanism on a 4-validator swarm by enabling the treasury feature without pre-funding the GGP. The test confirmed that three consecutive epoch changes succeeded with a zero GGP balance, and all validators retained their stake without loss. This change represents a significant improvement to network resilience, ensuring continued operation during treasury constraints while maintaining validator security.

Source github.com
Share
The Kagari

Kagari is a multilingual media platform focused on next generation blockchains. By organizing official news, developer resources, and hackathon updates, it aims to become an information layer that helps both builders and users follow ecosystem developments more easily.

© 2026 The Kagari. All rights reserved.