Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(framework): borrow up to available cash in comptroller checks
Problem: Sometimes markets don't have huge amounts of cash available, e.g. on sepolia there's a shortage of WETH. This makes generic checks fail. However, it's a normal situation, especially on testnets – WETH wraps Sepolia ETH, so people supply free faucet tokens and borrow a token that has a higher demand. Solution: Ensure that the borrowed amount is less than available cash
- Loading branch information