mirror of
				https://github.com/Instadapp/dsa-connectors.git
				synced 2024-07-29 22:37:00 +00:00 
			
		
		
		
	Allow non-payable functions to be composable with payable functions
Make all functions payable so they can be composed in a larger spell which might use msg.value (normally non-payable is rejected) Co-authored-by: Samyak Jain <34437877+KaymasJain@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									5574467be5
								
							
						
					
					
						commit
						67e07913ed
					
				| 
						 | 
				
			
			@ -356,7 +356,7 @@ abstract contract LiquityResolver is Events, Helpers {
 | 
			
		|||
    function stabilityMoveEthGainToTrove(
 | 
			
		||||
        address upperHint,
 | 
			
		||||
        address lowerHint
 | 
			
		||||
    ) external returns (string memory _eventName, bytes memory _eventParam) {
 | 
			
		||||
    ) external payable returns (string memory _eventName, bytes memory _eventParam) {
 | 
			
		||||
        uint amount = stabilityPool.getDepositorETHGain(address(this));
 | 
			
		||||
        stabilityPool.withdrawETHGainToTrove(upperHint, lowerHint);
 | 
			
		||||
        _eventName = "LogStabilityMoveEthGainToTrove(address,uint256)";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user