Skip to content

Commit

Permalink
fix: functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Nov 17, 2023
1 parent ad3265c commit efa945a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/accountants/HealthCheckAccountant.sol
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ contract HealthCheckAccountant {
* @dev This function provides the maximum performance fee that the accountant can charge.
* @return The maximum performance fee.
*/
function performanceFeeThreshold() external view virtual returns (uint16) {
function performanceFeeThreshold() external pure virtual returns (uint16) {
return PERFORMANCE_FEE_THRESHOLD;
}

Expand All @@ -574,7 +574,7 @@ contract HealthCheckAccountant {
* @dev This function provides the maximum management fee that the accountant can charge.
* @return The maximum management fee.
*/
function managementFeeThreshold() external view virtual returns (uint16) {
function managementFeeThreshold() external pure virtual returns (uint16) {
return MANAGEMENT_FEE_THRESHOLD;
}
}
9 changes: 7 additions & 2 deletions contracts/accountants/RefundAccountant.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ contract RefundAccountant is HealthCheckAccountant {
address strategy,
uint256 gain,
uint256 loss
) public override returns (uint256 totalFees, uint256 totalRefunds) {
)
public
virtual
override
returns (uint256 totalFees, uint256 totalRefunds)
{
(totalFees, totalRefunds) = super.report(strategy, gain, loss);

Refund memory refundConfig = refund[msg.sender][strategy];
Expand Down Expand Up @@ -99,7 +104,7 @@ contract RefundAccountant is HealthCheckAccountant {
address _strategy,
bool _refund,
uint256 _amount
) external onlyFeeManager {
) external virtual onlyFeeManager {
require(vaults[_vault], "not added");
require(
IVault(_vault).strategies(_strategy).activation != 0,
Expand Down

0 comments on commit efa945a

Please sign in to comment.