Skip to content

Commit 0092aad

Browse files
committed
chore: sonic gnosis diffs v3.3
1 parent 083bd38 commit 0092aad

25 files changed

+9865
-0
lines changed
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
```diff
2+
diff --git a/./downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER.sol b/./downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER.sol
3+
index ef1c828..0540bfa 100644
4+
--- a/./downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER.sol
5+
+++ b/./downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER.sol
6+
@@ -1,7 +1,7 @@
7+
// SPDX-License-Identifier: MIT
8+
pragma solidity ^0.8.0 ^0.8.10;
9+
10+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/protocol/libraries/types/DataTypes.sol
11+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/protocol/libraries/types/DataTypes.sol
12+
13+
library DataTypes {
14+
/**
15+
@@ -331,7 +331,7 @@ library DataTypes {
16+
}
17+
}
18+
19+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/protocol/libraries/helpers/Errors.sol
20+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/protocol/libraries/helpers/Errors.sol
21+
22+
/**
23+
* @title Errors library
24+
@@ -438,7 +438,7 @@ library Errors {
25+
string public constant USER_CANNOT_HAVE_DEBT = '104'; // Thrown when a user tries to interact with a method that requires a position without debt
26+
}
27+
28+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/interfaces/IAaveIncentivesController.sol
29+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/interfaces/IAaveIncentivesController.sol
30+
31+
/**
32+
* @title IAaveIncentivesController
33+
@@ -457,7 +457,7 @@ interface IAaveIncentivesController {
34+
function handleAction(address user, uint256 totalSupply, uint256 userBalance) external;
35+
}
36+
37+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/dependencies/openzeppelin/contracts/IERC20.sol
38+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/dependencies/openzeppelin/contracts/IERC20.sol
39+
40+
/**
41+
* @dev Interface of the ERC20 standard as defined in the EIP.
42+
@@ -533,7 +533,7 @@ interface IERC20 {
43+
event Approval(address indexed owner, address indexed spender, uint256 value);
44+
}
45+
46+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/interfaces/IPoolAddressesProvider.sol
47+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/interfaces/IPoolAddressesProvider.sol
48+
49+
/**
50+
* @title IPoolAddressesProvider
51+
@@ -760,7 +760,7 @@ interface IPoolAddressesProvider {
52+
function setPoolDataProvider(address newDataProvider) external;
53+
}
54+
55+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/interfaces/IScaledBalanceToken.sol
56+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/interfaces/IScaledBalanceToken.sol
57+
58+
/**
59+
* @title IScaledBalanceToken
60+
@@ -832,7 +832,7 @@ interface IScaledBalanceToken {
61+
function getPreviousIndex(address user) external view returns (uint256);
62+
}
63+
64+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/protocol/libraries/math/WadRayMath.sol
65+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/protocol/libraries/math/WadRayMath.sol
66+
67+
/**
68+
* @title WadRayMath library
69+
@@ -958,7 +958,7 @@ library WadRayMath {
70+
}
71+
}
72+
73+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol
74+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol
75+
76+
interface IERC20Detailed is IERC20 {
77+
function name() external view returns (string memory);
78+
@@ -968,7 +968,7 @@ interface IERC20Detailed is IERC20 {
79+
function decimals() external view returns (uint8);
80+
}
81+
82+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/interfaces/IPoolDataProvider.sol
83+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/interfaces/IPoolDataProvider.sol
84+
85+
/**
86+
* @title IPoolDataProvider
87+
@@ -1223,7 +1223,7 @@ interface IPoolDataProvider {
88+
function getReserveDeficit(address asset) external view returns (uint256);
89+
}
90+
91+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/interfaces/IPool.sol
92+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/interfaces/IPool.sol
93+
94+
/**
95+
* @title IPool
96+
@@ -2091,7 +2091,7 @@ interface IPool {
97+
function getSupplyLogic() external view returns (address);
98+
}
99+
100+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/protocol/libraries/configuration/ReserveConfiguration.sol
101+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/protocol/libraries/configuration/ReserveConfiguration.sol
102+
103+
/**
104+
* @title ReserveConfiguration library
105+
@@ -2675,7 +2675,7 @@ library ReserveConfiguration {
106+
}
107+
}
108+
109+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/protocol/libraries/configuration/UserConfiguration.sol
110+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/protocol/libraries/configuration/UserConfiguration.sol
111+
112+
/**
113+
* @title UserConfiguration library
114+
@@ -2907,7 +2907,7 @@ library UserConfiguration {
115+
}
116+
}
117+
118+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/interfaces/IInitializableDebtToken.sol
119+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/interfaces/IInitializableDebtToken.sol
120+
121+
/**
122+
* @title IInitializableDebtToken
123+
@@ -2956,7 +2956,7 @@ interface IInitializableDebtToken {
124+
) external;
125+
}
126+
127+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/interfaces/IVariableDebtToken.sol
128+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/interfaces/IVariableDebtToken.sol
129+
130+
/**
131+
* @title IVariableDebtToken
132+
@@ -2999,7 +2999,7 @@ interface IVariableDebtToken is IScaledBalanceToken, IInitializableDebtToken {
133+
function UNDERLYING_ASSET_ADDRESS() external view returns (address);
134+
}
135+
136+
-// downloads/GNOSIS/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/lib/aave-v3-origin/src/contracts/helpers/AaveProtocolDataProvider.sol
137+
+// downloads/CELO/AAVE_PROTOCOL_DATA_PROVIDER/AaveProtocolDataProvider/src/contracts/helpers/AaveProtocolDataProvider.sol
138+
139+
/**
140+
* @title AaveProtocolDataProvider
141+
```

