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

View Source: openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol

↘ Derived Contracts: CappedSTO, CappedSTOProxy, DummySTOProxy, GeneralPermissionManagerProxy, PreSaleSTOProxy, SecurityToken, USDTieredSTOProxy

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

function () internal nonpayable

Arguments

Name

Type

Description