ICfdEngineAccountLens
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);