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
| Name | Type | Description |
|---|---|---|
<none> | bool |
isPauser
Whether an address is a pauser.
mapping(address => bool) public isPauser;
Parameters
| Name | Type | Description |
|---|---|---|
<none> | address |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bool |
Functions
constructor
constructor(address _owner) Ownable(_owner);
Parameters
| Name | Type | Description |
|---|---|---|
_owner | address |
whenNotPaused
modifier whenNotPaused();
setPauser
Adds or removes a pauser. Only callable by the owner.
function setPauser(address pauser, bool allowed) external onlyOwner;
Parameters
| Name | Type | Description |
|---|---|---|
pauser | address | |
allowed | bool |
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;