Skip to content

Benchmark FlowALP YieldVault rebalancing under simulated market crash #8513

@zhangchiqing

Description

@zhangchiqing

Problem Definition

The FlowALP and FlowYieldVault rebalancers use scheduled transactions to maintain position health.

During a rapid market movement (e.g., 30%+ price drop), many positions may breach their rebalance thresholds simultaneously. We need to validate:

  1. Per-transaction compute: Does a single worst-case rebalance cascade fit within Cadence's per-tx computation limit (9999 gas limit)?
  2. Scheduling throughput: When N positions trigger concurrently, can FlowTransactionScheduler queue and execute them without backpressure or dropped schedules?
  3. End-to-end latency: From price breach to position rebalanced—what's the p50/p99 latency under load?

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