Submitted by minhquanym, also found by oakcobalt and bin2chen
Lenders in the Gondi protocol could be EOA or Gondi Pool. The Gondi Pool, an ERC4626, allows anyone to deposit funds and earn yield from lending on Gondi. When a loan is repaid or liquidated, the pool deducts a fee from the received amount before adding the rest to the pool balance. As shown in the loanRepayment() function, the fees are calculated by calling processFees() and then added to getCollectedFees. After that, the accounting function _loanTermination() is called with the amount being received - fees.
However, this fee is credited to getCollectedFees but never transferred out of the pool. As a result, these funds remain locked in the contract indefinitely.
The processFees() function only calculates the fee but doesnt transfer anything.
Then after getCollectedFees is credited for fees, we can see this getCollectedFees is never transferred out of the pool.
Add a function to collect the credited fees getCollectedFees from the pool in the FeeManager contract.
0xend (Gondi) confirmed and commented:
0xA5DF (judge) decreased severity to Medium and commented:
Gondi mitigated:
Status: Mitigation confirmed. Full details in reports from oakcobalt, minhquanym and bin2chen.
