dsa-connectors/contracts/avalanche/connectors/benqi/benqi-rewards/interface.sol
2022-03-22 20:25:14 +05:30

18 lines
746 B
Solidity

//SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
interface ComptrollerInterface {
function claimReward(uint8 rewardType, address holder) external;
function claimReward(uint8 rewardType, address holder, address[] calldata) external;
function claimReward(uint8 rewardType, address[] calldata holders, address[] calldata qiTokens, bool borrowers, bool suppliers) external;
}
interface QiInterface {
function delegate(address delegatee) external;
function delegates(address) external view returns(address);
}
interface BenqiMappingInterface {
function qiTokenMapping(string calldata tokenId) external view returns (address);
function getMapping(string calldata tokenId) external view returns (address, address);
}