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

WithdrawalAccountingLib

Git Source

Functions

buildWithdrawalState

function buildWithdrawalState(
    uint256 physicalAssetsUsdc,
    uint256 maxLiabilityUsdc,
    uint256 protocolFeesUsdc,
    uint256 fundingLiabilityUsdc,
    uint256 deferredTraderPayoutUsdc,
    uint256 deferredClearerBountyUsdc
) internal pure returns (WithdrawalState memory state);

Structs

WithdrawalState

struct WithdrawalState {
    uint256 physicalAssetsUsdc;
    uint256 maxLiabilityUsdc;
    uint256 protocolFeesUsdc;
    uint256 fundingLiabilityUsdc;
    uint256 deferredTraderPayoutUsdc;
    uint256 deferredClearerBountyUsdc;
    uint256 reservedUsdc;
    uint256 freeUsdc;
}