From 3e7a0feb16f7cf05592b9e241f4d99c71887a025 Mon Sep 17 00:00:00 2001 From: kasperpawlowski Date: Mon, 5 Aug 2024 18:55:32 +0200 Subject: [PATCH] feat: adjust the protocol config fee share --- src/ProtocolConfig/ProtocolConfig.sol | 2 +- test/unit/evault/modules/Governance/reserves.t.sol | 4 ++-- test/unit/evault/modules/Governance/views.t.sol | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ProtocolConfig/ProtocolConfig.sol b/src/ProtocolConfig/ProtocolConfig.sol index c0f2ce72..71fd403c 100644 --- a/src/ProtocolConfig/ProtocolConfig.sol +++ b/src/ProtocolConfig/ProtocolConfig.sol @@ -87,7 +87,7 @@ contract ProtocolConfig is IProtocolConfig { minInterestFee = 0.1e4; maxInterestFee = 1e4; - protocolFeeShare = 0.1e4; + protocolFeeShare = 0.5e4; } /// @inheritdoc IProtocolConfig diff --git a/test/unit/evault/modules/Governance/reserves.t.sol b/test/unit/evault/modules/Governance/reserves.t.sol index 128afe07..4302a471 100644 --- a/test/unit/evault/modules/Governance/reserves.t.sol +++ b/test/unit/evault/modules/Governance/reserves.t.sol @@ -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; } } diff --git a/test/unit/evault/modules/Governance/views.t.sol b/test/unit/evault/modules/Governance/views.t.sol index a6150fbe..69c2d770 100644 --- a/test/unit/evault/modules/Governance/views.t.sol +++ b/test/unit/evault/modules/Governance/views.t.sol @@ -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);