Structs

Git Source

Structs

RateData

struct RateData {
    uint256 version;
    AdminModuleStructs.RateDataV1Params rateDataV1;
    AdminModuleStructs.RateDataV2Params rateDataV2;
}

OverallTokenData

struct OverallTokenData {
    uint256 borrowRate;
    uint256 supplyRate;
    uint256 fee;
    uint256 lastStoredUtilization;
    uint256 storageUpdateThreshold;
    uint256 lastUpdateTimestamp;
    uint256 supplyExchangePrice;
    uint256 borrowExchangePrice;
    uint256 supplyRawInterest;
    uint256 supplyInterestFree;
    uint256 borrowRawInterest;
    uint256 borrowInterestFree;
    uint256 totalSupply;
    uint256 totalBorrow;
    uint256 revenue;
    RateData rateData;
}

UserSupplyData

struct UserSupplyData {
    bool modeWithInterest;
    uint256 supply;
    uint256 withdrawalLimit;
    uint256 lastUpdateTimestamp;
    uint256 expandPercent;
    uint256 expandDuration;
    uint256 baseWithdrawalLimit;
    uint256 withdrawableUntilLimit;
    uint256 withdrawable;
}

UserBorrowData

struct UserBorrowData {
    bool modeWithInterest;
    uint256 borrow;
    uint256 borrowLimit;
    uint256 lastUpdateTimestamp;
    uint256 expandPercent;
    uint256 expandDuration;
    uint256 baseBorrowLimit;
    uint256 maxBorrowLimit;
    uint256 borrowableUntilLimit;
    uint256 borrowable;
}