Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IWithdrawGuard

Git Source

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

NameTypeDescription
accountIdbytes32Cross-margin account to check