Skip to content

wideRatio function #143

@joe-p

Description

@joe-p

Problem

wideRatio is a commonly used function that was available in PyTeal and TEALScript. It would be useful to have it available in PuyaTS as well.

Solution

Proposal

Implement wideRatio in Puya and make it available in PuyaTS. TEALScript implementation can be seen here: https://github.com/algorandfoundation/tealscript/blob/7b46026f5b0de49e3498e4655133655fea79a4b5/src/lib/compiler.ts?plain=1#L1963-L1982

Pros and Cons

Allows developers to use this commonly used and often critical function without having to re-implement it themselves

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions