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";
|
||||
|
||||
function _encodeDepositCompound(
|
||||
address _colToken,
|
||||
address _token,
|
||||
uint256 _amt,
|
||||
uint256 _getId,
|
||||
uint256 _setId
|
||||
|
@ -14,7 +14,7 @@ function _encodeDepositCompound(
|
|||
return
|
||||
abi.encodeWithSelector(
|
||||
IConnectCompound.deposit.selector,
|
||||
_colToken,
|
||||
_token,
|
||||
_amt,
|
||||
_getId,
|
||||
_setId
|
||||
|
@ -22,7 +22,7 @@ function _encodeDepositCompound(
|
|||
}
|
||||
|
||||
function _encodeBorrowCompound(
|
||||
address _colToken,
|
||||
address _token,
|
||||
uint256 _amt,
|
||||
uint256 _getId,
|
||||
uint256 _setId
|
||||
|
@ -30,7 +30,7 @@ function _encodeBorrowCompound(
|
|||
return
|
||||
abi.encodeWithSelector(
|
||||
IConnectCompound.borrow.selector,
|
||||
_colToken,
|
||||
_token,
|
||||
_amt,
|
||||
_getId,
|
||||
_setId
|
||||
|
|
|
@ -6,7 +6,7 @@ import {
|
|||
} from "../../../interfaces/InstaDapp/connectors/IConnectGelatoProviderPayment.sol";
|
||||
|
||||
function _encodePayGelatoProvider(
|
||||
address _colToken,
|
||||
address _token,
|
||||
uint256 _amt,
|
||||
uint256 _getId,
|
||||
uint256 _setId
|
||||
|
@ -14,7 +14,7 @@ function _encodePayGelatoProvider(
|
|||
return
|
||||
abi.encodeWithSelector(
|
||||
IConnectGelatoProviderPayment.payProvider.selector,
|
||||
_colToken,
|
||||
_token,
|
||||
_amt,
|
||||
_getId,
|
||||
_setId
|
||||
|
|
|
@ -6,7 +6,7 @@ import {
|
|||
} from "../../../interfaces/InstaDapp/connectors/IConnectInstaPoolV2.sol";
|
||||
|
||||
function _encodeFlashPayback(
|
||||
address _colToken,
|
||||
address _token,
|
||||
uint256 _amt,
|
||||
uint256 _getId,
|
||||
uint256 _setId
|
||||
|
@ -14,7 +14,7 @@ function _encodeFlashPayback(
|
|||
return
|
||||
abi.encodeWithSelector(
|
||||
IConnectInstaPoolV2.flashPayback.selector,
|
||||
_colToken,
|
||||
_token,
|
||||
_amt,
|
||||
_getId,
|
||||
_setId
|
||||
|
|
|
@ -57,14 +57,14 @@ function _wCalcDebtToRepay(
|
|||
);
|
||||
}
|
||||
|
||||
function _getFlashLoanRoute(address _colTokenA, uint256 _wTokenADebtToMove)
|
||||
function _getFlashLoanRoute(address _tokenA, uint256 _wTokenADebtToMove)
|
||||
view
|
||||
returns (uint256)
|
||||
{
|
||||
IInstaPoolResolver.RouteData memory rData = IInstaPoolResolver(
|
||||
INSTA_POOL_RESOLVER
|
||||
)
|
||||
.getTokenLimit(_colTokenA);
|
||||
.getTokenLimit(_tokenA);
|
||||
|
||||
if (rData.dydx > _wTokenADebtToMove) return 0;
|
||||
if (rData.maker > _wTokenADebtToMove) return 1;
|
||||
|
|
|
@ -7,7 +7,7 @@ interface IConnectGelatoProviderPayment is ConnectorInterface {
|
|||
function setProvider(address _provider) external;
|
||||
|
||||
function payProvider(
|
||||
address _colToken,
|
||||
address _token,
|
||||
uint256 _amt,
|
||||
uint256 _getId,
|
||||
uint256 _setId
|
||||
|
|
|
@ -173,7 +173,7 @@
|
|||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "max_colTokens",
|
||||
"name": "max_tokens",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
|
@ -275,7 +275,7 @@
|
|||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "min_colTokens_bought",
|
||||
"name": "min_tokens_bought",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user