Skip to content

Commit

Permalink
EIP3156: small fix in code example (#5104)
Browse files Browse the repository at this point in the history
Fixed comment in code example.
The fee is in bps units (see in `_flashFee`, division by 10,000) -> hence 1 unit of fee is 0.01%
  • Loading branch information
davidbrai authored May 31, 2022
1 parent 65b55a3 commit eefc160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EIPS/eip-3156.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ import "../interfaces/IERC3156FlashLender.sol";
contract FlashMinter is ERC20, IERC3156FlashLender {
bytes32 public constant CALLBACK_SUCCESS = keccak256("ERC3156FlashBorrower.onFlashLoan");
uint256 public fee; // 1 == 0.0001 %.
uint256 public fee; // 1 == 0.01 %.
/**
* @param fee_ The percentage of the loan `amount` that needs to be repaid, in addition to `amount`.
Expand Down Expand Up @@ -364,7 +364,7 @@ contract FlashLender is IERC3156FlashLender {
bytes32 public constant CALLBACK_SUCCESS = keccak256("ERC3156FlashBorrower.onFlashLoan");
mapping(address => bool) public supportedTokens;
uint256 public fee; // 1 == 0.0001 %.
uint256 public fee; // 1 == 0.01 %.
/**
Expand Down

0 comments on commit eefc160

Please sign in to comment.