Skip to content

Conversation

gztensor
Copy link
Contributor

Description

No root sell when EMA prices sum up to lower than 1.0.

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):

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

@gztensor gztensor added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Oct 16, 2025
@gztensor gztensor marked this pull request as draft October 16, 2025 17:06
@gztensor gztensor marked this pull request as ready for review October 16, 2025 17:12
camfairchild
camfairchild previously approved these changes Oct 16, 2025
// Prices are low => we limit tao issued (buy alpha with it)
let tao_issued = TaoCurrency::from(((0.1 + 0.2) * emission as f64) as u64);
assert_abs_diff_eq!(
TotalIssuance::<Test>::get(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the issuance should increase by the full emission, no? We should still be emitting the same amount of TAO. It's just where it goes that is different.

@gztensor gztensor marked this pull request as draft October 16, 2025 20:04
@gztensor gztensor marked this pull request as ready for review October 17, 2025 20:48
camfairchild
camfairchild previously approved these changes Oct 17, 2025
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.

3 participants