Structs ​
Structs ​
AddressBool ​
solidity
struct AddressBool {
address addr;
bool value;
}
AddressUint256 ​
solidity
struct AddressUint256 {
address addr;
uint256 value;
}
RateDataV1Params ​
struct to set borrow rate data for version 1
solidity
struct RateDataV1Params {
address token;
uint256 kink;
uint256 rateAtUtilizationZero;
uint256 rateAtUtilizationKink;
uint256 rateAtUtilizationMax;
}
RateDataV2Params ​
struct to set borrow rate data for version 2
solidity
struct RateDataV2Params {
address token;
uint256 kink1;
uint256 kink2;
uint256 rateAtUtilizationZero;
uint256 rateAtUtilizationKink1;
uint256 rateAtUtilizationKink2;
uint256 rateAtUtilizationMax;
}
TokenConfig ​
struct to set token config
solidity
struct TokenConfig {
address token;
uint256 fee;
uint256 threshold;
uint256 maxUtilization;
}
UserSupplyConfig ​
struct to set user supply & withdrawal config
solidity
struct UserSupplyConfig {
address user;
address token;
uint8 mode;
uint256 expandPercent;
uint256 expandDuration;
uint256 baseWithdrawalLimit;
}
UserBorrowConfig ​
struct to set user borrow & payback config
solidity
struct UserBorrowConfig {
address user;
address token;
uint8 mode;
uint256 expandPercent;
uint256 expandDuration;
uint256 baseDebtCeiling;
uint256 maxDebtCeiling;
}