Skip to content

Commit

Permalink
fix: add missing nonReentrant modifiers (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
rndquu authored Mar 20, 2024
1 parent f2abec3 commit 898d45c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/contracts/src/dollar/facets/UbiquityPoolFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ contract UbiquityPoolFacet is IUbiquityPool, Modifiers {
uint256 dollarAmount,
uint256 dollarOutMin,
uint256 maxCollateralIn
) external returns (uint256 totalDollarMint, uint256 collateralNeeded) {
)
external
nonReentrant
returns (uint256 totalDollarMint, uint256 collateralNeeded)
{
return
LibUbiquityPool.mintDollar(
collateralIndex,
Expand All @@ -106,7 +110,7 @@ contract UbiquityPoolFacet is IUbiquityPool, Modifiers {
uint256 collateralIndex,
uint256 dollarAmount,
uint256 collateralOutMin
) external returns (uint256 collateralOut) {
) external nonReentrant returns (uint256 collateralOut) {
return
LibUbiquityPool.redeemDollar(
collateralIndex,
Expand All @@ -118,7 +122,7 @@ contract UbiquityPoolFacet is IUbiquityPool, Modifiers {
/// @inheritdoc IUbiquityPool
function collectRedemption(
uint256 collateralIndex
) external returns (uint256 collateralAmount) {
) external nonReentrant returns (uint256 collateralAmount) {
return LibUbiquityPool.collectRedemption(collateralIndex);
}

Expand Down

0 comments on commit 898d45c

Please sign in to comment.