Skip to content

Commit

Permalink
add function for getCollateralPoolBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Elsasser committed Sep 26, 2018
1 parent ee37768 commit d8268c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contracts/MarketCollateralPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ contract MarketCollateralPool is Ownable {
return tokenAddressToAccountBalance[collateralTokenAddress][userAddress];
}

/// @notice Allows for retrieval of the collateral pool balance that is locked for open positions for a give
/// market contract address.
/// the data as a tuple of (uint, int) that represents (price, qty)
/// @param marketContractAddress MARKET Contract address
function getCollateralPoolBalance(address marketContractAddress) external view returns (uint) {
return contractAddressToCollateralPoolBalance[marketContractAddress];
}

/*
// EXTERNAL METHODS
*/
Expand Down

0 comments on commit d8268c4

Please sign in to comment.