Skip to content

@loktin/sdk / target-savings / WithdrawalRule

Type Alias: WithdrawalRule ​

WithdrawalRule = { bps: number; kind: "penalty"; } | { kind: "lock"; }

Defined in: @loktin/sdk/dist/target-savings/types.d.ts:2

What happens when the owner withdraws before the target or deadline (P4).

Union Members ​

Type Literal ​

{ bps: number; kind: "penalty"; }

bps ​

readonly bps: number

The penalty in basis points, at most 1,000, paid to the integrator.

kind ​

readonly kind: "penalty"


Type Literal ​

{ kind: "lock"; }

kind ​

readonly kind: "lock"

No withdrawal until the target is reached or the deadline passes.

Built on Stellar