Skip to content

Commit

Permalink
Fixed FlashLoan event parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Niocelbatsnu committed Nov 9, 2022
1 parent b9e0cf8 commit 85d9a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/flash.sol
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ contract Flash is Initializable, ReentrancyGuardUpgradeable, IERC3156FlashLender
vat.suck(address(this), address(this), amt);
hayJoin.exit(address(receiver), amount);

emit FlashLoan(address(receiver), token, amount, 0);
emit FlashLoan(address(receiver), token, amount, fee);

require(receiver.onFlashLoan(msg.sender, token, amount, fee, data) == CALLBACK_SUCCESS, "Flash/callback-failed");

Expand Down

0 comments on commit 85d9a9e

Please sign in to comment.