Skip to content

@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 ​

readonly amount: bigint

Defined in: @loktin/sdk/dist/target-savings/allowance.d.ts:26

The amount to approve, in base units.


expiresAt ​

readonly expiresAt: Date

Defined in: @loktin/sdk/dist/target-savings/allowance.d.ts:30

When expiryLedger is expected, at 5 seconds per ledger.


expiryLedger ​

readonly expiryLedger: number

Defined in: @loktin/sdk/dist/target-savings/allowance.d.ts:28

The ledger the approval lasts until.


periods ​

readonly periods: 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? ​

readonly optional renewBy?: 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.

Built on Stellar