Frozen Markets and Reserves
Freezing and Unfreezing Reserves
In the PhoLend protocol, the state of a reserve can be altered to "frozen" through the function setReserveFreeze
within the PoolConfigurator contract. This action can only be executed by user who holds the PoolAdmin role. A frozen reserve restricts the addition of new funds and the initiation of new loans, although it still permits the repayment of existing loans, withdrawals of supplied funds, and processing of liquidations.
Unfreezing a reserve reverts it back to its normal operational state, enabling typical activities such as supplying and borrowing, provided that the overarching conditions of the market permit.
Pausing Reserves
A paused reserve represents a state of complete operational lockdown within the protocol. When a reserve is paused, all interactions including supplying, borrowing, repaying loans, liquidating, and transferring tokens are prohibited. The transition to and from this state is managed through the setReservePause
function, which, like freezing and unfreezing, is accessible solely to the user with the PoolAdmin role.
Actions Allowed During Freeze and Pause
The table below shows which functions are callable depending on the state of the reserve.
Supply
No
No
Withdraw
Yes
No
Borrow
No
No
Repay
Yes
No
SetUseReserveAsCollateral
Yes
No
Flashloan
Yes
No
Liquidate
Yes
No
AToken Transfer
Yes
No
Last updated