getAutoSaveAction
Get the action to execute when the auto-save event is triggered. Note that this should be triggered by a relayer.
Usage
const autoSaveAction = getAutoSaveAction({
  token: '0x123...',
  amountReceived: 1000000,
})Parameters
token
The address of the received token.
amountReceived
- Type: number
The amount of the token received.
Returns
action
- Type: Action
The action to execute to trigger the auto-save.