Helps contracts guard against reentrancy attacks. (ReentrancyGuard.sol)

View Source: openzeppelin-solidity/contracts/utils/ReentrancyGuard.solarrow-up-right

↘ Derived Contracts: CappedSTOarrow-up-right, CappedSTOProxyarrow-up-right, DummySTOProxyarrow-up-right, GeneralPermissionManagerProxyarrow-up-right, PreSaleSTOProxyarrow-up-right, SecurityTokenarrow-up-right, USDTieredSTOProxyarrow-up-right

ReentrancyGuard

If you mark a function nonReentrant, you should also mark it external.

Contract Members

Constants & Variables

uint256 private _guardCounter;

Modifiers

nonReentrant

Prevents a contract from calling itself, directly or indirectly. Calling a nonReentrant function from another nonReentrant function is not supported. It is possible to prevent this from happening by making the nonReentrant function external, and make it call a private function that does the actual work.

modifier nonReentrant() internal

Arguments

Name

Type

Description

Functions

Arguments

Name

Type

Description

Last updated

Was this helpful?