Skip to content

Commit daa49a2

Browse files
committed
fix: add reentrancy check in getQuoteStatus view
1 parent bc7510f commit daa49a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contracts/PegInContract.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ contract PegInContract is
285285

286286
/// @inheritdoc IPegIn
287287
function getQuoteStatus(bytes32 quoteHash) external view override returns (PegInStates) {
288+
if (_reentrancyGuardEntered()) revert ReentrancyGuardReentrantCall();
288289
return _processedQuotes[quoteHash];
289290
}
290291

0 commit comments

Comments
 (0)