Skip to content

[Rewards] max limit parameter has no effect on fixed tax #214

Open
@dkijania

Description

@dkijania

When using max_limit parameter along with fixed tax, reward mechanism does not take max_limit parameter value into account.

Example:
Given stake pool registration:

StakePool { ..., 
     rewards: TaxType { 
          fixed: Value(100), 
          ratio: Ratio { numerator: 0, denominator: 1 }, 
          max_limit: Some(30) 
     }, ....
 }

Actual reward: 100
Expected reward: 30

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions