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

HousePoolAccountingLib

Git Source

Functions

buildWithdrawalSnapshot

function buildWithdrawalSnapshot(
    ICfdEngine.HousePoolInputSnapshot memory engineSnapshot
) internal pure returns (WithdrawalSnapshot memory snapshot);

buildReconcileSnapshot

function buildReconcileSnapshot(
    ICfdEngine.HousePoolInputSnapshot memory engineSnapshot
) internal pure returns (ReconcileSnapshot memory snapshot);

getMarkFreshnessPolicy

function getMarkFreshnessPolicy(
    ICfdEngine.HousePoolInputSnapshot memory accountingSnapshot
) internal pure returns (MarkFreshnessPolicy memory policy);

isMarkFresh

function isMarkFresh(
    uint64 lastMarkTime,
    uint256 limit,
    uint256 currentTimestamp
) internal pure returns (bool);

Structs

WithdrawalSnapshot

struct WithdrawalSnapshot {
    uint256 physicalAssets;
    uint256 maxLiability;
    uint256 protocolFees;
    uint256 reserved;
    uint256 freeUsdc;
}

ReconcileSnapshot

struct ReconcileSnapshot {
    uint256 physicalAssets;
    uint256 protocolFees;
    uint256 deferredLiabilities;
    uint256 cashMinusFees;
    uint256 mtm;
    uint256 distributable;
}

MarkFreshnessPolicy

struct MarkFreshnessPolicy {
    bool required;
    uint256 maxStaleness;
}