Skip to main content

PausableBase

Git Source - Generated with forge doc

Inherits: IPausableInterestRatePolicy, Ownable2Step

Title: PausableBase

Shared pause state and admin for IInterestRatePolicy variants.

Pausers (configured by the owner) can pause; only the owner can unpause.

State Variables​

paused​

Whether the policy is paused.

bool public paused;

Returns

NameTypeDescription
<none>bool

isPauser​

Whether an address is a pauser.

mapping(address => bool) public isPauser;

Parameters

NameTypeDescription
<none>address

Returns

NameTypeDescription
<none>bool

Functions​

constructor​

constructor(address _owner) Ownable(_owner);

Parameters

NameTypeDescription
_owneraddress

whenNotPaused​

modifier whenNotPaused();

setPauser​

Adds or removes a pauser. Only callable by the owner.

function setPauser(address pauser, bool allowed) external onlyOwner;

Parameters

NameTypeDescription
pauseraddress
allowedbool

pause​

Pauses the policy, blocking all rate queries. Callable by any pauser.

function pause() external;

unpause​

Unpauses the policy, allowing rate queries. Only callable by the owner.

function unpause() external onlyOwner;