Skip to content

Return weighted price also when the price is just one. (i.e. tokens with low liquidity at start) #4

@ftso-eu

Description

@ftso-eu

Adding something like:

if (weightedPrices.length === 1) {
return weightedPrices[0].price;
}

before the calculation here:

works.

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