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

ICfdEngineAccountLens

Git Source

Functions

getAccountCollateralView

Legacy detailed account lens kept for internal tooling, tests, and migration. Product-facing consumers should prefer IPerpsTraderViews via PerpsPublicLens.

function getAccountCollateralView(
    bytes32 accountId
) external view returns (CfdEngine.AccountCollateralView memory viewData);

getWithdrawableUsdc

function getWithdrawableUsdc(
    bytes32 accountId
) external view returns (uint256 withdrawableUsdc);

getAccountLedgerView

function getAccountLedgerView(
    bytes32 accountId
) external view returns (AccountLensViewTypes.AccountLedgerView memory viewData);

getAccountLedgerSnapshot

function getAccountLedgerSnapshot(
    bytes32 accountId
) external view returns (AccountLensViewTypes.AccountLedgerSnapshot memory snapshot);