all files / plugins/assets/compoundv3/ ICusdcV3Wrapper.sol

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68                                                                                                                                       
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
 
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "./vendor/CometInterface.sol";
import "./IWrappedERC20.sol";
 
interface ICusdcV3Wrapper is IWrappedERC20 {
    event RewardClaimed(
        address indexed src,
        address indexed recipient,
        address indexed token,
        uint256 amount
    );
 
    struct UserBasic {
        uint104 principal;
        uint64 baseTrackingAccrued;
        uint64 baseTrackingIndex;
        uint256 rewardsClaimed;
    }
 
    function deposit(uint256 amount) external;
 
    function depositTo(address account, uint256 amount) external;
 
    function depositFrom(
        address from,
        address dst,
        uint256 amount
    ) external;
 
    function withdraw(uint256 amount) external;
 
    function withdrawTo(address to, uint256 amount) external;
 
    function withdrawFrom(
        address src,
        address to,
        uint256 amount
    ) external;
 
    function claimTo(address src, address to) external;
 
    function accrue() external;
 
    function accrueAccount(address account) external;
 
    function underlyingBalanceOf(address account) external view returns (uint256);
 
    function getRewardOwed(address account) external view returns (uint256);
 
    function exchangeRate() external view returns (uint256);
 
    function convertStaticToDynamic(uint104 amount) external view returns (uint256);
 
    function convertDynamicToStatic(uint256 amount) external view returns (uint104);
 
    function baseTrackingAccrued(address account) external view returns (uint64);
 
    function baseTrackingIndex(address account) external view returns (uint64);
 
    function underlyingComet() external view returns (CometInterface);
 
    function rewardERC20() external view returns (IERC20);
}