-
Notifications
You must be signed in to change notification settings - Fork 19
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
[Fix] Send claimed market fees to factory owner #79
Conversation
/// @param receiver The address to receive the fee | ||
/// @param fee The amount of the fee to claim | ||
function _claimFee(address receiver, UFixed6 fee) private returns (bool) { | ||
if (msg.sender != receiver) return false; | ||
if (msg.sender == address(factory())) receiver = factory().owner(); |
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.
you should just pass in factory().owner()
in the above method instead, in the protocolFee clause
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.
I see - then should we also remove the fund
method in the Factory since it's not longer possible to use it to claim the fees?
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.
yeah good catch let's remove that too
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.
Done
[Payoff] Integration Test Code Coverage ReportCoverage after merging arjun/claim-protocol-fee-to-owner into main will be
Coverage Report
|
[Payoff] Unit Test Code Coverage ReportCoverage after merging arjun/claim-protocol-fee-to-owner into main will be
Coverage Report
|
[Oracle] Unit Test Coverage ReportCoverage after merging arjun/claim-protocol-fee-to-owner into main will be
Coverage Report
|
[Extensions] Unit Test Coverage ReportCoverage after merging arjun/claim-protocol-fee-to-owner into main will be
Coverage Report
|
[Core] Integration Test Coverage ReportCoverage after merging arjun/claim-protocol-fee-to-owner into main will be
Coverage Report
|
[Extensions] Integration Test Coverage ReportCoverage after merging arjun/claim-protocol-fee-to-owner into main will be
Coverage Report
|
[Vault] Integration Test Coverage ReportCoverage after merging arjun/claim-protocol-fee-to-owner into main will be
Coverage Report
|
[Core] Unit Test Coverage ReportCoverage after merging arjun/claim-protocol-fee-to-owner into main will be
Coverage Report
|
[Oracle] Integration Test Coverage ReportCoverage after merging arjun/claim-protocol-fee-to-owner into main will be
Coverage Report
|
No description provided.