Skip to content

Commit

Permalink
feat: adjust the protocol config fee share
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpawlowski committed Aug 5, 2024
1 parent 20973e1 commit 3e7a0fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ProtocolConfig/ProtocolConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ contract ProtocolConfig is IProtocolConfig {

minInterestFee = 0.1e4;
maxInterestFee = 1e4;
protocolFeeShare = 0.1e4;
protocolFeeShare = 0.5e4;
}

/// @inheritdoc IProtocolConfig
Expand Down
4 changes: 2 additions & 2 deletions test/unit/evault/modules/Governance/reserves.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ contract Governance_Reserves is EVaultTestBase {
}

function protocolShare(uint256 fees) internal pure returns (uint256) {
return fees * 0.1e18 / 1e18;
return fees * 0.5e18 / 1e18;
}

function riskManagerShare(uint256 fees) internal pure returns (uint256) {
return fees * (1e18 - 0.1e18) / 1e18;
return fees * (1e18 - 0.5e18) / 1e18;
}
}
2 changes: 1 addition & 1 deletion test/unit/evault/modules/Governance/views.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {EVaultTestBase} from "../../EVaultTestBase.t.sol";

contract Governance_views is EVaultTestBase {
function test_protocolFeeShare() public {
assertEq(eTST.protocolFeeShare(), 0.1e4);
assertEq(eTST.protocolFeeShare(), 0.5e4);

startHoax(admin);
protocolConfig.setProtocolFeeShare(0.4e4);
Expand Down

0 comments on commit 3e7a0fe

Please sign in to comment.