Recurrency (Optional)

The ability to run the same FCT many times

Typed Struct (EIP712)

Recurrency(uint16 max_repeats,uint32 chill_time,bool accumetable)

Params

NameType

max_repeats

uint16

chill_time

uint32

accumetable

bool

max_repeats

Number of time the same FCT can be executed

Can be used whenever multiple spending is required, e.g. for recurring payments, subscriptions, etc.

chill_time

The minimum time between repetitive executions

In seconds

accumetable

When set to "false", the chill_time is calculated from the last time the FCT was executed. When set to "true", chill time is calculated from the end timestamp of previous chill time, regardless if the FCT was executed or not.

For example: The accumetable is set to "true" and chill_time is set to "7 days". Now if three weeks has passed from last executing of the FCT, it is possible to execute the FCT three times immediately.

accumatable is useful for subscription when the payments interval are fixed and not influenced by the timing of the actual payments.

Last updated