Skip to content

calculateRunwayAmount

calculateRunwayAmount(params): bigint

Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:22

Calculate extra funds to ensure the account stays funded beyond the lockup period.

Uses the net rate (current + delta from this upload) so the runway covers the full drain rate after the new rail is created.

ParameterTypeDescription
paramsParamsTypecalculateRunwayAmount.ParamsType

bigint

The runway amount in token base units