Skip to main content

IPausableInterestRatePolicy

Git Source - Generated with forge doc

Inherits: IInterestRatePolicy

Title: IPausableInterestRatePolicy

Interface of pausable interest rate policies.

Functions​

paused​

Whether the policy is paused.

function paused() external view returns (bool);

isPauser​

Whether an address is a pauser.

function isPauser(address) external view returns (bool);

setPauser​

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

function setPauser(address pauser, bool allowed) external;

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;

Events​

Paused​

event Paused(address account);

Unpaused​

event Unpaused(address account);

PauserSet​

event PauserSet(address pauser, bool allowed);

Errors​

OnlyPauser​

error OnlyPauser();

AlreadyPaused​

error AlreadyPaused();

NotPaused​

error NotPaused();

IsPaused​

error IsPaused();