Invalidating Orders

Openflow supports the ability to invalidate orders on-chain using the SDK. One unique feature is that in additional to allowing users to invalidate a single order at a time, we also support the ability to invalidate all pending orders for an SDK instance.

Invalidate one order

bytes memory orderUid = sdk.swap(fromToken, toToken);
sdk.invalidateOrder(orderUid);

Invalidate all orders

sdk.invalidateAllOrders()

Last updated