Lender.sol does not support Fee-on-Transfer tokens, which makes the protocol unusable.
The poolBalance
is a very important variable that represents the pool's lendable assets. However, if the loanToken
is a fee-on-transfer token, the poolBalance
will be different from the actual amount of tokens held in the pool.
In addToPool
increase the poolBalance
by amount and get the user's token by amount. Since a fee is charged for fetching assets from transferFrom
, the amount of tokens actually transferred to the contract will be less than amount, which means that the actual amount of tokens will be less than poolBalance
, and when the user tries to borrow those assets, they will borrow some tokens from other pools, which may cause insolvency.
This can break the protocol.
VS Code
poolBalance에 실제 입금된 양을 더하십시오
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.