add setBaseBorrowMin function
This commit is contained in:
@@ -3789,7 +3789,7 @@
|
||||
"label": "assetConfigs",
|
||||
"offset": 0,
|
||||
"slot": "5",
|
||||
"type": "t_mapping(t_address,t_struct(AssetConfig)6696_storage)",
|
||||
"type": "t_mapping(t_address,t_struct(AssetConfig)5841_storage)",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:34"
|
||||
},
|
||||
@@ -3805,7 +3805,7 @@
|
||||
"label": "userBasic",
|
||||
"offset": 0,
|
||||
"slot": "7",
|
||||
"type": "t_mapping(t_address,t_struct(UserBasic)7413_storage)",
|
||||
"type": "t_mapping(t_address,t_struct(UserBasic)6364_storage)",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:43"
|
||||
},
|
||||
@@ -3883,7 +3883,7 @@
|
||||
"label": "bool",
|
||||
"numberOfBytes": "1"
|
||||
},
|
||||
"t_struct(InitializableStorage)119_storage": {
|
||||
"t_struct(InitializableStorage)73_storage": {
|
||||
"label": "struct Initializable.InitializableStorage",
|
||||
"members": [
|
||||
{
|
||||
@@ -3901,7 +3901,7 @@
|
||||
],
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_struct(OwnableStorage)59_storage": {
|
||||
"t_struct(OwnableStorage)13_storage": {
|
||||
"label": "struct OwnableUpgradeable.OwnableStorage",
|
||||
"members": [
|
||||
{
|
||||
@@ -3913,7 +3913,7 @@
|
||||
],
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_struct(PausableStorage)463_storage": {
|
||||
"t_struct(PausableStorage)224_storage": {
|
||||
"label": "struct PausableUpgradeable.PausableStorage",
|
||||
"members": [
|
||||
{
|
||||
@@ -3925,7 +3925,7 @@
|
||||
],
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_struct(ReentrancyGuardStorage)527_storage": {
|
||||
"t_struct(ReentrancyGuardStorage)288_storage": {
|
||||
"label": "struct ReentrancyGuardUpgradeable.ReentrancyGuardStorage",
|
||||
"members": [
|
||||
{
|
||||
@@ -3961,11 +3961,11 @@
|
||||
"label": "mapping(address => mapping(address => uint256))",
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_mapping(t_address,t_struct(AssetConfig)6696_storage)": {
|
||||
"t_mapping(t_address,t_struct(AssetConfig)5841_storage)": {
|
||||
"label": "mapping(address => struct LendingConfiguration.AssetConfig)",
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_mapping(t_address,t_struct(UserBasic)7413_storage)": {
|
||||
"t_mapping(t_address,t_struct(UserBasic)6364_storage)": {
|
||||
"label": "mapping(address => struct LendingStorage.UserBasic)",
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
@@ -3973,7 +3973,7 @@
|
||||
"label": "mapping(address => uint256)",
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_struct(AssetConfig)6696_storage": {
|
||||
"t_struct(AssetConfig)5841_storage": {
|
||||
"label": "struct LendingConfiguration.AssetConfig",
|
||||
"members": [
|
||||
{
|
||||
@@ -4015,7 +4015,7 @@
|
||||
],
|
||||
"numberOfBytes": "64"
|
||||
},
|
||||
"t_struct(UserBasic)7413_storage": {
|
||||
"t_struct(UserBasic)6364_storage": {
|
||||
"label": "struct LendingStorage.UserBasic",
|
||||
"members": [
|
||||
{
|
||||
@@ -4573,6 +4573,423 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"ea7c4b1b12eb95df8ad68f46725ffddee6356e42492be9c1bf47d91feaa8aaea": {
|
||||
"address": "0xBA8f2b5b7281Cd6E49dF229819E824bE0CEA6Ea3",
|
||||
"txHash": "0x544ae5570504ea2c6db57b7ca1ee86d9f7950de7579cf861f209c18d7e4afd66",
|
||||
"layout": {
|
||||
"solcVersion": "0.8.28",
|
||||
"storage": [
|
||||
{
|
||||
"label": "baseToken",
|
||||
"offset": 0,
|
||||
"slot": "0",
|
||||
"type": "t_address",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:14"
|
||||
},
|
||||
{
|
||||
"label": "lendingPriceSource",
|
||||
"offset": 0,
|
||||
"slot": "1",
|
||||
"type": "t_address",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:14"
|
||||
},
|
||||
{
|
||||
"label": "supplyKink",
|
||||
"offset": 20,
|
||||
"slot": "1",
|
||||
"type": "t_uint64",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:18"
|
||||
},
|
||||
{
|
||||
"label": "supplyPerSecondInterestRateSlopeLow",
|
||||
"offset": 0,
|
||||
"slot": "2",
|
||||
"type": "t_uint64",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:19"
|
||||
},
|
||||
{
|
||||
"label": "supplyPerSecondInterestRateSlopeHigh",
|
||||
"offset": 8,
|
||||
"slot": "2",
|
||||
"type": "t_uint64",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:20"
|
||||
},
|
||||
{
|
||||
"label": "supplyPerSecondInterestRateBase",
|
||||
"offset": 16,
|
||||
"slot": "2",
|
||||
"type": "t_uint64",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:22"
|
||||
},
|
||||
{
|
||||
"label": "borrowKink",
|
||||
"offset": 24,
|
||||
"slot": "2",
|
||||
"type": "t_uint64",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:23"
|
||||
},
|
||||
{
|
||||
"label": "borrowPerSecondInterestRateSlopeLow",
|
||||
"offset": 0,
|
||||
"slot": "3",
|
||||
"type": "t_uint64",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:24"
|
||||
},
|
||||
{
|
||||
"label": "borrowPerSecondInterestRateSlopeHigh",
|
||||
"offset": 8,
|
||||
"slot": "3",
|
||||
"type": "t_uint64",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:25"
|
||||
},
|
||||
{
|
||||
"label": "borrowPerSecondInterestRateBase",
|
||||
"offset": 16,
|
||||
"slot": "3",
|
||||
"type": "t_uint64",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:28"
|
||||
},
|
||||
{
|
||||
"label": "storeFrontPriceFactor",
|
||||
"offset": 24,
|
||||
"slot": "3",
|
||||
"type": "t_uint64",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:30"
|
||||
},
|
||||
{
|
||||
"label": "baseBorrowMin",
|
||||
"offset": 0,
|
||||
"slot": "4",
|
||||
"type": "t_uint104",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:32"
|
||||
},
|
||||
{
|
||||
"label": "targetReserves",
|
||||
"offset": 13,
|
||||
"slot": "4",
|
||||
"type": "t_uint104",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:33"
|
||||
},
|
||||
{
|
||||
"label": "assetConfigs",
|
||||
"offset": 0,
|
||||
"slot": "5",
|
||||
"type": "t_mapping(t_address,t_struct(AssetConfig)5652_storage)",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:34"
|
||||
},
|
||||
{
|
||||
"label": "assetList",
|
||||
"offset": 0,
|
||||
"slot": "6",
|
||||
"type": "t_array(t_address)dyn_storage",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:38"
|
||||
},
|
||||
{
|
||||
"label": "userBasic",
|
||||
"offset": 0,
|
||||
"slot": "7",
|
||||
"type": "t_mapping(t_address,t_struct(UserBasic)6175_storage)",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:43"
|
||||
},
|
||||
{
|
||||
"label": "userCollateral",
|
||||
"offset": 0,
|
||||
"slot": "8",
|
||||
"type": "t_mapping(t_address,t_mapping(t_address,t_uint256))",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:47"
|
||||
},
|
||||
{
|
||||
"label": "totalSupplyBase",
|
||||
"offset": 0,
|
||||
"slot": "9",
|
||||
"type": "t_uint104",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:52"
|
||||
},
|
||||
{
|
||||
"label": "totalBorrowBase",
|
||||
"offset": 13,
|
||||
"slot": "9",
|
||||
"type": "t_uint104",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:54"
|
||||
},
|
||||
{
|
||||
"label": "supplyIndex",
|
||||
"offset": 0,
|
||||
"slot": "10",
|
||||
"type": "t_uint256",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:55"
|
||||
},
|
||||
{
|
||||
"label": "borrowIndex",
|
||||
"offset": 0,
|
||||
"slot": "11",
|
||||
"type": "t_uint256",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:56"
|
||||
},
|
||||
{
|
||||
"label": "lastAccrualTime",
|
||||
"offset": 0,
|
||||
"slot": "12",
|
||||
"type": "t_uint256",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:56"
|
||||
},
|
||||
{
|
||||
"label": "collateralReserves",
|
||||
"offset": 0,
|
||||
"slot": "13",
|
||||
"type": "t_mapping(t_address,t_uint256)",
|
||||
"contract": "LendingStorage",
|
||||
"src": "contracts/ytLending/LendingStorage.sol:59"
|
||||
},
|
||||
{
|
||||
"label": "__gap",
|
||||
"offset": 0,
|
||||
"slot": "14",
|
||||
"type": "t_array(t_uint256)50_storage",
|
||||
"contract": "Lending",
|
||||
"src": "contracts/ytLending/Lending.sol:690"
|
||||
}
|
||||
],
|
||||
"types": {
|
||||
"t_address": {
|
||||
"label": "address",
|
||||
"numberOfBytes": "20"
|
||||
},
|
||||
"t_bool": {
|
||||
"label": "bool",
|
||||
"numberOfBytes": "1"
|
||||
},
|
||||
"t_struct(InitializableStorage)73_storage": {
|
||||
"label": "struct Initializable.InitializableStorage",
|
||||
"members": [
|
||||
{
|
||||
"label": "_initialized",
|
||||
"type": "t_uint64",
|
||||
"offset": 0,
|
||||
"slot": "0"
|
||||
},
|
||||
{
|
||||
"label": "_initializing",
|
||||
"type": "t_bool",
|
||||
"offset": 8,
|
||||
"slot": "0"
|
||||
}
|
||||
],
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_struct(OwnableStorage)13_storage": {
|
||||
"label": "struct OwnableUpgradeable.OwnableStorage",
|
||||
"members": [
|
||||
{
|
||||
"label": "_owner",
|
||||
"type": "t_address",
|
||||
"offset": 0,
|
||||
"slot": "0"
|
||||
}
|
||||
],
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_struct(PausableStorage)224_storage": {
|
||||
"label": "struct PausableUpgradeable.PausableStorage",
|
||||
"members": [
|
||||
{
|
||||
"label": "_paused",
|
||||
"type": "t_bool",
|
||||
"offset": 0,
|
||||
"slot": "0"
|
||||
}
|
||||
],
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_struct(ReentrancyGuardStorage)288_storage": {
|
||||
"label": "struct ReentrancyGuardUpgradeable.ReentrancyGuardStorage",
|
||||
"members": [
|
||||
{
|
||||
"label": "_status",
|
||||
"type": "t_uint256",
|
||||
"offset": 0,
|
||||
"slot": "0"
|
||||
}
|
||||
],
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_uint256": {
|
||||
"label": "uint256",
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_uint64": {
|
||||
"label": "uint64",
|
||||
"numberOfBytes": "8"
|
||||
},
|
||||
"t_array(t_address)dyn_storage": {
|
||||
"label": "address[]",
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_array(t_uint256)50_storage": {
|
||||
"label": "uint256[50]",
|
||||
"numberOfBytes": "1600"
|
||||
},
|
||||
"t_int104": {
|
||||
"label": "int104",
|
||||
"numberOfBytes": "13"
|
||||
},
|
||||
"t_mapping(t_address,t_mapping(t_address,t_uint256))": {
|
||||
"label": "mapping(address => mapping(address => uint256))",
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_mapping(t_address,t_struct(AssetConfig)5652_storage)": {
|
||||
"label": "mapping(address => struct LendingConfiguration.AssetConfig)",
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_mapping(t_address,t_struct(UserBasic)6175_storage)": {
|
||||
"label": "mapping(address => struct LendingStorage.UserBasic)",
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_mapping(t_address,t_uint256)": {
|
||||
"label": "mapping(address => uint256)",
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_struct(AssetConfig)5652_storage": {
|
||||
"label": "struct LendingConfiguration.AssetConfig",
|
||||
"members": [
|
||||
{
|
||||
"label": "asset",
|
||||
"type": "t_address",
|
||||
"offset": 0,
|
||||
"slot": "0"
|
||||
},
|
||||
{
|
||||
"label": "decimals",
|
||||
"type": "t_uint8",
|
||||
"offset": 20,
|
||||
"slot": "0"
|
||||
},
|
||||
{
|
||||
"label": "borrowCollateralFactor",
|
||||
"type": "t_uint64",
|
||||
"offset": 21,
|
||||
"slot": "0"
|
||||
},
|
||||
{
|
||||
"label": "liquidateCollateralFactor",
|
||||
"type": "t_uint64",
|
||||
"offset": 0,
|
||||
"slot": "1"
|
||||
},
|
||||
{
|
||||
"label": "liquidationFactor",
|
||||
"type": "t_uint64",
|
||||
"offset": 8,
|
||||
"slot": "1"
|
||||
},
|
||||
{
|
||||
"label": "supplyCap",
|
||||
"type": "t_uint128",
|
||||
"offset": 16,
|
||||
"slot": "1"
|
||||
}
|
||||
],
|
||||
"numberOfBytes": "64"
|
||||
},
|
||||
"t_struct(UserBasic)6175_storage": {
|
||||
"label": "struct LendingStorage.UserBasic",
|
||||
"members": [
|
||||
{
|
||||
"label": "principal",
|
||||
"type": "t_int104",
|
||||
"offset": 0,
|
||||
"slot": "0"
|
||||
}
|
||||
],
|
||||
"numberOfBytes": "32"
|
||||
},
|
||||
"t_uint104": {
|
||||
"label": "uint104",
|
||||
"numberOfBytes": "13"
|
||||
},
|
||||
"t_uint128": {
|
||||
"label": "uint128",
|
||||
"numberOfBytes": "16"
|
||||
},
|
||||
"t_uint8": {
|
||||
"label": "uint8",
|
||||
"numberOfBytes": "1"
|
||||
}
|
||||
},
|
||||
"namespaces": {
|
||||
"erc7201:openzeppelin.storage.ReentrancyGuard": [
|
||||
{
|
||||
"contract": "ReentrancyGuardUpgradeable",
|
||||
"label": "_status",
|
||||
"type": "t_uint256",
|
||||
"src": "@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol:43",
|
||||
"offset": 0,
|
||||
"slot": "0"
|
||||
}
|
||||
],
|
||||
"erc7201:openzeppelin.storage.Pausable": [
|
||||
{
|
||||
"contract": "PausableUpgradeable",
|
||||
"label": "_paused",
|
||||
"type": "t_bool",
|
||||
"src": "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol:21",
|
||||
"offset": 0,
|
||||
"slot": "0"
|
||||
}
|
||||
],
|
||||
"erc7201:openzeppelin.storage.Ownable": [
|
||||
{
|
||||
"contract": "OwnableUpgradeable",
|
||||
"label": "_owner",
|
||||
"type": "t_address",
|
||||
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:24",
|
||||
"offset": 0,
|
||||
"slot": "0"
|
||||
}
|
||||
],
|
||||
"erc7201:openzeppelin.storage.Initializable": [
|
||||
{
|
||||
"contract": "Initializable",
|
||||
"label": "_initialized",
|
||||
"type": "t_uint64",
|
||||
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:69",
|
||||
"offset": 0,
|
||||
"slot": "0"
|
||||
},
|
||||
{
|
||||
"contract": "Initializable",
|
||||
"label": "_initializing",
|
||||
"type": "t_bool",
|
||||
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:73",
|
||||
"offset": 8,
|
||||
"slot": "0"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user