smart-contracts icon indicating copy to clipboard operation
smart-contracts copied to clipboard

proxy - check sufficient token src amount before calling transfer

Open ilanDoron opened this issue 4 years ago • 0 comments

Its a valid scenarios that use doesn't have sufficient source amount. happens when a few trades from same account are called and are being mined.

problem: with current code. transferFrom will fail and consume all gas. solution: check srcAmount before calling transfer

ilanDoron avatar Aug 06 '20 12:08 ilanDoron