From fa66b06911916682593cec131ed586516f9837cc Mon Sep 17 00:00:00 2001 From: barakman Date: Sat, 9 Jan 2021 17:31:50 +0200 Subject: [PATCH] Extend documentation. --- .../LiquidityProtectionStats.sol | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/solidity/contracts/liquidity-protection/LiquidityProtectionStats.sol b/solidity/contracts/liquidity-protection/LiquidityProtectionStats.sol index 750cfe544..ebf6fdd11 100644 --- a/solidity/contracts/liquidity-protection/LiquidityProtectionStats.sol +++ b/solidity/contracts/liquidity-protection/LiquidityProtectionStats.sol @@ -91,6 +91,12 @@ contract LiquidityProtectionStats is ILiquidityProtectionStats, AccessControl, U totalProviderAmount[_poolToken][_reserveToken][_provider] = totalProviderAmount[_poolToken][_reserveToken][_provider].sub(_reserveAmount); } + /** + * @dev adds a pool to the list of pools of a liquidity provider + * + * @param _provider liquidity provider address + * @param _poolToken pool token address + */ function addProviderPoolToken( address _provider, IDSToken _poolToken @@ -98,6 +104,12 @@ contract LiquidityProtectionStats is ILiquidityProtectionStats, AccessControl, U return _providerPoolTokens[_provider].add(address(_poolToken)); } + /** + * @dev removes a pool from the list of pools of a liquidity provider + * + * @param _provider liquidity provider address + * @param _poolToken pool token address + */ function removeProviderPoolToken( address _provider, IDSToken _poolToken @@ -105,6 +117,12 @@ contract LiquidityProtectionStats is ILiquidityProtectionStats, AccessControl, U return _providerPoolTokens[_provider].remove(address(_poolToken)); } + /** + * @dev returns the list of pools of a liquidity provider + * + * @param _provider liquidity provider address + * @return pool tokens + */ function providerPoolTokens( address _provider ) external override view returns (IDSToken[] memory) {