confirmationTargetFor function

int confirmationTargetFor(
  1. BtcFeePriority priority
)

HIGH maps to a 2-block confirmation target, MEDIUM to 6, LOW to 24 — the only part of fee estimation that stays here, because the enum is a Dart enum and the IR has none. Everything the target is then USED for lives in BtcFeePlan (generated from packages/spec/src/btc.fee-rules.ts).

Implementation

int confirmationTargetFor(BtcFeePriority priority) => switch (priority) {
      BtcFeePriority.high => 2,
      BtcFeePriority.medium => 6,
      BtcFeePriority.low => 24,
    };