File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ pragma solidity 0.8.9;
2424interface  IApplication  {
2525    /// @notice Used by T staking contract to inform the application that the 
2626    ///         authorized amount for the given staking provider increased. 
27-     ///         The application may do any necessary housekeeping. 
27+     ///         The application may do any necessary housekeeping. The 
28+     ///         application must revert the transaction in case the 
29+     ///         authorization is below the minimum required. 
2830    function authorizationIncreased  (
2931        address  stakingProvider ,
3032        uint96  fromAmount ,
@@ -54,4 +56,8 @@ interface IApplication {
5456        uint96  fromAmount ,
5557        uint96  toAmount 
5658    ) external ;
59+ 
60+     /// @notice The minimum authorization amount required for the staking 
61+     ///         provider so that they can participate in the application. 
62+     function minimumAuthorization  () external  view  returns  (uint96 );
5763}
Original file line number Diff line number Diff line change @@ -271,6 +271,10 @@ contract ApplicationMock is IApplication {
271271        }
272272        stakingProviderStruct.authorized =  toAmount;
273273    }
274+ 
275+     function minimumAuthorization  () external  view  returns  (uint96 ) {
276+         return  0 ;
277+     }
274278}
275279
276280contract  BrokenApplicationMock  is  ApplicationMock  {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments