diff --git a/packages/contracts/.openzeppelin/mainnet.json b/packages/contracts/.openzeppelin/mainnet.json index bb4c962f2..87f613eea 100644 --- a/packages/contracts/.openzeppelin/mainnet.json +++ b/packages/contracts/.openzeppelin/mainnet.json @@ -6578,6 +6578,343 @@ "types": {}, "namespaces": {} } + }, + "a16f7f85e0e8de1ccf7ac1d988af384856b2cd5c0dfcf0ec7631269f29943eb0": { + "address": "0xfDDcEc68cfa40c38Faf05F918484fC416a221BFF", + "txHash": "0x4f4f7bbd0f1f58e6f53226d6182e1542e310404f30bbd01cb6bd36a4adcd94cd", + "layout": { + "solcVersion": "0.8.9", + "storage": [ + { + "label": "userExtensions", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_address,t_mapping(t_address,t_bool))", + "contract": "ExtensionsContextUpgradeable", + "src": "contracts/LenderCommitmentForwarder/extensions/ExtensionsContextUpgradeable.sol:12" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)49_storage", + "contract": "ExtensionsContextUpgradeable", + "src": "contracts/LenderCommitmentForwarder/extensions/ExtensionsContextUpgradeable.sol:61" + }, + { + "label": "_initialized", + "offset": 0, + "slot": "50", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "50", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67" + }, + { + "label": "__gap", + "offset": 0, + "slot": "51", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "TellerV2MarketForwarder_G2", + "src": "contracts/TellerV2MarketForwarder_G2.sol:149" + }, + { + "label": "commitments", + "offset": 0, + "slot": "151", + "type": "t_mapping(t_uint256,t_struct(Commitment)11172_storage)", + "contract": "LenderCommitmentForwarder_U1", + "src": "contracts/LenderCommitmentForwarder/LenderCommitmentForwarder_U1.sol:53" + }, + { + "label": "commitmentCount", + "offset": 0, + "slot": "152", + "type": "t_uint256", + "contract": "LenderCommitmentForwarder_U1", + "src": "contracts/LenderCommitmentForwarder/LenderCommitmentForwarder_U1.sol:55" + }, + { + "label": "commitmentBorrowersList", + "offset": 0, + "slot": "153", + "type": "t_mapping(t_uint256,t_struct(AddressSet)2637_storage)", + "contract": "LenderCommitmentForwarder_U1", + "src": "contracts/LenderCommitmentForwarder/LenderCommitmentForwarder_U1.sol:58" + }, + { + "label": "commitmentPrincipalAccepted", + "offset": 0, + "slot": "154", + "type": "t_mapping(t_uint256,t_uint256)", + "contract": "LenderCommitmentForwarder_U1", + "src": "contracts/LenderCommitmentForwarder/LenderCommitmentForwarder_U1.sol:61" + }, + { + "label": "commitmentUniswapPoolRoutes", + "offset": 0, + "slot": "155", + "type": "t_mapping(t_uint256,t_array(t_struct(PoolRouteConfig)11183_storage)dyn_storage)", + "contract": "LenderCommitmentForwarder_U1", + "src": "contracts/LenderCommitmentForwarder/LenderCommitmentForwarder_U1.sol:63" + }, + { + "label": "commitmentPoolOracleLtvRatio", + "offset": 0, + "slot": "156", + "type": "t_mapping(t_uint256,t_uint16)", + "contract": "LenderCommitmentForwarder_U1", + "src": "contracts/LenderCommitmentForwarder/LenderCommitmentForwarder_U1.sol:65" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_bytes32)dyn_storage": { + "label": "bytes32[]", + "numberOfBytes": "32" + }, + "t_array(t_struct(PoolRouteConfig)11183_storage)dyn_storage": { + "label": "struct ILenderCommitmentForwarder_U1.PoolRouteConfig[]", + "numberOfBytes": "32" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_enum(CommitmentCollateralType)11148": { + "label": "enum ILenderCommitmentForwarder_U1.CommitmentCollateralType", + "members": [ + "NONE", + "ERC20", + "ERC721", + "ERC1155", + "ERC721_ANY_ID", + "ERC1155_ANY_ID", + "ERC721_MERKLE_PROOF", + "ERC1155_MERKLE_PROOF" + ], + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_bool)": { + "label": "mapping(address => bool)", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_mapping(t_address,t_bool))": { + "label": "mapping(address => mapping(address => bool))", + "numberOfBytes": "32" + }, + "t_mapping(t_bytes32,t_uint256)": { + "label": "mapping(bytes32 => uint256)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_array(t_struct(PoolRouteConfig)11183_storage)dyn_storage)": { + "label": "mapping(uint256 => struct ILenderCommitmentForwarder_U1.PoolRouteConfig[])", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_struct(AddressSet)2637_storage)": { + "label": "mapping(uint256 => struct EnumerableSetUpgradeable.AddressSet)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_struct(Commitment)11172_storage)": { + "label": "mapping(uint256 => struct ILenderCommitmentForwarder_U1.Commitment)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_uint16)": { + "label": "mapping(uint256 => uint16)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_uint256)": { + "label": "mapping(uint256 => uint256)", + "numberOfBytes": "32" + }, + "t_struct(AddressSet)2637_storage": { + "label": "struct EnumerableSetUpgradeable.AddressSet", + "members": [ + { + "label": "_inner", + "type": "t_struct(Set)2322_storage", + "offset": 0, + "slot": "0" + } + ], + "numberOfBytes": "64" + }, + "t_struct(Commitment)11172_storage": { + "label": "struct ILenderCommitmentForwarder_U1.Commitment", + "members": [ + { + "label": "maxPrincipal", + "type": "t_uint256", + "offset": 0, + "slot": "0" + }, + { + "label": "expiration", + "type": "t_uint32", + "offset": 0, + "slot": "1" + }, + { + "label": "maxDuration", + "type": "t_uint32", + "offset": 4, + "slot": "1" + }, + { + "label": "minInterestRate", + "type": "t_uint16", + "offset": 8, + "slot": "1" + }, + { + "label": "collateralTokenAddress", + "type": "t_address", + "offset": 10, + "slot": "1" + }, + { + "label": "collateralTokenId", + "type": "t_uint256", + "offset": 0, + "slot": "2" + }, + { + "label": "maxPrincipalPerCollateralAmount", + "type": "t_uint256", + "offset": 0, + "slot": "3" + }, + { + "label": "collateralTokenType", + "type": "t_enum(CommitmentCollateralType)11148", + "offset": 0, + "slot": "4" + }, + { + "label": "lender", + "type": "t_address", + "offset": 1, + "slot": "4" + }, + { + "label": "marketId", + "type": "t_uint256", + "offset": 0, + "slot": "5" + }, + { + "label": "principalTokenAddress", + "type": "t_address", + "offset": 0, + "slot": "6" + } + ], + "numberOfBytes": "224" + }, + "t_struct(PoolRouteConfig)11183_storage": { + "label": "struct ILenderCommitmentForwarder_U1.PoolRouteConfig", + "members": [ + { + "label": "pool", + "type": "t_address", + "offset": 0, + "slot": "0" + }, + { + "label": "zeroForOne", + "type": "t_bool", + "offset": 20, + "slot": "0" + }, + { + "label": "twapInterval", + "type": "t_uint32", + "offset": 21, + "slot": "0" + }, + { + "label": "token0Decimals", + "type": "t_uint256", + "offset": 0, + "slot": "1" + }, + { + "label": "token1Decimals", + "type": "t_uint256", + "offset": 0, + "slot": "2" + } + ], + "numberOfBytes": "96" + }, + "t_struct(Set)2322_storage": { + "label": "struct EnumerableSetUpgradeable.Set", + "members": [ + { + "label": "_values", + "type": "t_array(t_bytes32)dyn_storage", + "offset": 0, + "slot": "0" + }, + { + "label": "_indexes", + "type": "t_mapping(t_bytes32,t_uint256)", + "offset": 0, + "slot": "1" + } + ], + "numberOfBytes": "64" + }, + "t_uint16": { + "label": "uint16", + "numberOfBytes": "2" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "label": "uint32", + "numberOfBytes": "4" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/contracts/deployments/mainnet/.migrations.json b/packages/contracts/deployments/mainnet/.migrations.json index a87667dc2..2195a1796 100644 --- a/packages/contracts/deployments/mainnet/.migrations.json +++ b/packages/contracts/deployments/mainnet/.migrations.json @@ -26,5 +26,6 @@ "lender-commitment-forwarder:extensions:flash-rollover-widget:deploy": 1724347441, "lender-commitment-forwarder:extensions:loan-referral-forwarder:deploy": 1724347466, "lender-commitment-forwarder:alpha:upgrade_referrals": 1724423884, - "loan-referral-forwarder:upgrade_1": 1729703632 + "loan-referral-forwarder:upgrade_1": 1729703632, + "lender-commitment-forwarder:alpha:upgrade_max_principal": 1731096405 } \ No newline at end of file diff --git a/packages/contracts/deployments/mainnet/LenderCommitmentForwarderAlpha.json b/packages/contracts/deployments/mainnet/LenderCommitmentForwarderAlpha.json index 5c06a2a93..a8b0f079e 100644 --- a/packages/contracts/deployments/mainnet/LenderCommitmentForwarderAlpha.json +++ b/packages/contracts/deployments/mainnet/LenderCommitmentForwarderAlpha.json @@ -1184,6 +1184,6 @@ "blockHash": null, "blockNumber": null }, - "numDeployments": 3, + "numDeployments": 4, "implementation": "0x47ed489BBE38a198254Ecbac79ECd68860455BBf" } \ No newline at end of file