Skip to content

Problem with receipt tokens, claiming token percentages incorrect.  #8

@mattsmithies

Description

@mattsmithies

Issue

Claiming a receipt will return the value of tokens with respect to the balance of the holder. If I mint 100 receipts, keep 5 in my inventory, the calculation for returning assets will be based on the 5. For instance "claiming 1 token will return 20% of all assets".

Diagnosis

Calculated based on the amount and the supply left in the pool. This will likely need revisiting.

Something along these lines.

parseInt(this.holding.amount) / parseInt(this.pool.amount)) / 100 * this.percentage

Resolution

Solved for prototype release v0.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions