Firstly, would be key to note that some ERC20 tokens implemented so a fee is taken when transferring them, for example STA and PAXG.
Now take a look at LiquidationPool.sol#L205-L241
As seen, in the instance where the asset is not the NATIVE
ETH, the _portion
is being transferred in and assumed to be the exact value of what's transferred in, case is that this is problematic as an accounting flaw would be made on the holder's position cause the fee is not accounted for
As explained in Proof Of COncept this eventually leads to an accounting flaw since the amount of assets that's going to be recorder to have being received would actually be a wrong value.
Calculate the real amount that's been received by using the check opf the balances before and after this transfer.
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.