calculateTimeToEmpty

fun calculateTimeToEmpty(nightValue: BigInteger, currentDust: BigInteger = calculateMaxCapacity(nightValue)): Long

Calculates the time to decay to zero for a given Night value.

Formula:

time_to_empty = current_dust / decay_rate

Return

Time to decay to zero in seconds

Parameters

nightValue

Value of the Night UTXO in Specks

currentDust

Current dust value (default: max capacity)