Gelato-automations/contracts/functions/InstaDapp/connectors/FConnectCompound.sol

39 lines
809 B
Solidity
Raw Normal View History

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