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"; } 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

View File

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

View File

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

View File

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

View File

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

View File

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