calculateDepositNeeded
calculateDepositNeeded(
params):bigint
Defined in: packages/synapse-core/src/warm-storage/calculate-deposit-needed.ts:108
Orchestrate lockup + runway + debt + buffer to compute total deposit needed.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
params | ParamsType | calculateDepositNeeded.ParamsType |
Returns
Section titled “Returns”bigint
The total deposit needed in token base units (0n if already sufficient)