Git Source
function buildFundingSnapshot(
int256 bullFunding,
int256 bearFunding,
uint256 totalBullMargin,
uint256 totalBearMargin
) internal pure returns (FundingSnapshot memory snapshot);
function getWithdrawalReservedUsdc(
uint256 maxLiability,
uint256 protocolFees,
uint256 fundingLiability
) internal pure returns (uint256 reservedUsdc);
struct FundingSnapshot {
int256 bullFunding;
int256 bearFunding;
int256 solvencyFunding;
uint256 withdrawalFundingLiability;
}
struct SolvencySnapshot {
uint256 physicalAssets;
uint256 protocolFees;
uint256 netPhysicalAssets;
uint256 maxLiability;
int256 solvencyFunding;
uint256 effectiveSolvencyAssets;
}