-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add internal overrideable _flashFee in ERC20FlashMint #3551
Add internal overrideable _flashFee in ERC20FlashMint #3551
Conversation
Hello @nirban256 I'm really puzzeled by this design.
What are dev supposed to override? If you override the public one, you risk losing the |
Maybe what we want is
|
Ok I will change this to this new implementation shortly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update ERC20FlashMintMock
to override _flashFee
instead of flashFee
like it does currently.
My previous comment hasn't been addressed yet:
It refers to the mock contract used for testing. |
Sir I have pushed a commit, let me know what are the changes required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
do I need to do anything more in order to complete this pull request? @frangio |
Fixes #3331
added internal _flashFee function
added the function so that instead of
flashFee
function the_flashFee
function can be overridden inside the ERC20FlashMint contractPR Checklist