Git Source
function buildWithdrawalSnapshot(
ICfdEngine.HousePoolInputSnapshot memory engineSnapshot
) internal pure returns (WithdrawalSnapshot memory snapshot);
function buildReconcileSnapshot(
ICfdEngine.HousePoolInputSnapshot memory engineSnapshot
) internal pure returns (ReconcileSnapshot memory snapshot);
function getMarkFreshnessPolicy(
ICfdEngine.HousePoolInputSnapshot memory accountingSnapshot
) internal pure returns (MarkFreshnessPolicy memory policy);
function isMarkFresh(
uint64 lastMarkTime,
uint256 limit,
uint256 currentTimestamp
) internal pure returns (bool);
struct WithdrawalSnapshot {
uint256 physicalAssets;
uint256 maxLiability;
uint256 protocolFees;
uint256 reserved;
uint256 freeUsdc;
}
struct ReconcileSnapshot {
uint256 physicalAssets;
uint256 protocolFees;
uint256 deferredLiabilities;
uint256 cashMinusFees;
uint256 mtm;
uint256 distributable;
}
struct MarkFreshnessPolicy {
bool required;
uint256 maxStaleness;
}