Skip to main content

Function: pendingSwapFateOfOutcome()

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / pendingSwapFateOfOutcome

Function: pendingSwapFateOfOutcome()

pendingSwapFateOfOutcome(outcome): "forget" | "forget_quietly" | "keep"

Defined in: packages/gswap-sdk/dist/index.d.ts:3568

pendingSwapFateFor from an outcome the app already holds (for example the classifyFailure(error).outcome it stored on its own failure wrapper). An outcome this SDK version does not know (a newer SDK at run time) is keep: never forget what may have happened.

Parameters​

outcome​

"rejected" | "unknown" | "not_queued" | "not_sent" | "invalid_input" | "transient"

Returns​

"forget" | "forget_quietly" | "keep"