Skip to content

Commit

Permalink
feat: move updateChainLinkCollateralPrice to public functions
Browse files Browse the repository at this point in the history
Remove onlyAdmin modifier and move to public functions as discussed
during the pull request review.
  • Loading branch information
gitcoindev committed Dec 15, 2023
1 parent 8c87bb2 commit eb9946f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/contracts/src/dollar/facets/UbiquityPoolFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ contract UbiquityPoolFacet is IUbiquityPool, Modifiers {
return LibUbiquityPool.collectRedemption(collateralIndex);
}

/// @inheritdoc IUbiquityPool
function updateChainLinkCollateralPrice(uint256 collateralIndex) external {
LibUbiquityPool.updateChainLinkCollateralPrice(collateralIndex);
}

//=========================
// AMO minters functions
//=========================
Expand Down Expand Up @@ -160,13 +165,6 @@ contract UbiquityPoolFacet is IUbiquityPool, Modifiers {
);
}

/// @inheritdoc IUbiquityPool
function updateChainLinkCollateralPrice(
uint256 collateralIndex
) external onlyAdmin {
LibUbiquityPool.updateChainLinkCollateralPrice(collateralIndex);
}

/// @inheritdoc IUbiquityPool
function setFees(
uint256 collateralIndex,
Expand Down

0 comments on commit eb9946f

Please sign in to comment.