Skip to content

missing WadRayMath helpers as needed: dewadifyUp, rayToBpsDown and rayToBpsUp #640

@DhairyaSethi

Description

@DhairyaSethi

to support #460

  • WadRayMathExtended is missing the following function: dewadifyUp, rayToBpsDown and rayToBpsUp.
    • dewadifyUp can be implemented as a.wadMulUp(1), while rayToBpsUp can be implemented as a.rayMulUp(PercentageMathExtended.PERCENTAGE_FACTOR). rayToBpsDown can be implemented as a.rayMulDown(PercentageMathExtended.PERCENTAGE_FACTOR)
    • we should implement corresponding tests for the new functions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions