Gelato-automations/contracts/functions/InstaDapp/connectors/FConnectCompound.sol
2020-11-10 17:17:58 +01:00

39 lines
809 B
Solidity

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.7.4;
import {
IConnectCompound
} from "../../../interfaces/InstaDapp/connectors/IConnectCompound.sol";
function _encodeDepositCompound(
address _token,
uint256 _amt,
uint256 _getId,
uint256 _setId
) pure returns (bytes memory) {
return
abi.encodeWithSelector(
IConnectCompound.deposit.selector,
_token,
_amt,
_getId,
_setId
);
}
function _encodeBorrowCompound(
address _token,
uint256 _amt,
uint256 _getId,
uint256 _setId
) pure returns (bytes memory) {
return
abi.encodeWithSelector(
IConnectCompound.borrow.selector,
_token,
_amt,
_getId,
_setId
);
}