Skip to content

Conversation

0xcacti
Copy link
Contributor

@0xcacti 0xcacti commented Oct 2, 2025

Description

Fixes injection logic to correctly cap alpha_in by alpha_emission not block_emission. To do this, it is required that
we change the conditional statement about when the cap on alpha_in is reached as this value would have been inappropriate after halvings.

Additionally, due to the above change we must change the subsidization logic. As the appropriate conditional statement now causes subsidization to happen asymmetrically (rather than for every subnet at once), we chose to socialize the subsidy to achieve the same effect.

Related Issue(s)

  • Closes #[issue number]

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please describe):

Breaking Change

If this PR introduces a breaking change, please provide a detailed description of the impact and the migration path for existing applications.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have run cargo fmt and cargo clippy to ensure my code is formatted and linted correctly
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Screenshots (if applicable)

Please include any relevant screenshots or GIFs that demonstrate the changes made.

Additional Notes

Please provide any additional information or context that may be helpful for reviewers.

@l0r1s l0r1s added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Oct 6, 2025
@0xcacti 0xcacti force-pushed the fix/alpha-emissions-socialized-subsidy branch from 2b4d5d4 to 68cff7b Compare October 7, 2025 03:50
@0xcacti 0xcacti force-pushed the fix/alpha-emissions-socialized-subsidy branch from 68cff7b to a5fc4ff Compare October 13, 2025 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-cargo-audit This PR fails cargo audit but needs to be merged anyway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants