@@ -56,12 +56,10 @@ interface IStakingProducts {
5656 uint productId ,
5757 uint period ,
5858 uint coverAmount ,
59- uint initialCapacityUsed ,
6059 uint totalCapacity ,
61- uint globalMinPrice ,
60+ uint productMinPrice ,
6261 bool useFixedPrice ,
63- uint nxmPerAllocationUnit ,
64- uint allocationUnitsPerNxm
62+ uint nxmPerAllocationUnit
6563 ) external returns (uint premium );
6664
6765 function calculateFixedPricePremium (
@@ -77,32 +75,13 @@ interface IStakingProducts {
7775 StakedProduct memory product ,
7876 uint period ,
7977 uint coverAmount ,
80- uint initialCapacityUsed ,
8178 uint totalCapacity ,
8279 uint targetPrice ,
8380 uint currentBlockTimestamp ,
8481 uint nxmPerAllocationUnit ,
85- uint allocationUnitsPerNxm ,
8682 uint targetPriceDenominator
8783 ) external pure returns (uint premium , StakedProduct memory );
8884
89- function calculatePremiumPerYear (
90- uint basePrice ,
91- uint coverAmount ,
92- uint initialCapacityUsed ,
93- uint totalCapacity ,
94- uint nxmPerAllocationUnit ,
95- uint allocationUnitsPerNxm ,
96- uint targetPriceDenominator
97- ) external pure returns (uint );
98-
99- // Calculates the premium for a given cover amount starting with the surge point
100- function calculateSurgePremium (
101- uint amountOnSurge ,
102- uint totalCapacity ,
103- uint allocationUnitsPerNxm
104- ) external pure returns (uint );
105-
10685 /* ========== STAKING POOL CREATION ========== */
10786
10887 function stakingPool (uint poolId ) external view returns (IStakingPool);
@@ -149,7 +128,7 @@ interface IStakingProducts {
149128 // Staking Pool creation
150129 error ProductDoesntExistOrIsDeprecated ();
151130 error InvalidProductType ();
152- error TargetPriceBelowGlobalMinPriceRatio ();
131+ error TargetPriceBelowMinPriceRatio ();
153132
154133 // IPFS
155134 error IpfsHashRequired ();
0 commit comments