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

IMarginAccount

Git Source

Public trader-facing margin account surface stripped of internal reservation and bucket plumbing.

Functions

depositMargin

function depositMargin(
    uint256 amount
) external;

withdrawMargin

function withdrawMargin(
    uint256 amount
) external;

getAccountEquityUsdc

function getAccountEquityUsdc(
    bytes32 accountId
) external view returns (uint256);

getFreeBuyingPowerUsdc

Returns settlement equity that is not currently locked into margin buckets.

This is a clearinghouse-local view and does not account for engine withdrawal guards.

function getFreeBuyingPowerUsdc(
    bytes32 accountId
) external view returns (uint256);