@loktin/sdk / target-savings / ScheduledAllowance
Interface: ScheduledAllowance
Defined in: @loktin/sdk/dist/target-savings/allowance.d.ts:24
An allowance for the scheduled deposits of a goal.
Properties
amount
readonlyamount:bigint
Defined in: @loktin/sdk/dist/target-savings/allowance.d.ts:26
The amount to approve, in base units.
expiresAt
readonlyexpiresAt:Date
Defined in: @loktin/sdk/dist/target-savings/allowance.d.ts:30
When expiryLedger is expected, at 5 seconds per ledger.
expiryLedger
readonlyexpiryLedger:number
Defined in: @loktin/sdk/dist/target-savings/allowance.d.ts:28
The ledger the approval lasts until.
periods
readonlyperiods:bigint
Defined in: @loktin/sdk/dist/target-savings/allowance.d.ts:32
How many scheduled deposits the amount covers, before the cap at what the goal still needs.
renewBy?
readonlyoptionalrenewBy?:Date
Defined in: @loktin/sdk/dist/target-savings/allowance.d.ts:37
Set when the network caps the expiry before the deadline: renew the allowance by this time, 7 days before the expected expiry.