Skip to content

Commit

Permalink
fixed fee logic for flashloan
Browse files Browse the repository at this point in the history
  • Loading branch information
senamakel committed May 21, 2023
1 parent a76aba2 commit e6c7312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/ARTHFlashMinter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ contract ARTHFlashMinter is IFlashLender, Pausable, Ownable {
);

arth.burn(address(receiver), amount);
arth.transfer(ecosystemFund, _fee);
arth.transferFrom(address(receiver), ecosystemFund, _fee);

emit FlashloanPayback(amount, _fee, address(receiver));
return true;
Expand Down

0 comments on commit e6c7312

Please sign in to comment.