IWithdrawGuard
Pre-withdrawal hook that prevents clearinghouse withdrawals while positions are open.
Functions
checkWithdraw
Reverts if the account is not allowed to withdraw from the clearinghouse. Implementations may inspect current clearinghouse balances after tentative debit.
function checkWithdraw(
bytes32 accountId
) external view;
Parameters
| Name | Type | Description |
|---|---|---|
accountId | bytes32 | Cross-margin account to check |