Structs

Git Source

Structs

AddressBool

struct AddressBool {
    address addr;
    bool value;
}

AddressUint256

struct AddressUint256 {
    address addr;
    uint256 value;
}

RateDataV1Params

struct to set borrow rate data for version 1

struct RateDataV1Params {
    address token;
    uint256 kink;
    uint256 rateAtUtilizationZero;
    uint256 rateAtUtilizationKink;
    uint256 rateAtUtilizationMax;
}

RateDataV2Params

struct to set borrow rate data for version 2

struct RateDataV2Params {
    address token;
    uint256 kink1;
    uint256 kink2;
    uint256 rateAtUtilizationZero;
    uint256 rateAtUtilizationKink1;
    uint256 rateAtUtilizationKink2;
    uint256 rateAtUtilizationMax;
}

TokenConfig

struct to set token config

struct TokenConfig {
    address token;
    uint256 fee;
    uint256 threshold;
}

UserSupplyConfig

struct to set user supply & withdrawal config

struct UserSupplyConfig {
    address user;
    address token;
    uint8 mode;
    uint256 expandPercent;
    uint256 expandDuration;
    uint256 baseWithdrawalLimit;
}

UserBorrowConfig

struct to set user borrow & payback config

struct UserBorrowConfig {
    address user;
    address token;
    uint8 mode;
    uint256 expandPercent;
    uint256 expandDuration;
    uint256 baseDebtCeiling;
    uint256 maxDebtCeiling;
}