Skip to content

Reference / @getenginex/sdk / isRunnableWithdrawalPolicy

isRunnableWithdrawalPolicy() ​

isRunnableWithdrawalPolicy(limits): boolean

Whether the payment service can run the operator's withdrawal policy. Automatic approval with a zero daily count or a zero daily amount (dailyCount.limit or dailyAmount.limit equal to 0) is a setup the payment service refuses to save; when it exists anyway, it blocks the withdrawal instead of sending it to manual review. The screen cannot describe that policy to the player, so show no limits notice when this is false. Without automatic approval (autoApproval: false, every withdrawal reviewed by hand) it is always true.

Parameters ​

limits ​

WithdrawalLimits

What WithdrawalsApi.getLimits returned.

Returns ​

boolean

Example ​

ts
const limits = await enginex.withdrawals.getLimits()
if (isRunnableWithdrawalPolicy(limits)) showLimitsNotice(limits)

Throws ​

Nothing.