Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add dune events to groups #165

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions AUDIT_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Audit Notes

This aligns with audit snapshot 00f16e1

BESIDES the fast that in this commit, the small fix for lender close loan is applied and it is not applied in the audit snapshot yet.
277 changes: 275 additions & 2 deletions packages/contracts/.openzeppelin/polygon.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"kind": "transparent"
},
{
"address": "0x0EfD3E33Ba2EdE028e50a3E7f81E084996d161aa",
"txHash": "0x720bd1cad23ecd8720865cdf5099e98988ba04579e76ef6d99dbf2204f82952c",
"address": "0x37F483C895C66d3eDb14AE88ea9bA52F937Eb002",
"txHash": "0x3a2574fce8bdb8a839cdba5a7a669d8933b027005b7cccc31d9488d80d95ae56",
"kind": "transparent"
}
],
Expand Down Expand Up @@ -7128,6 +7128,279 @@
},
"namespaces": {}
}
},
"cedf8d5110be8baf978b69fc3a11d5e4d1d9568d8210639991d1cf65a99086e0": {
"address": "0xB8Ab54664ed8F9f298778E8aEAA748A5818cb8C8",
"txHash": "0x4cad2dcb39bcf2ec6007941ede829e4576b4972ed64128e4f926d8ec7ed9e67d",
"layout": {
"solcVersion": "0.8.9",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
},
{
"label": "_paused",
"offset": 0,
"slot": "101",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "102",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116"
},
{
"label": "UNISWAP_V3_POOL",
"offset": 0,
"slot": "151",
"type": "t_address",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:148"
},
{
"label": "poolSharesToken",
"offset": 0,
"slot": "152",
"type": "t_contract(LenderCommitmentGroupShares)20115",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:152"
},
{
"label": "principalToken",
"offset": 0,
"slot": "153",
"type": "t_contract(IERC20)6127",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:154"
},
{
"label": "collateralToken",
"offset": 0,
"slot": "154",
"type": "t_contract(IERC20)6127",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:155"
},
{
"label": "marketId",
"offset": 0,
"slot": "155",
"type": "t_uint256",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:157"
},
{
"label": "totalPrincipalTokensCommitted",
"offset": 0,
"slot": "156",
"type": "t_uint256",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:160"
},
{
"label": "totalPrincipalTokensLended",
"offset": 0,
"slot": "157",
"type": "t_uint256",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:162"
},
{
"label": "totalPrincipalTokensRepaid",
"offset": 0,
"slot": "158",
"type": "t_uint256",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:163"
},
{
"label": "totalCollateralTokensEscrowedForLoans",
"offset": 0,
"slot": "159",
"type": "t_uint256",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:165"
},
{
"label": "totalInterestCollected",
"offset": 0,
"slot": "160",
"type": "t_uint256",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:167"
},
{
"label": "liquidityThresholdPercent",
"offset": 0,
"slot": "161",
"type": "t_uint16",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:169"
},
{
"label": "loanToValuePercent",
"offset": 2,
"slot": "161",
"type": "t_uint16",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:170"
},
{
"label": "twapInterval",
"offset": 4,
"slot": "161",
"type": "t_uint32",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:172"
},
{
"label": "maxLoanDuration",
"offset": 8,
"slot": "161",
"type": "t_uint32",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:173"
},
{
"label": "interestRateLowerBound",
"offset": 12,
"slot": "161",
"type": "t_uint16",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:174"
},
{
"label": "interestRateUpperBound",
"offset": 14,
"slot": "161",
"type": "t_uint16",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:175"
},
{
"label": "principalTokensCommittedByLender",
"offset": 0,
"slot": "162",
"type": "t_mapping(t_address,t_uint256)",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:178"
},
{
"label": "activeBids",
"offset": 0,
"slot": "163",
"type": "t_mapping(t_uint256,t_bool)",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:179"
},
{
"label": "tokenDifferenceFromLiquidations",
"offset": 0,
"slot": "164",
"type": "t_int256",
"contract": "LenderCommitmentGroup_Smart",
"src": "contracts/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol:183"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"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_contract(IERC20)6127": {
"label": "contract IERC20",
"numberOfBytes": "20"
},
"t_contract(LenderCommitmentGroupShares)20115": {
"label": "contract LenderCommitmentGroupShares",
"numberOfBytes": "20"
},
"t_int256": {
"label": "int256",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_bool)": {
"label": "mapping(uint256 => bool)",
"numberOfBytes": "32"
},
"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": {}
}
}
}
}
Loading
Loading