Skip to content

Commit 3804d34

Browse files
committed
fix: resolve conflicts
2 parents 9d83cba + 6700bd9 commit 3804d34

28 files changed

Lines changed: 118 additions & 87 deletions

docs/3.4/Aave-v3.4-features.md

Lines changed: 29 additions & 29 deletions
Large diffs are not rendered by default.

snapshots/Pool.Setters.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"setUserEMode: leave eMode, 1 borrow, 1 supply": "107668",
44
"setUserEModeOnBehalfOf: enter eMode, 1 borrow, 1 supply": "137852",
55
"setUserEModeOnBehalfOf: leave eMode, 1 borrow, 1 supply": "110490",
6-
"setUserUseReserveAsCollateral: disableCollateral, 1 supply": "59218",
7-
"setUserUseReserveAsCollateral: enableCollateral, 1 supply": "80737",
6+
"setUserUseReserveAsCollateral: disableCollateral, 1 supply": "59174",
7+
"setUserUseReserveAsCollateral: enableCollateral, 1 supply": "80693",
88
"setUserUseReserveAsCollateralOnBehalfOf: disableCollateral, 1 supply": "61964",
99
"setUserUseReserveAsCollateralOnBehalfOf: enableCollateral, 1 supply": "83483"
1010
}

src/contracts/helpers/AaveProtocolDataProvider.sol

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ contract AaveProtocolDataProvider is IPoolDataProvider {
4141
address pool = addressesProvider.getPool();
4242
require(pool != address(0), Errors.ZeroAddressNotValid());
4343

44+
// @dev The pool can be immutable, because in practice it never changes after initialization.
45+
// The reason why it is not an actual `immutable` on `ADDRESSES_PROVIDER` is that there is a cross reference between ADDRESSES_PROVIDER <> Pool,
46+
// which in turn makes is complicated to have it `immutable` on both contracts.
4447
POOL = IPool(pool);
4548
}
4649

@@ -157,7 +160,7 @@ contract AaveProtocolDataProvider is IPoolDataProvider {
157160
view
158161
override
159162
returns (
160-
uint256,
163+
uint256 /* unbacked */,
161164
uint256 accruedToTreasuryScaled,
162165
uint256 totalAToken,
163166
uint256,
@@ -175,7 +178,7 @@ contract AaveProtocolDataProvider is IPoolDataProvider {
175178

176179
// @notice all stable debt related parameters deprecated in v3.2.0
177180
return (
178-
0,
181+
0, // @dev unbacked is deprecated from v3.4.0, always zero, never used
179182
reserve.accruedToTreasury,
180183
IERC20Detailed(reserve.aTokenAddress).totalSupply(),
181184
0,

src/contracts/helpers/WrappedTokenGatewayV3.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ contract WrappedTokenGatewayV3 is IWrappedTokenGatewayV3, Ownable {
5757
uint256 userBalance = aWETH.balanceOf(msg.sender);
5858
uint256 amountToWithdraw = amount;
5959

60-
// if amount is equal to uint(-1), the user wants to redeem everything
60+
// if amount is equal to type(uint256).max, the user wants to redeem everything
6161
if (amount == type(uint256).max) {
6262
amountToWithdraw = userBalance;
6363
}

src/contracts/instances/ATokenInstance.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import {VersionedInitializable} from '../misc/aave-upgradeability/VersionedIniti
1010

1111
import {AToken} from '../protocol/tokenization/AToken.sol';
1212

13+
/**
14+
* @title Aave ERC20 AToken Instance
15+
* @author BGD Labs
16+
* @notice Instance of the interest bearing token for the Aave protocol
17+
*/
1318
contract ATokenInstance is AToken {
1419
uint256 public constant ATOKEN_REVISION = 3;
1520

src/contracts/instances/ATokenWithDelegationInstance.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import {VersionedInitializable} from '../misc/aave-upgradeability/VersionedIniti
1010

1111
import {ATokenWithDelegation} from '../protocol/tokenization/ATokenWithDelegation.sol';
1212

13+
/**
14+
* @title Aave ERC20 ATokenWithDelegation Instance
15+
* @author BGD Labs
16+
* @notice Instance of the interest bearing token for the Aave protocol with additional delegation functionality used on aAAVE(mainnet)
17+
*/
1318
contract ATokenWithDelegationInstance is ATokenWithDelegation {
1419
uint256 public constant ATOKEN_REVISION = 3;
1520

src/contracts/instances/L2PoolInstance.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ import {IPoolAddressesProvider} from '../interfaces/IPoolAddressesProvider.sol';
66
import {IReserveInterestRateStrategy} from '../interfaces/IReserveInterestRateStrategy.sol';
77
import {PoolInstance} from './PoolInstance.sol';
88

9+
/**
10+
* @title Aave L2Pool Instance
11+
* @author BGD Labs
12+
* @notice Instance of the L2Pool for the Aave protocol, intended to be used on rollups
13+
*/
914
contract L2PoolInstance is L2Pool, PoolInstance {
1015
constructor(
1116
IPoolAddressesProvider provider,

src/contracts/instances/PoolConfiguratorInstance.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ pragma solidity ^0.8.0;
33

44
import {PoolConfigurator, IPoolAddressesProvider, IPool, VersionedInitializable} from '../protocol/pool/PoolConfigurator.sol';
55

6+
/**
7+
* @title Aave PoolConfigurator Instance
8+
* @author BGD Labs
9+
* @notice Instance of the PoolConfigurator of the Aave protocol
10+
*/
611
contract PoolConfiguratorInstance is PoolConfigurator {
712
uint256 public constant CONFIGURATOR_REVISION = 6;
813

src/contracts/instances/PoolInstance.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ import {IPoolAddressesProvider} from '../interfaces/IPoolAddressesProvider.sol';
66
import {IReserveInterestRateStrategy} from '../interfaces/IReserveInterestRateStrategy.sol';
77
import {Errors} from '../protocol/libraries/helpers/Errors.sol';
88

9+
/**
10+
* @title Aave Pool Instance
11+
* @author BGD Labs
12+
* @notice Instance of the Pool for the Aave protocol
13+
*/
914
contract PoolInstance is Pool {
1015
uint256 public constant POOL_REVISION = 8;
1116

src/contracts/instances/VariableDebtTokenInstance.sol

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
// SPDX-License-Identifier: BUSL-1.1
22
pragma solidity ^0.8.0;
33

4-
import {VariableDebtToken, IPool, IInitializableDebtToken, VersionedInitializable, IAaveIncentivesController, Errors} from '../protocol/tokenization/VariableDebtToken.sol';
5-
4+
import {VersionedInitializable} from '../misc/aave-upgradeability/VersionedInitializable.sol';
5+
import {VariableDebtToken, IPool, IInitializableDebtToken, Errors} from '../protocol/tokenization/VariableDebtToken.sol';
6+
7+
/**
8+
* @title Aave ERC20 VariableDebtToken Instance
9+
* @author BGD Labs
10+
* @notice Instance of the variable debt token for the Aave protocol
11+
*/
612
contract VariableDebtTokenInstance is VariableDebtToken {
713
uint256 public constant DEBT_TOKEN_REVISION = 3;
814

0 commit comments

Comments
 (0)