Skip to content

Incorrect use of tao_in_ratio instead of default_tao_in_i for "price < TAO emissions" #1909

@mcjkula

Description

@mcjkula

Describe the bug

The "price < TAO emissions" mechanism uses tao_in_ratio instead of default_tao_in_i, causing improper triggering post-halving.

Example:

  • TAO emissions: 0.0589 (post-halving, 0.5 block emission)
  • ALPHA price: 0.08 TAO

This clearly shows that the ALPHA price is higher than the TAO emissions (mechanism should not trigger), but when looking at the TAO emission ratio (0.0589/0.5) being 0.1178. The price is below it so the mechanism would get triggered.

  • Expected ALPHA injected: 0.73625 (0.0589 / 0.08)
  • Actual ALPHA injected: 1
  • Resulting TAO per ALPHA: 0.0589

Instead of being 0.08 TAO per ALPHA (0.0589 / 0.73625) to keep the price stable, it would become 0.0589 TAO per ALPHA (0.0589 / 1) creating downward pressure.

To Reproduce

N/A

Expected behavior

The mechanism should use default_tao_in_i instead of tao_in_ratio, representing "price < TAO emissions" not "price < TAO emissions ratio (%)".

Screenshots

N/A

Environment

N/A

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions