Add internal overrideable _flashFee in ERC20FlashMint (#3551)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <frangio.1@gmail.com>
This commit is contained in:
Nirban Chakraborty
2022-07-22 23:14:58 +05:30
committed by GitHub
parent 6e8d885ca7
commit d1b1e17d23
4 changed files with 29 additions and 18 deletions

View File

@ -25,8 +25,7 @@ contract ERC20FlashMintMock is ERC20FlashMint {
_flashFeeAmount = amount;
}
function flashFee(address token, uint256 amount) public view virtual override returns (uint256) {
super.flashFee(token, amount);
function _flashFee(address, uint256) internal view override returns (uint256) {
return _flashFeeAmount;
}