-
Notifications
You must be signed in to change notification settings - Fork 1
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
Remove discounted fee calculation logic from Deployers and Farm factory updates #22
Conversation
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.
return _calculateFees(_tokenA, _tokenB); | ||
/// @notice A public view function to get fees from Farm Factory | ||
/// @return feeReceiver of feeToken in feeAmount | ||
function getFees(address _deployerAccount) |
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.
Mark this function as external
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.
Resolved 06b706b
contracts/BaseFarmDeployer.sol
Outdated
/// @dev Function fetches all the fee params from farmFactory. | ||
function _collectFee() internal virtual { | ||
// Here msg.sender would be the deployer/creator of the farm which will be checked in privileged deployer list | ||
(address feeReceiver, address feeToken, uint256 feeAmount) = getFees(msg.sender); |
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.
Directly call the IFarmFactory() contract.
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.
Resolved 06b706b
No description provided.