Skip to content

Commit

Permalink
fix: issue-76
Browse files Browse the repository at this point in the history
  • Loading branch information
fann95 committed Oct 30, 2023
1 parent 55a5e8a commit 955d742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/LiquidityBorrowingManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ contract LiquidityBorrowingManager is
* @param borrowingKey The unique key associated with the borrowing to be taken over
* @param collateralAmt The amount of collateral to be provided by the new borrower
*/
function takeOverDebt(bytes32 borrowingKey, uint256 collateralAmt) external {
function takeOverDebt(bytes32 borrowingKey, uint256 collateralAmt) external nonReentrant {
BorrowingInfo memory oldBorrowing = borrowingsInfo[borrowingKey];
// Ensure that the borrowed position exists
(oldBorrowing.borrowedAmount == 0).revertError(ErrLib.ErrorCode.INVALID_BORROWING_KEY);
Expand Down

0 comments on commit 955d742

Please sign in to comment.