Skip to content

omnipool initialize limit #1382

@enthusiastmartin

Description

@enthusiastmartin

with recent introduction of slip fee based, we need to clear up a storage in on_finalize

for this purpose, we need to allocate a weight for this operation in on_initialize

Currently, there is iteration of all assets in omnipool - and it is not bounded.

with current state of omnipool - this is no issue but in theory, although very unrealistic, it could take a lot of block weight.

Introduce a max limit or propose another solution.

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