From eb9946f164cab416dc53e6696255f6434511ded4 Mon Sep 17 00:00:00 2001 From: Korrrba Date: Fri, 15 Dec 2023 16:36:13 +0100 Subject: [PATCH] feat: move updateChainLinkCollateralPrice to public functions Remove onlyAdmin modifier and move to public functions as discussed during the pull request review. --- .../src/dollar/facets/UbiquityPoolFacet.sol | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/contracts/src/dollar/facets/UbiquityPoolFacet.sol b/packages/contracts/src/dollar/facets/UbiquityPoolFacet.sol index 0fe16e53a..dff34bce9 100644 --- a/packages/contracts/src/dollar/facets/UbiquityPoolFacet.sol +++ b/packages/contracts/src/dollar/facets/UbiquityPoolFacet.sol @@ -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 //========================= @@ -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,