mirror of
				https://github.com/Instadapp/Gelato-automations.git
				synced 2024-07-29 22:28:07 +00:00 
			
		
		
		
	chore: cleanup
This commit is contained in:
		
							parent
							
								
									35cdd3f185
								
							
						
					
					
						commit
						fd9eedf224
					
				|  | @ -6,7 +6,7 @@ import { | ||||||
| } from "../../../interfaces/InstaDapp/connectors/IConnectCompound.sol"; | } from "../../../interfaces/InstaDapp/connectors/IConnectCompound.sol"; | ||||||
| 
 | 
 | ||||||
| function _encodeDepositCompound( | function _encodeDepositCompound( | ||||||
|     address _colToken, |     address _token, | ||||||
|     uint256 _amt, |     uint256 _amt, | ||||||
|     uint256 _getId, |     uint256 _getId, | ||||||
|     uint256 _setId |     uint256 _setId | ||||||
|  | @ -14,7 +14,7 @@ function _encodeDepositCompound( | ||||||
|     return |     return | ||||||
|         abi.encodeWithSelector( |         abi.encodeWithSelector( | ||||||
|             IConnectCompound.deposit.selector, |             IConnectCompound.deposit.selector, | ||||||
|             _colToken, |             _token, | ||||||
|             _amt, |             _amt, | ||||||
|             _getId, |             _getId, | ||||||
|             _setId |             _setId | ||||||
|  | @ -22,7 +22,7 @@ function _encodeDepositCompound( | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function _encodeBorrowCompound( | function _encodeBorrowCompound( | ||||||
|     address _colToken, |     address _token, | ||||||
|     uint256 _amt, |     uint256 _amt, | ||||||
|     uint256 _getId, |     uint256 _getId, | ||||||
|     uint256 _setId |     uint256 _setId | ||||||
|  | @ -30,7 +30,7 @@ function _encodeBorrowCompound( | ||||||
|     return |     return | ||||||
|         abi.encodeWithSelector( |         abi.encodeWithSelector( | ||||||
|             IConnectCompound.borrow.selector, |             IConnectCompound.borrow.selector, | ||||||
|             _colToken, |             _token, | ||||||
|             _amt, |             _amt, | ||||||
|             _getId, |             _getId, | ||||||
|             _setId |             _setId | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ import { | ||||||
| } from "../../../interfaces/InstaDapp/connectors/IConnectGelatoProviderPayment.sol"; | } from "../../../interfaces/InstaDapp/connectors/IConnectGelatoProviderPayment.sol"; | ||||||
| 
 | 
 | ||||||
| function _encodePayGelatoProvider( | function _encodePayGelatoProvider( | ||||||
|     address _colToken, |     address _token, | ||||||
|     uint256 _amt, |     uint256 _amt, | ||||||
|     uint256 _getId, |     uint256 _getId, | ||||||
|     uint256 _setId |     uint256 _setId | ||||||
|  | @ -14,7 +14,7 @@ function _encodePayGelatoProvider( | ||||||
|     return |     return | ||||||
|         abi.encodeWithSelector( |         abi.encodeWithSelector( | ||||||
|             IConnectGelatoProviderPayment.payProvider.selector, |             IConnectGelatoProviderPayment.payProvider.selector, | ||||||
|             _colToken, |             _token, | ||||||
|             _amt, |             _amt, | ||||||
|             _getId, |             _getId, | ||||||
|             _setId |             _setId | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ import { | ||||||
| } from "../../../interfaces/InstaDapp/connectors/IConnectInstaPoolV2.sol"; | } from "../../../interfaces/InstaDapp/connectors/IConnectInstaPoolV2.sol"; | ||||||
| 
 | 
 | ||||||
| function _encodeFlashPayback( | function _encodeFlashPayback( | ||||||
|     address _colToken, |     address _token, | ||||||
|     uint256 _amt, |     uint256 _amt, | ||||||
|     uint256 _getId, |     uint256 _getId, | ||||||
|     uint256 _setId |     uint256 _setId | ||||||
|  | @ -14,7 +14,7 @@ function _encodeFlashPayback( | ||||||
|     return |     return | ||||||
|         abi.encodeWithSelector( |         abi.encodeWithSelector( | ||||||
|             IConnectInstaPoolV2.flashPayback.selector, |             IConnectInstaPoolV2.flashPayback.selector, | ||||||
|             _colToken, |             _token, | ||||||
|             _amt, |             _amt, | ||||||
|             _getId, |             _getId, | ||||||
|             _setId |             _setId | ||||||
|  |  | ||||||
|  | @ -57,14 +57,14 @@ function _wCalcDebtToRepay( | ||||||
|         ); |         ); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function _getFlashLoanRoute(address _colTokenA, uint256 _wTokenADebtToMove) | function _getFlashLoanRoute(address _tokenA, uint256 _wTokenADebtToMove) | ||||||
|     view |     view | ||||||
|     returns (uint256) |     returns (uint256) | ||||||
| { | { | ||||||
|     IInstaPoolResolver.RouteData memory rData = IInstaPoolResolver( |     IInstaPoolResolver.RouteData memory rData = IInstaPoolResolver( | ||||||
|         INSTA_POOL_RESOLVER |         INSTA_POOL_RESOLVER | ||||||
|     ) |     ) | ||||||
|         .getTokenLimit(_colTokenA); |         .getTokenLimit(_tokenA); | ||||||
| 
 | 
 | ||||||
|     if (rData.dydx > _wTokenADebtToMove) return 0; |     if (rData.dydx > _wTokenADebtToMove) return 0; | ||||||
|     if (rData.maker > _wTokenADebtToMove) return 1; |     if (rData.maker > _wTokenADebtToMove) return 1; | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ interface IConnectGelatoProviderPayment is ConnectorInterface { | ||||||
|     function setProvider(address _provider) external; |     function setProvider(address _provider) external; | ||||||
| 
 | 
 | ||||||
|     function payProvider( |     function payProvider( | ||||||
|         address _colToken, |         address _token, | ||||||
|         uint256 _amt, |         uint256 _amt, | ||||||
|         uint256 _getId, |         uint256 _getId, | ||||||
|         uint256 _setId |         uint256 _setId | ||||||
|  |  | ||||||
|  | @ -173,7 +173,7 @@ | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           "internalType": "uint256", |           "internalType": "uint256", | ||||||
|           "name": "max_colTokens", |           "name": "max_tokens", | ||||||
|           "type": "uint256" |           "type": "uint256" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|  | @ -275,7 +275,7 @@ | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           "internalType": "uint256", |           "internalType": "uint256", | ||||||
|           "name": "min_colTokens_bought", |           "name": "min_tokens_bought", | ||||||
|           "type": "uint256" |           "type": "uint256" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 gitpusha
						gitpusha