Reference / @getenginex/sdk / isDepositRolloverOpen
isDepositRolloverOpen()
isDepositRolloverOpen(
status):boolean
Whether a deposit's rollover can still change: true for pending, credit_pending and any status the SDK does not know yet (a new gateway status is not treated as settled before the SDK learns it); false for the settled ones (not_required, completed, waived, exhausted, credit_failed, credit_reversed). Use it to split the per-deposit list into "in progress" and "history".
Parameters
status
The deposit's status, as WalletApi.getDepositRollover returns it.
Returns
boolean
Example
ts
const open = deposits.filter((d) => isDepositRolloverOpen(d.status))
const history = deposits.filter((d) => !isDepositRolloverOpen(d.status))Throws
Nothing.