pub fn daily_withdrawal_limit(
reference_total_credits: Option<Credits>,
platform_version: &PlatformVersion,
) -> Result<Credits, ProtocolError>Expand description
Returns the maximum amount of credits Platform may pool into asset unlock transactions per 24 hours.
reference_total_credits is the base the limit is derived from: the current
total credits in Platform for version 0 (10% of it, bounded; required), ignored
by version 1 (a flat 2000 Dash), and the total credits Platform held a day ago
for version 2 (daily_withdrawal_limit_percent of it, never below one maximal
withdrawal nor above max_daily_withdrawal_amount; the flat limit of version 1
while that day-old total is not known yet).