chore: cleanup

This commit is contained in:
gitpusha 2020-11-10 17:06:48 +01:00 committed by Luis Schliesske
parent 35cdd3f185
commit fd9eedf224
6 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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"
},
{