Skip to content

calculateDepositNeeded

calculateDepositNeeded(params): OutputType

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

Orchestrate lockup + runway + debt + buffer to compute total deposit needed.

Returns the deposit together with the lockup and fee breakdowns it was computed from, so callers can reuse them without recomputing.

ParameterTypeDescription
paramsParamsTypecalculateDepositNeeded.ParamsType

OutputType

calculateDepositNeeded.OutputType