View Facet
Accounts
balanceOf()
function balanceOf(address user) external view returns (uint256) {
return AccountStorage.layout().balances[user];
} partyAStats()
function partyAStats(
address partyA
)
external
view
returns (
bool,
uint256,
uint256,
uint256,
uint256,
uint256,
uint256,
uint256,
uint256,
uint256,
uint256,
uint256,
uint256,
uint256
)
{
AccountStorage.Layout storage accountLayout = AccountStorage.layout();
MAStorage.Layout storage maLayout = MAStorage.layout();
QuoteStorage.Layout storage quoteLayout = QuoteStorage.layout();
return (
maLayout.liquidationStatus[partyA],
accountLayout.allocatedBalances[partyA],
accountLayout.lockedBalances[partyA].cva,
accountLayout.lockedBalances[partyA].lf,
accountLayout.lockedBalances[partyA].partyAmm,
accountLayout.lockedBalances[partyA].partyBmm,
accountLayout.pendingLockedBalances[partyA].cva,
accountLayout.pendingLockedBalances[partyA].lf,
accountLayout.pendingLockedBalances[partyA].partyAmm,
accountLayout.pendingLockedBalances[partyA].partyBmm,
quoteLayout.partyAPositionsCount[partyA],
quoteLayout.partyAPendingQuotes[partyA].length,
accountLayout.partyANonces[partyA],
quoteLayout.quoteIdsOf[partyA].length
);
}balanceInfoOfPartyA()
balanceInfoOfPartyB()
allocatedBalanceOfPartyA()
allocatedBalanceOfPartyB()
allocatedBalanceOfPartyBs()
withdrawCooldownOf()
nonceOfPartyA()
nonceOfPartyB()
isSuspended()
getLiquidatedStateOfPartyA()
getSettlementStates()
Symbols
getSymbol()
getSymbols()
symbolsByQuoteId()
symbolNameByQuoteId()
symbolNameById()
Quote
getQuote()
getQuotesByParent()
quoteIdsOf()
getQuotes()
quotesLength()
partyAPositionsCount()
getPartyAOpenPositions()
getPartyBOpenPositions()
partyBPositionsCount()
getPartyAPendingQuotes()
getPartyBPendingQuotes()
Roles
hasRole()
getRoleHash()
MasterAgreement
getCollateral()
getFeeCollector()
isPartyALiquidated()
isPartyBLiquidated()
isPartyB()
pendingQuotesValidLength()
forceCloseGapRatio()
forceClosePricePenalty()
liquidatorShare()
liquidationTimeout()
partyBLiquidationTimestamp()
coolDownsOfMA()
Misc
getMuonConfig()
getMuonIds()
pauseState()
getPartyBEmergencyStatus()
getBalanceLimitPerUser()
verifyMuonTSSAndGateway()
getNextQuoteId()
getQuotesWithBitmap()
Last updated
