Skip to content

Commit

Permalink
constructor documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzia551 committed Jan 19, 2024
1 parent aa4a18b commit 10cfee6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/contracts/PriceCapAdapterStable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,22 @@ contract PriceCapAdapterStable is IPriceCapAdapterStable {

int256 internal _priceCap;

/**
* @param aclManager ACL manager contract
* @param assetToUsdAggregator the address of (underlyingAsset / USD) price feed
* @param adapterDescription the capped (lstAsset / underlyingAsset) pair description
* @param priceCap the price cap
*/
constructor(
IACLManager aclManager,
IChainlinkAggregator baseToUsdAggregator,
IChainlinkAggregator assetToUsdAggregator,
string memory adapterDescription,
int256 priceCap
) {
ASSET_TO_USD_AGGREGATOR = baseToUsdAggregator;
ASSET_TO_USD_AGGREGATOR = assetToUsdAggregator;
ACL_MANAGER = aclManager;
description = adapterDescription;
decimals = baseToUsdAggregator.decimals();
decimals = assetToUsdAggregator.decimals();

_setPriceCap(priceCap);
}
Expand Down

0 comments on commit 10cfee6

Please sign in to comment.