We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 923763f commit 1d15617Copy full SHA for 1d15617
patterns/flash-loans/README.md
@@ -76,7 +76,7 @@ function flashLoan(
76
uint256 balanceBefore = token.balanceOf(address(this));
77
require(balanceBefore >= borrowAmount, 'too much');
78
// Compute the fee, rounded up.
79
- uint256 fee = FEE_BPS * (borrowAmount + 1e4-1) / 1e4;
+ uint256 fee = (FEE_BPS * borrowAmount + 1e4-1) / 1e4;
80
// Transfer tokens to the borrower contract.
81
token.transfer(address(borrower), borrowAmount);
82
// Let the borrower do its thing.
0 commit comments