chainline-contracts / chainline.contracts / HubContract / res_getTotalOnHoldGasValue

res_getTotalOnHoldGasValue

private fun ReservationList.res_getTotalOnHoldGasValue(excludeRecipient: ScriptHash, nowTime: Int): Long (source)

Calculates the total value of GAS that a list of reserved funds is holding, considering expiry times and whether funds were already paid out to the intended recipient.

Parameters

nowTime - the current unix timestamp in seconds

assumeUnpaid - skips a call to storage, used in testing

Return
the total value of GAS that is reserved