Closed github-actions[bot] closed 1 year ago
@clems4ev3r not sure this is a valid concern. The lending pool will be marked default after total of 3 months of non-payment. It is highly unlikely that GF keep a lending pool paused for long time periods. @taisukemino let's discuss this internally.
@vnadoda agreed, also if Goldfinch pauses a lending pool long enough it would be equivalent to default during the pausing time to the lender (borrower misses out on installation payments).
Closing based on the above comments
ctf_sec
medium
Goldfinch lending pool can be paused, which impact the state assessment of the Carapace contract
Summary
Goldfinch lending pool can be paused, which impact the state assessment of the Carapace contract
Vulnerability Detail
The GoldFinch multisig can pause a lending pool and the borrower is not able to repay the debt + interest.
If the lending pool is paused for a long time, in the current implementation, the Carapace contract state manager would just mark the lending pool as payment late and even default, but it is not fair for protection sellers because it is likely when the goldfinch unpause the lending pool, the borrower can repay the debt and the lending is not default state, while the protection seller still use the capital to cover the falsely default lending pool.
Impact
When Goldfinch lending pool can be paused, the state manager can mark a not-default lending pool to default state without offering the chance to let the borrower pay the debt after the Goldfinch unpause the contract.
Code Snippet
https://github.com/goldfinch-eng/goldfinch-contracts/blob/162ea40e526911a5955284f76c454f655645ec30/v2.2.0/protocol/core/TranchedPool.sol#L337
The borrower is only able to pay when the contract is not paused.
Tool used
Manual Review
Recommendation
We recommend the protocol add specific logic to not counting the time elapse towards the default state when the lending pool on Goldfinch side is paused.