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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
params | ParamsType | calculateRunwayAmount.ParamsType |
Returns
Section titled “Returns”bigint
The runway amount in token base units