Skip to content

Commit

Permalink
fix: only timelock can invoke reduce reserves
Browse files Browse the repository at this point in the history
  • Loading branch information
web3rover committed Aug 7, 2023
1 parent 8e63e9a commit 74d03cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/Admin/VBNBAdmin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ contract VBNBAdmin is ReentrancyGuardUpgradeable, AccessControlledV8, VBNBAdminS
* @param reduceAmount amount of reserves to reduce
*/
function reduceReserves(uint reduceAmount) external nonReentrant {
_checkAccessAllowed("reduceReserves(uint256)");

require(vBNB._reduceReserves(reduceAmount) == 0, "reduceReserves failed");
_wrapBNB();

Expand Down

0 comments on commit 74d03cc

Please sign in to comment.