GNOSIS_CELO/ACL_MANAGER_DIFF.md

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
```diff
2+
diff --git a/./downloads/GNOSIS/ACL_MANAGER.sol b/./downloads/CELO/ACL_MANAGER.sol
3+
index 5f26b31..aba09ce 100644
4+
--- a/./downloads/GNOSIS/ACL_MANAGER.sol
5+
+++ b/./downloads/CELO/ACL_MANAGER.sol
6+
@@ -1,7 +1,7 @@
7+
-// SPDX-License-Identifier: MIT
8+
+// SPDX-License-Identifier: BUSL-1.1
9+
pragma solidity ^0.8.0 ^0.8.10;
10+
11+
-// downloads/GNOSIS/ACL_MANAGER/ACLManager/src/core/contracts/dependencies/openzeppelin/contracts/Context.sol
12+
+// downloads/CELO/ACL_MANAGER/ACLManager/src/contracts/dependencies/openzeppelin/contracts/Context.sol
13+
14+
/*
15+
* @dev Provides information about the current execution context, including the
16+
@@ -24,7 +24,7 @@ abstract contract Context {
17+
}
18+
}
19+
20+
-// downloads/GNOSIS/ACL_MANAGER/ACLManager/src/core/contracts/protocol/libraries/helpers/Errors.sol
21+
+// downloads/CELO/ACL_MANAGER/ACLManager/src/contracts/protocol/libraries/helpers/Errors.sol
22+
23+
/**
24+
* @title Errors library
25+
@@ -62,17 +62,14 @@ library Errors {
26+
string public constant RESERVE_FROZEN = '28'; // 'Action cannot be performed because the reserve is frozen'
27+
string public constant RESERVE_PAUSED = '29'; // 'Action cannot be performed because the reserve is paused'
28+
string public constant BORROWING_NOT_ENABLED = '30'; // 'Borrowing is not enabled'
29+
- string public constant STABLE_BORROWING_NOT_ENABLED = '31'; // 'Stable borrowing is not enabled'
30+
string public constant NOT_ENOUGH_AVAILABLE_USER_BALANCE = '32'; // 'User cannot withdraw more than the available balance'
31+
string public constant INVALID_INTEREST_RATE_MODE_SELECTED = '33'; // 'Invalid interest rate mode selected'
32+
string public constant COLLATERAL_BALANCE_IS_ZERO = '34'; // 'The collateral balance is 0'
33+
string public constant HEALTH_FACTOR_LOWER_THAN_LIQUIDATION_THRESHOLD = '35'; // 'Health factor is lesser than the liquidation threshold'
34+
string public constant COLLATERAL_CANNOT_COVER_NEW_BORROW = '36'; // 'There is not enough collateral to cover a new borrow'
35+
string public constant COLLATERAL_SAME_AS_BORROWING_CURRENCY = '37'; // 'Collateral is (mostly) the same currency that is being borrowed'
36+
- string public constant AMOUNT_BIGGER_THAN_MAX_LOAN_SIZE_STABLE = '38'; // 'The requested amount is greater than the max loan size in stable rate mode'
37+
string public constant NO_DEBT_OF_SELECTED_TYPE = '39'; // 'For repayment of a specific type of debt, the user needs to have debt that type'
38+
string public constant NO_EXPLICIT_AMOUNT_TO_REPAY_ON_BEHALF = '40'; // 'To repay on behalf of a user an explicit amount to repay is needed'
39+
- string public constant NO_OUTSTANDING_STABLE_DEBT = '41'; // 'User does not have outstanding stable rate debt on this reserve'
40+
string public constant NO_OUTSTANDING_VARIABLE_DEBT = '42'; // 'User does not have outstanding variable rate debt on this reserve'
41+
string public constant UNDERLYING_BALANCE_ZERO = '43'; // 'The underlying balance needs to be greater than 0'
42+
string public constant INTEREST_RATE_REBALANCE_CONDITIONS_NOT_MET = '44'; // 'Interest rate rebalance conditions were not met'
43+
@@ -85,7 +82,6 @@ library Errors {
44+
string public constant UNBACKED_MINT_CAP_EXCEEDED = '52'; // 'Unbacked mint cap is exceeded'
45+
string public constant DEBT_CEILING_EXCEEDED = '53'; // 'Debt ceiling is exceeded'
46+
string public constant UNDERLYING_CLAIMABLE_RIGHTS_NOT_ZERO = '54'; // 'Claimable rights over underlying not zero (aToken supply or accruedToTreasury)'
47+
- string public constant STABLE_DEBT_NOT_ZERO = '55'; // 'Stable debt supply is not zero'
48+
string public constant VARIABLE_DEBT_SUPPLY_NOT_ZERO = '56'; // 'Variable debt supply is not zero'
49+
string public constant LTV_VALIDATION_FAILED = '57'; // 'Ltv validation failed'
50+
string public constant INCONSISTENT_EMODE_CATEGORY = '58'; // 'Inconsistent eMode category'
51+
@@ -114,17 +110,28 @@ library Errors {
52+
string public constant DEBT_CEILING_NOT_ZERO = '81'; // 'Debt ceiling is not zero'
53+
string public constant ASSET_NOT_LISTED = '82'; // 'Asset is not listed'
54+
string public constant INVALID_OPTIMAL_USAGE_RATIO = '83'; // 'Invalid optimal usage ratio'
55+
- string public constant INVALID_OPTIMAL_STABLE_TO_TOTAL_DEBT_RATIO = '84'; // 'Invalid optimal stable to total debt ratio'
56+
string public constant UNDERLYING_CANNOT_BE_RESCUED = '85'; // 'The underlying asset cannot be rescued'
57+
string public constant ADDRESSES_PROVIDER_ALREADY_ADDED = '86'; // 'Reserve has already been added to reserve list'
58+
string public constant POOL_ADDRESSES_DO_NOT_MATCH = '87'; // 'The token implementation pool address and the pool address provided by the initializing pool do not match'
59+
- string public constant STABLE_BORROWING_ENABLED = '88'; // 'Stable borrowing is enabled'
60+
string public constant SILOED_BORROWING_VIOLATION = '89'; // 'User is trying to borrow multiple assets including a siloed one'
61+
string public constant RESERVE_DEBT_NOT_ZERO = '90'; // the total debt of the reserve needs to be 0
62+
string public constant FLASHLOAN_DISABLED = '91'; // FlashLoaning for this asset is disabled
63+
+ string public constant INVALID_MAX_RATE = '92'; // The expect maximum borrow rate is invalid
64+
+ string public constant WITHDRAW_TO_ATOKEN = '93'; // Withdrawing to the aToken is not allowed
65+
+ string public constant SUPPLY_TO_ATOKEN = '94'; // Supplying to the aToken is not allowed
66+
+ string public constant SLOPE_2_MUST_BE_GTE_SLOPE_1 = '95'; // Variable interest rate slope 2 can not be lower than slope 1
67+
+ string public constant CALLER_NOT_RISK_OR_POOL_OR_EMERGENCY_ADMIN = '96'; // 'The caller of the function is not a risk, pool or emergency admin'
68+
+ string public constant LIQUIDATION_GRACE_SENTINEL_CHECK_FAILED = '97'; // 'Liquidation grace sentinel validation failed'
69+
+ string public constant INVALID_GRACE_PERIOD = '98'; // Grace period above a valid range
70+
+ string public constant INVALID_FREEZE_STATE = '99'; // Reserve is already in the passed freeze state
71+
+ string public constant NOT_BORROWABLE_IN_EMODE = '100'; // Asset not borrowable in eMode
72+
+ string public constant CALLER_NOT_UMBRELLA = '101'; // The caller of the function is not the umbrella contract
73+
+ string public constant RESERVE_NOT_IN_DEFICIT = '102'; // The reserve is not in deficit
74+
+ string public constant MUST_NOT_LEAVE_DUST = '103'; // Below a certain threshold liquidators need to take the full position
75+
+ string public constant USER_CANNOT_HAVE_DEBT = '104'; // Thrown when a user tries to interact with a method that requires a position without debt
76+
}
77+
78+
-// downloads/GNOSIS/ACL_MANAGER/ACLManager/src/core/contracts/dependencies/openzeppelin/contracts/IAccessControl.sol
79+
+// downloads/CELO/ACL_MANAGER/ACLManager/src/contracts/dependencies/openzeppelin/contracts/IAccessControl.sol
80+
81+
/**
82+
* @dev External interface of AccessControl declared to support ERC165 detection.
83+
@@ -214,7 +221,7 @@ interface IAccessControl {
84+
function renounceRole(bytes32 role, address account) external;
85+
}
86+
87+
-// downloads/GNOSIS/ACL_MANAGER/ACLManager/src/core/contracts/dependencies/openzeppelin/contracts/IERC165.sol
88+
+// downloads/CELO/ACL_MANAGER/ACLManager/src/contracts/dependencies/openzeppelin/contracts/IERC165.sol
89+
90+
/**
91+
* @dev Interface of the ERC165 standard, as defined in the
92+
@@ -237,7 +244,7 @@ interface IERC165 {
93+
function supportsInterface(bytes4 interfaceId) external view returns (bool);
94+
}
95+
96+
-// downloads/GNOSIS/ACL_MANAGER/ACLManager/src/core/contracts/interfaces/IPoolAddressesProvider.sol
97+
+// downloads/CELO/ACL_MANAGER/ACLManager/src/contracts/interfaces/IPoolAddressesProvider.sol
98+
99+
/**
100+
* @title IPoolAddressesProvider
101+
@@ -464,7 +471,7 @@ interface IPoolAddressesProvider {
102+
function setPoolDataProvider(address newDataProvider) external;
103+
}
104+
105+
-// downloads/GNOSIS/ACL_MANAGER/ACLManager/src/core/contracts/dependencies/openzeppelin/contracts/Strings.sol
106+
+// downloads/CELO/ACL_MANAGER/ACLManager/src/contracts/dependencies/openzeppelin/contracts/Strings.sol
107+
108+
/**
109+
* @dev String operations.
110+
@@ -529,7 +536,7 @@ library Strings {
111+
}
112+
}
113+
114+
-// downloads/GNOSIS/ACL_MANAGER/ACLManager/src/core/contracts/dependencies/openzeppelin/contracts/ERC165.sol
115+
+// downloads/CELO/ACL_MANAGER/ACLManager/src/contracts/dependencies/openzeppelin/contracts/ERC165.sol
116+
117+
/**
118+
* @dev Implementation of the {IERC165} interface.
119+
@@ -554,7 +561,7 @@ abstract contract ERC165 is IERC165 {
120+
}
121+
}
122+
123+
-// downloads/GNOSIS/ACL_MANAGER/ACLManager/src/core/contracts/interfaces/IACLManager.sol
124+
+// downloads/CELO/ACL_MANAGER/ACLManager/src/contracts/interfaces/IACLManager.sol
125+
126+
/**
127+
* @title IACLManager
128+
@@ -727,7 +734,7 @@ interface IACLManager {
129+
function isAssetListingAdmin(address admin) external view returns (bool);
130+
}
131+
132+
-// downloads/GNOSIS/ACL_MANAGER/ACLManager/src/core/contracts/dependencies/openzeppelin/contracts/AccessControl.sol
133+
+// downloads/CELO/ACL_MANAGER/ACLManager/src/contracts/dependencies/openzeppelin/contracts/AccessControl.sol
134+
135+
/**
136+
* @dev Contract module that allows children to implement role-based access
137+
@@ -937,7 +944,7 @@ abstract contract AccessControl is Context, IAccessControl, ERC165 {
138+
}
139+
}
140+
141+
-// downloads/GNOSIS/ACL_MANAGER/ACLManager/src/core/contracts/protocol/configuration/ACLManager.sol
142+
+// downloads/CELO/ACL_MANAGER/ACLManager/src/contracts/protocol/configuration/ACLManager.sol
143+
144+
/**
145+
* @title ACLManager
146+
```

0 commit comments

Comments
 (0)