giveLoan
can revert, how? By the new lender frontrunning the updating their poolbalance causing the function to revert and dosing giveLoan
ex:
Alice the old lender wants to give his loan to Bob
Bob front runs Alice tx to give him the loan
By taking out their pool balance
causing Alice tx to revert and putting more risk on Alice
Now you might think this is the system design but this is a bug the new pool shouldn't be able to make the old lender revet and not accept the loan
In the future if the protocol has a list of lenders that accept that they will take old lenders loans over they can cause revert and cause gas loss for the lenders which interim will cause more risk and maybe loss of funds for the old lender/lenders
either use some sort of flashbots or instead of reverting don't allow setPool
to get called when giveLoan
is going to happen
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.