Skip to content

Conversation

@madisoncarter1234
Copy link

@madisoncarter1234 madisoncarter1234 commented Dec 4, 2025

Closes #418

Summary

Remove emissions functionality from the on-chain program and CLI:

  • Delete emissions instruction handlers (withdraw, settle, setup, update)
  • Remove emissions logic from balance operations (claim_emissions, settle_emissions_and_get_transfer_amount)
  • Rename emissions fields to deprecated (_emissions_*_deprecated) to preserve account layout
  • Remove emissions checks from close/soft_close balance operations
  • Remove emissions check from close_bank
  • Delete emissions test files and update test utilities
  • Remove CLI emissions commands (SetupEmissions, UpdateEmissions, SettleAllEmissions)
  • Clean up unused emissions utilities and imports from CLI

Remaining work (can be follow-up PRs)

  • Permissionless "clear emissions" instructions to zero out deprecated fields on existing accounts

Test plan

  • cargo check --no-default-features passes on main program
  • 73 unit tests pass
  • CLI compiles with no warnings
  • Integration tests (require CI)

  Remove emissions functionality from the on-chain program:

  - Delete emissions instruction handlers (withdraw, settle, setup, update)
  - Remove emissions logic from balance operations
  - Rename emissions fields to deprecated to preserve account layout
  - Remove emissions checks from close/soft_close balance operations
  - Delete emissions test files

  Remaining work (can be follow-up PRs):
  - CLI emissions functions need cleanup
  - Some test utilities still reference emissions
  - Permissionless clear emissions instructions to zero out deprecated fields
  and tests for emissions removal
  - Remove emissions module and related commands (SetupEmissions,
  UpdateEmissions, SettleAllEmissions)
  - Remove bank_setup_emissions and bank_update_emissions functions
  - Clean up unused emissions imports and utility functions
  - Remove emissions display from bank inspection output
  - Fix import formatting in bank.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sunset program emissions

1 participant