Skip to content

fix Managed pools tokens weights #538

@mendesfabio

Description

@mendesfabio

The weight attribute is null for Managed pools tokens. After a quick investigation, I found that:

  • weights are never set at the creation because Managed has pre-minted BPT - this condition is always falsy
  • updatePoolWeights is not called on every Managed pool Swap event

Requirements

  • Add Managed to isVariableWeightPool function
  • Remove BPT from tokensList before comparing to weights

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