@bgd-labs/aave-address-book 1.9.0 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/.prettierrc +12 -3
  2. package/CHANGELOG.md +14 -0
  3. package/dist/AaveAddressBook.d.ts +23 -23
  4. package/dist/AaveGovernanceV2.d.ts +6 -0
  5. package/dist/AaveGovernanceV2.js +11 -5
  6. package/dist/AaveSafetyModule.js +2 -2
  7. package/dist/AaveV2Avalanche.js +13 -13
  8. package/dist/AaveV2Ethereum.js +13 -13
  9. package/dist/AaveV2EthereumAMM.js +13 -13
  10. package/dist/AaveV2EthereumArc.js +10 -10
  11. package/dist/AaveV2Fuji.js +12 -12
  12. package/dist/AaveV2Goerli.js +12 -12
  13. package/dist/AaveV2Mumbai.js +12 -12
  14. package/dist/AaveV2Polygon.js +13 -13
  15. package/dist/AaveV3Arbitrum.js +18 -18
  16. package/dist/AaveV3ArbitrumGoerli.js +17 -17
  17. package/dist/AaveV3Avalanche.js +18 -18
  18. package/dist/AaveV3Ethereum.js +19 -19
  19. package/dist/AaveV3Fantom.js +18 -18
  20. package/dist/AaveV3FantomTestnet.js +17 -17
  21. package/dist/AaveV3Fuji.js +17 -17
  22. package/dist/AaveV3Goerli.js +17 -17
  23. package/dist/AaveV3Harmony.js +16 -16
  24. package/dist/AaveV3Mumbai.js +17 -17
  25. package/dist/AaveV3Optimism.js +18 -18
  26. package/dist/AaveV3OptimismGoerli.js +17 -17
  27. package/dist/AaveV3Polygon.js +18 -18
  28. package/package.json +6 -6
  29. package/src/AaveAddressBook.sol +23 -23
  30. package/src/AaveGovernanceV2.sol +17 -59
  31. package/src/AaveMisc.sol +3 -7
  32. package/src/AaveV2.sol +38 -84
  33. package/src/AaveV2Avalanche.sol +19 -28
  34. package/src/AaveV2Ethereum.sol +19 -29
  35. package/src/AaveV2EthereumAMM.sol +18 -29
  36. package/src/AaveV2EthereumArc.sol +14 -23
  37. package/src/AaveV2Fuji.sol +17 -26
  38. package/src/AaveV2Goerli.sol +17 -26
  39. package/src/AaveV2Mumbai.sol +17 -26
  40. package/src/AaveV2Polygon.sol +19 -29
  41. package/src/AaveV3.sol +2 -0
  42. package/src/AaveV3Arbitrum.sol +29 -37
  43. package/src/AaveV3ArbitrumGoerli.sol +27 -35
  44. package/src/AaveV3Avalanche.sol +29 -37
  45. package/src/AaveV3Ethereum.sol +29 -39
  46. package/src/AaveV3Fantom.sol +29 -37
  47. package/src/AaveV3FantomTestnet.sol +27 -35
  48. package/src/AaveV3Fuji.sol +27 -35
  49. package/src/AaveV3Goerli.sol +27 -35
  50. package/src/AaveV3Harmony.sol +26 -33
  51. package/src/AaveV3Mumbai.sol +27 -35
  52. package/src/AaveV3Optimism.sol +29 -37
  53. package/src/AaveV3OptimismGoerli.sol +27 -35
  54. package/src/AaveV3Polygon.sol +29 -37
  55. package/src/test/AaveV2Ethereum.t.sol +5 -20
  56. package/src/test/AaveV3Avalanche.t.sol +4 -16
  57. package/src/ts/AaveAddressBook.ts +23 -23
  58. package/src/ts/AaveGovernanceV2.ts +10 -4
  59. package/src/ts/AaveSafetyModule.ts +2 -2
  60. package/src/ts/AaveV2Avalanche.ts +13 -18
  61. package/src/ts/AaveV2Ethereum.ts +13 -19
  62. package/src/ts/AaveV2EthereumAMM.ts +13 -19
  63. package/src/ts/AaveV2EthereumArc.ts +10 -13
  64. package/src/ts/AaveV2Fuji.ts +12 -15
  65. package/src/ts/AaveV2Goerli.ts +12 -15
  66. package/src/ts/AaveV2Mumbai.ts +12 -15
  67. package/src/ts/AaveV2Polygon.ts +13 -19
  68. package/src/ts/AaveV3Arbitrum.ts +18 -28
  69. package/src/ts/AaveV3ArbitrumGoerli.ts +17 -25
  70. package/src/ts/AaveV3Avalanche.ts +18 -28
  71. package/src/ts/AaveV3Ethereum.ts +19 -29
  72. package/src/ts/AaveV3Fantom.ts +18 -28
  73. package/src/ts/AaveV3FantomTestnet.ts +17 -25
  74. package/src/ts/AaveV3Fuji.ts +17 -25
  75. package/src/ts/AaveV3Goerli.ts +17 -25
  76. package/src/ts/AaveV3Harmony.ts +16 -24
  77. package/src/ts/AaveV3Mumbai.ts +17 -25
  78. package/src/ts/AaveV3Optimism.ts +18 -28
  79. package/src/ts/AaveV3OptimismGoerli.ts +17 -25
  80. package/src/ts/AaveV3Polygon.ts +18 -28
@@ -9,30 +9,21 @@ interface IGovernanceStrategy {
9
9
  * @param blockNumber Blocknumber at which to fetch Proposition Power
10
10
  * @return Power number
11
11
  **/
12
- function getPropositionPowerAt(address user, uint256 blockNumber)
13
- external
14
- view
15
- returns (uint256);
12
+ function getPropositionPowerAt(address user, uint256 blockNumber) external view returns (uint256);
16
13
 
17
14
  /**
18
15
  * @dev Returns the total supply of Outstanding Proposition Tokens
19
16
  * @param blockNumber Blocknumber at which to evaluate
20
17
  * @return total supply at blockNumber
21
18
  **/
22
- function getTotalPropositionSupplyAt(uint256 blockNumber)
23
- external
24
- view
25
- returns (uint256);
19
+ function getTotalPropositionSupplyAt(uint256 blockNumber) external view returns (uint256);
26
20
 
27
21
  /**
28
22
  * @dev Returns the total supply of Outstanding Voting Tokens
29
23
  * @param blockNumber Blocknumber at which to evaluate
30
24
  * @return total supply at blockNumber
31
25
  **/
32
- function getTotalVotingSupplyAt(uint256 blockNumber)
33
- external
34
- view
35
- returns (uint256);
26
+ function getTotalVotingSupplyAt(uint256 blockNumber) external view returns (uint256);
36
27
 
37
28
  /**
38
29
  * @dev Returns the Vote Power of a user at a specific block number.
@@ -40,10 +31,7 @@ interface IGovernanceStrategy {
40
31
  * @param blockNumber Blocknumber at which to fetch Vote Power
41
32
  * @return Vote number
42
33
  **/
43
- function getVotingPowerAt(address user, uint256 blockNumber)
44
- external
45
- view
46
- returns (uint256);
34
+ function getVotingPowerAt(address user, uint256 blockNumber) external view returns (uint256);
47
35
  }
48
36
 
49
37
  interface IExecutorWithTimelock {
@@ -337,11 +325,7 @@ interface IAaveGovernanceV2 {
337
325
  * @param executionTime time when proposal underlying transactions can be executed
338
326
  * @param initiatorQueueing address of the initiator of the queuing transaction
339
327
  **/
340
- event ProposalQueued(
341
- uint256 id,
342
- uint256 executionTime,
343
- address indexed initiatorQueueing
344
- );
328
+ event ProposalQueued(uint256 id, uint256 executionTime, address indexed initiatorQueueing);
345
329
  /**
346
330
  * @dev emitted when a proposal is executed
347
331
  * @param id Id of the proposal
@@ -355,22 +339,11 @@ interface IAaveGovernanceV2 {
355
339
  * @param support boolean, true = vote for, false = vote against
356
340
  * @param votingPower Power of the voter/vote
357
341
  **/
358
- event VoteEmitted(
359
- uint256 id,
360
- address indexed voter,
361
- bool support,
362
- uint256 votingPower
363
- );
342
+ event VoteEmitted(uint256 id, address indexed voter, bool support, uint256 votingPower);
364
343
 
365
- event GovernanceStrategyChanged(
366
- address indexed newStrategy,
367
- address indexed initiatorChange
368
- );
344
+ event GovernanceStrategyChanged(address indexed newStrategy, address indexed initiatorChange);
369
345
 
370
- event VotingDelayChanged(
371
- uint256 newVotingDelay,
372
- address indexed initiatorChange
373
- );
346
+ event VotingDelayChanged(uint256 newVotingDelay, address indexed initiatorChange);
374
347
 
375
348
  event ExecutorAuthorized(address executor);
376
349
 
@@ -507,10 +480,7 @@ interface IAaveGovernanceV2 {
507
480
  * @param proposalId id of the proposal to get
508
481
  * @return the proposal as ProposalWithoutVotes memory object
509
482
  **/
510
- function getProposalById(uint256 proposalId)
511
- external
512
- view
513
- returns (ProposalWithoutVotes memory);
483
+ function getProposalById(uint256 proposalId) external view returns (ProposalWithoutVotes memory);
514
484
 
515
485
  /**
516
486
  * @dev Getter of the Vote of a voter about a proposal
@@ -519,44 +489,32 @@ interface IAaveGovernanceV2 {
519
489
  * @param voter address of the voter
520
490
  * @return The associated Vote memory object
521
491
  **/
522
- function getVoteOnProposal(uint256 proposalId, address voter)
523
- external
524
- view
525
- returns (Vote memory);
492
+ function getVoteOnProposal(uint256 proposalId, address voter) external view returns (Vote memory);
526
493
 
527
494
  /**
528
495
  * @dev Get the current state of a proposal
529
496
  * @param proposalId id of the proposal
530
497
  * @return The current state if the proposal
531
498
  **/
532
- function getProposalState(uint256 proposalId)
533
- external
534
- view
535
- returns (ProposalState);
499
+ function getProposalState(uint256 proposalId) external view returns (ProposalState);
536
500
  }
537
501
 
538
502
  library AaveGovernanceV2 {
539
503
  IAaveGovernanceV2 internal constant GOV =
540
504
  IAaveGovernanceV2(0xEC568fffba86c094cf06b22134B23074DFE2252c);
541
505
 
542
- address public constant SHORT_EXECUTOR =
543
- 0xEE56e2B3D491590B5b31738cC34d5232F378a8D5;
506
+ address public constant SHORT_EXECUTOR = 0xEE56e2B3D491590B5b31738cC34d5232F378a8D5;
544
507
 
545
- address public constant LONG_EXECUTOR =
546
- 0x79426A1c24B2978D90d7A5070a46C65B07bC4299;
508
+ address public constant LONG_EXECUTOR = 0x79426A1c24B2978D90d7A5070a46C65B07bC4299;
547
509
 
548
- address public constant ARC_TIMELOCK =
549
- 0xAce1d11d836cb3F51Ef658FD4D353fFb3c301218;
510
+ address public constant ARC_TIMELOCK = 0xAce1d11d836cb3F51Ef658FD4D353fFb3c301218;
550
511
 
551
512
  // https://github.com/aave/governance-crosschain-bridges
552
- address internal constant POLYGON_BRIDGE_EXECUTOR =
553
- 0xdc9A35B16DB4e126cFeDC41322b3a36454B1F772;
513
+ address internal constant POLYGON_BRIDGE_EXECUTOR = 0xdc9A35B16DB4e126cFeDC41322b3a36454B1F772;
554
514
 
555
- address internal constant OPTIMISM_BRIDGE_EXECUTOR =
556
- 0x7d9103572bE58FfE99dc390E8246f02dcAe6f611;
515
+ address internal constant OPTIMISM_BRIDGE_EXECUTOR = 0x7d9103572bE58FfE99dc390E8246f02dcAe6f611;
557
516
 
558
- address internal constant ARBITRUM_BRIDGE_EXECUTOR =
559
- 0x7d9103572bE58FfE99dc390E8246f02dcAe6f611;
517
+ address internal constant ARBITRUM_BRIDGE_EXECUTOR = 0x7d9103572bE58FfE99dc390E8246f02dcAe6f611;
560
518
 
561
519
  // https://github.com/bgd-labs/aave-v3-crosschain-listing-template/tree/master/src/contracts
562
520
  address internal constant CROSSCHAIN_FORWARDER_POLYGON =
package/src/AaveMisc.sol CHANGED
@@ -71,16 +71,12 @@ interface IAaveEcosystemReserveController {
71
71
  * @param streamId The id of the stream to cancel
72
72
  * @return bool If the cancellation happened correctly
73
73
  **/
74
- function cancelStream(address collector, uint256 streamId)
75
- external
76
- returns (bool);
74
+ function cancelStream(address collector, uint256 streamId) external returns (bool);
77
75
  }
78
76
 
79
77
  library AaveMisc {
80
- address internal constant ECOSYSTEM_RESERVE =
81
- 0x25F2226B597E8F9514B3F68F00f494cF4f286491;
78
+ address internal constant ECOSYSTEM_RESERVE = 0x25F2226B597E8F9514B3F68F00f494cF4f286491;
82
79
 
83
- IAaveEcosystemReserveController
84
- internal constant AAVE_ECOSYSTEM_RESERVE_CONTROLLER =
80
+ IAaveEcosystemReserveController internal constant AAVE_ECOSYSTEM_RESERVE_CONTROLLER =
85
81
  IAaveEcosystemReserveController(0x3d569673dAa0575c936c7c67c4E6AedA69CC630C);
86
82
  }
package/src/AaveV2.sol CHANGED
@@ -168,12 +168,7 @@ interface ILendingPool {
168
168
  * @param to Address that will receive the underlying
169
169
  * @param amount The amount to be withdrawn
170
170
  **/
171
- event Withdraw(
172
- address indexed reserve,
173
- address indexed user,
174
- address indexed to,
175
- uint256 amount
176
- );
171
+ event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount);
177
172
 
178
173
  /**
179
174
  * @dev Emitted on borrow() and flashLoan() when debt needs to be opened
@@ -223,30 +218,21 @@ interface ILendingPool {
223
218
  * @param reserve The address of the underlying asset of the reserve
224
219
  * @param user The address of the user enabling the usage as collateral
225
220
  **/
226
- event ReserveUsedAsCollateralEnabled(
227
- address indexed reserve,
228
- address indexed user
229
- );
221
+ event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user);
230
222
 
231
223
  /**
232
224
  * @dev Emitted on setUserUseReserveAsCollateral()
233
225
  * @param reserve The address of the underlying asset of the reserve
234
226
  * @param user The address of the user enabling the usage as collateral
235
227
  **/
236
- event ReserveUsedAsCollateralDisabled(
237
- address indexed reserve,
238
- address indexed user
239
- );
228
+ event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user);
240
229
 
241
230
  /**
242
231
  * @dev Emitted on rebalanceStableBorrowRate()
243
232
  * @param reserve The address of the underlying asset of the reserve
244
233
  * @param user The address of the user for which the rebalance has been executed
245
234
  **/
246
- event RebalanceStableBorrowRate(
247
- address indexed reserve,
248
- address indexed user
249
- );
235
+ event RebalanceStableBorrowRate(address indexed reserve, address indexed user);
250
236
 
251
237
  /**
252
238
  * @dev Emitted on flashLoan()
@@ -331,12 +317,7 @@ interface ILendingPool {
331
317
  * @param referralCode Code used to register the integrator originating the operation, for potential rewards.
332
318
  * 0 if the action is executed directly by the user, without any middle-man
333
319
  **/
334
- function deposit(
335
- address asset,
336
- uint256 amount,
337
- address onBehalfOf,
338
- uint16 referralCode
339
- ) external;
320
+ function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;
340
321
 
341
322
  /**
342
323
  * @dev Withdraws an `amount` of underlying asset from the reserve, burning the equivalent aTokens owned
@@ -349,11 +330,7 @@ interface ILendingPool {
349
330
  * different wallet
350
331
  * @return The final amount withdrawn
351
332
  **/
352
- function withdraw(
353
- address asset,
354
- uint256 amount,
355
- address to
356
- ) external returns (uint256);
333
+ function withdraw(address asset, uint256 amount, address to) external returns (uint256);
357
334
 
358
335
  /**
359
336
  * @dev Allows users to borrow a specific `amount` of the reserve underlying asset, provided that the borrower
@@ -420,8 +397,7 @@ interface ILendingPool {
420
397
  * @param asset The address of the underlying asset deposited
421
398
  * @param useAsCollateral `true` if the user wants to use the deposit as collateral, `false` otherwise
422
399
  **/
423
- function setUserUseReserveAsCollateral(address asset, bool useAsCollateral)
424
- external;
400
+ function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) external;
425
401
 
426
402
  /**
427
403
  * @dev Function to liquidate a non-healthy position collateral-wise, with Health Factor below 1
@@ -479,7 +455,9 @@ interface ILendingPool {
479
455
  * @return ltv the loan to value of the user
480
456
  * @return healthFactor the current health factor of the user
481
457
  **/
482
- function getUserAccountData(address user)
458
+ function getUserAccountData(
459
+ address user
460
+ )
483
461
  external
484
462
  view
485
463
  returns (
@@ -511,50 +489,39 @@ interface ILendingPool {
511
489
  * @param asset The address of the underlying asset of the reserve
512
490
  * @return The configuration of the reserve
513
491
  **/
514
- function getConfiguration(address asset)
515
- external
516
- view
517
- returns (DataTypes.ReserveConfigurationMap memory);
492
+ function getConfiguration(
493
+ address asset
494
+ ) external view returns (DataTypes.ReserveConfigurationMap memory);
518
495
 
519
496
  /**
520
497
  * @dev Returns the configuration of the user across all the reserves
521
498
  * @param user The user address
522
499
  * @return The configuration of the user
523
500
  **/
524
- function getUserConfiguration(address user)
525
- external
526
- view
527
- returns (DataTypes.UserConfigurationMap memory);
501
+ function getUserConfiguration(
502
+ address user
503
+ ) external view returns (DataTypes.UserConfigurationMap memory);
528
504
 
529
505
  /**
530
506
  * @dev Returns the normalized income normalized income of the reserve
531
507
  * @param asset The address of the underlying asset of the reserve
532
508
  * @return The reserve's normalized income
533
509
  */
534
- function getReserveNormalizedIncome(address asset)
535
- external
536
- view
537
- returns (uint256);
510
+ function getReserveNormalizedIncome(address asset) external view returns (uint256);
538
511
 
539
512
  /**
540
513
  * @dev Returns the normalized variable debt per unit of asset
541
514
  * @param asset The address of the underlying asset of the reserve
542
515
  * @return The reserve normalized variable debt
543
516
  */
544
- function getReserveNormalizedVariableDebt(address asset)
545
- external
546
- view
547
- returns (uint256);
517
+ function getReserveNormalizedVariableDebt(address asset) external view returns (uint256);
548
518
 
549
519
  /**
550
520
  * @dev Returns the state and configuration of the reserve
551
521
  * @param asset The address of the underlying asset of the reserve
552
522
  * @return The state of the reserve
553
523
  **/
554
- function getReserveData(address asset)
555
- external
556
- view
557
- returns (DataTypes.ReserveData memory);
524
+ function getReserveData(address asset) external view returns (DataTypes.ReserveData memory);
558
525
 
559
526
  function finalizeTransfer(
560
527
  address asset,
@@ -567,10 +534,7 @@ interface ILendingPool {
567
534
 
568
535
  function getReservesList() external view returns (address[] memory);
569
536
 
570
- function getAddressesProvider()
571
- external
572
- view
573
- returns (ILendingPoolAddressesProvider);
537
+ function getAddressesProvider() external view returns (ILendingPoolAddressesProvider);
574
538
 
575
539
  function setPause(bool val) external;
576
540
 
@@ -599,10 +563,7 @@ interface ILendingPoolConfigurator {
599
563
  * @param asset The address of the underlying asset of the reserve
600
564
  * @param stableRateEnabled True if stable rate borrowing is enabled, false otherwise
601
565
  **/
602
- event BorrowingEnabledOnReserve(
603
- address indexed asset,
604
- bool stableRateEnabled
605
- );
566
+ event BorrowingEnabledOnReserve(address indexed asset, bool stableRateEnabled);
606
567
 
607
568
  /**
608
569
  * @dev Emitted when borrowing is disabled on a reserve
@@ -679,10 +640,7 @@ interface ILendingPoolConfigurator {
679
640
  * @param asset The address of the underlying asset of the reserve
680
641
  * @param strategy The new address of the interest strategy contract
681
642
  **/
682
- event ReserveInterestRateStrategyChanged(
683
- address indexed asset,
684
- address strategy
685
- );
643
+ event ReserveInterestRateStrategyChanged(address indexed asset, address strategy);
686
644
 
687
645
  /**
688
646
  * @dev Emitted when an aToken implementation is upgraded
@@ -736,9 +694,7 @@ interface ILendingPoolConfigurator {
736
694
  address interestRateStrategyAddress
737
695
  ) external;
738
696
 
739
- function batchInitReserve(
740
- ConfiguratorInputTypes.InitReserveInput[] calldata input
741
- ) external;
697
+ function batchInitReserve(ConfiguratorInputTypes.InitReserveInput[] calldata input) external;
742
698
 
743
699
  /**
744
700
  * @dev Updates the aToken implementation for the reserve
@@ -752,24 +708,21 @@ interface ILendingPoolConfigurator {
752
708
  * @param asset The address of the underlying asset of the reserve to be updated
753
709
  * @param implementation The address of the new aToken implementation
754
710
  **/
755
- function updateStableDebtToken(address asset, address implementation)
756
- external;
711
+ function updateStableDebtToken(address asset, address implementation) external;
757
712
 
758
713
  /**
759
714
  * @dev Updates the variable debt token implementation for the asset
760
715
  * @param asset The address of the underlying asset of the reserve to be updated
761
716
  * @param implementation The address of the new aToken implementation
762
717
  **/
763
- function updateVariableDebtToken(address asset, address implementation)
764
- external;
718
+ function updateVariableDebtToken(address asset, address implementation) external;
765
719
 
766
720
  /**
767
721
  * @dev Enables borrowing on a reserve
768
722
  * @param asset The address of the underlying asset of the reserve
769
723
  * @param stableBorrowRateEnabled True if stable borrow rate needs to be enabled by default on this reserve
770
724
  **/
771
- function enableBorrowingOnReserve(address asset, bool stableBorrowRateEnabled)
772
- external;
725
+ function enableBorrowingOnReserve(address asset, bool stableBorrowRateEnabled) external;
773
726
 
774
727
  /**
775
728
  * @dev Disables borrowing on a reserve
@@ -865,10 +818,7 @@ interface IAaveOracle {
865
818
  /// @notice External function called by the Aave governance to set or replace sources of assets
866
819
  /// @param assets The addresses of the assets
867
820
  /// @param sources The address of the source of each asset
868
- function setAssetSources(
869
- address[] calldata assets,
870
- address[] calldata sources
871
- ) external;
821
+ function setAssetSources(address[] calldata assets, address[] calldata sources) external;
872
822
 
873
823
  /// @notice Sets the fallbackOracle
874
824
  /// - Callable only by the Aave governance
@@ -881,10 +831,7 @@ interface IAaveOracle {
881
831
 
882
832
  /// @notice Gets a list of prices from a list of assets addresses
883
833
  /// @param assets The list of assets addresses
884
- function getAssetsPrices(address[] calldata assets)
885
- external
886
- view
887
- returns (uint256[] memory);
834
+ function getAssetsPrices(address[] calldata assets) external view returns (uint256[] memory);
888
835
 
889
836
  /// @notice Gets the address of the source for an asset address
890
837
  /// @param asset The address of the asset
@@ -903,7 +850,9 @@ struct TokenData {
903
850
 
904
851
  // TODO: incomplete interface
905
852
  interface IAaveProtocolDataProvider {
906
- function getReserveConfigurationData(address asset)
853
+ function getReserveConfigurationData(
854
+ address asset
855
+ )
907
856
  external
908
857
  view
909
858
  returns (
@@ -921,7 +870,9 @@ interface IAaveProtocolDataProvider {
921
870
 
922
871
  function getAllReservesTokens() external view returns (TokenData[] memory);
923
872
 
924
- function getReserveTokensAddresses(address asset)
873
+ function getReserveTokensAddresses(
874
+ address asset
875
+ )
925
876
  external
926
877
  view
927
878
  returns (
@@ -930,7 +881,10 @@ interface IAaveProtocolDataProvider {
930
881
  address variableDebtTokenAddress
931
882
  );
932
883
 
933
- function getUserReserveData(address asset, address user)
884
+ function getUserReserveData(
885
+ address asset,
886
+ address user
887
+ )
934
888
  external
935
889
  view
936
890
  returns (
@@ -2,46 +2,37 @@
2
2
  // AUTOGENERATED - DON'T MANUALLY CHANGE
3
3
  pragma solidity >=0.6.0;
4
4
 
5
- import {ILendingPoolAddressesProvider, ILendingPool, ILendingPoolConfigurator, IAaveOracle, IAaveProtocolDataProvider} from "./AaveV2.sol";
5
+ import {ILendingPoolAddressesProvider, ILendingPool, ILendingPoolConfigurator, IAaveOracle, IAaveProtocolDataProvider} from './AaveV2.sol';
6
6
 
7
7
  library AaveV2Avalanche {
8
- ILendingPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
9
- ILendingPoolAddressesProvider(
10
- 0xb6A86025F0FE1862B372cb0ca18CE3EDe02A318f
11
- );
8
+ ILendingPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
9
+ ILendingPoolAddressesProvider(0xb6A86025F0FE1862B372cb0ca18CE3EDe02A318f);
12
10
 
13
- ILendingPool internal constant POOL =
14
- ILendingPool(0x4F01AeD16D97E3aB5ab2B501154DC9bb0F1A5A2C);
11
+ ILendingPool internal constant POOL = ILendingPool(0x4F01AeD16D97E3aB5ab2B501154DC9bb0F1A5A2C);
15
12
 
16
- ILendingPoolConfigurator internal constant POOL_CONFIGURATOR =
17
- ILendingPoolConfigurator(0x230B618aD4C475393A7239aE03630042281BD86e);
13
+ ILendingPoolConfigurator internal constant POOL_CONFIGURATOR =
14
+ ILendingPoolConfigurator(0x230B618aD4C475393A7239aE03630042281BD86e);
18
15
 
19
- IAaveOracle internal constant ORACLE =
20
- IAaveOracle(0xdC336Cd4769f4cC7E9d726DA53e6d3fC710cEB89);
16
+ IAaveOracle internal constant ORACLE = IAaveOracle(0xdC336Cd4769f4cC7E9d726DA53e6d3fC710cEB89);
21
17
 
22
- IAaveProtocolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
23
- IAaveProtocolDataProvider(0x65285E9dfab318f57051ab2b139ccCf232945451);
18
+ IAaveProtocolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
19
+ IAaveProtocolDataProvider(0x65285E9dfab318f57051ab2b139ccCf232945451);
24
20
 
25
- address internal constant POOL_ADMIN =
26
- 0x01244E7842254e3FD229CD263472076B1439D1Cd;
21
+ address internal constant POOL_ADMIN = 0x01244E7842254e3FD229CD263472076B1439D1Cd;
27
22
 
28
- address internal constant EMERGENCY_ADMIN =
29
- 0x01244E7842254e3FD229CD263472076B1439D1Cd;
23
+ address internal constant EMERGENCY_ADMIN = 0x01244E7842254e3FD229CD263472076B1439D1Cd;
30
24
 
31
- address internal constant COLLECTOR =
32
- 0x467b92aF281d14cB6809913AD016a607b5ba8A36;
25
+ address internal constant COLLECTOR = 0x467b92aF281d14cB6809913AD016a607b5ba8A36;
33
26
 
34
- address internal constant COLLECTOR_CONTROLLER = address(0);
27
+ address internal constant COLLECTOR_CONTROLLER = address(0);
35
28
 
36
- address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
37
- 0x4235E22d9C3f28DCDA82b58276cb6370B01265C2;
29
+ address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
30
+ 0x4235E22d9C3f28DCDA82b58276cb6370B01265C2;
38
31
 
39
- address internal constant WETH_GATEWAY =
40
- 0xC27d4dBefc2C0CE57916a699971b58a3BD9C7d5b;
32
+ address internal constant WETH_GATEWAY = 0xC27d4dBefc2C0CE57916a699971b58a3BD9C7d5b;
41
33
 
42
- address internal constant SWAP_COLLATERAL_ADAPTER =
43
- 0x2EcF2a2e74B19Aab2a62312167aFF4B78E93B6C5;
34
+ address internal constant SWAP_COLLATERAL_ADAPTER = 0x2EcF2a2e74B19Aab2a62312167aFF4B78E93B6C5;
44
35
 
45
- address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
46
- 0x935b362EE3E1f342cc48118C528AAbee5118F6e6;
36
+ address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
37
+ 0x935b362EE3E1f342cc48118C528AAbee5118F6e6;
47
38
  }
@@ -2,47 +2,37 @@
2
2
  // AUTOGENERATED - DON'T MANUALLY CHANGE
3
3
  pragma solidity >=0.6.0;
4
4
 
5
- import {ILendingPoolAddressesProvider, ILendingPool, ILendingPoolConfigurator, IAaveOracle, IAaveProtocolDataProvider} from "./AaveV2.sol";
5
+ import {ILendingPoolAddressesProvider, ILendingPool, ILendingPoolConfigurator, IAaveOracle, IAaveProtocolDataProvider} from './AaveV2.sol';
6
6
 
7
7
  library AaveV2Ethereum {
8
- ILendingPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
9
- ILendingPoolAddressesProvider(
10
- 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5
11
- );
8
+ ILendingPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
9
+ ILendingPoolAddressesProvider(0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5);
12
10
 
13
- ILendingPool internal constant POOL =
14
- ILendingPool(0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9);
11
+ ILendingPool internal constant POOL = ILendingPool(0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9);
15
12
 
16
- ILendingPoolConfigurator internal constant POOL_CONFIGURATOR =
17
- ILendingPoolConfigurator(0x311Bb771e4F8952E6Da169b425E7e92d6Ac45756);
13
+ ILendingPoolConfigurator internal constant POOL_CONFIGURATOR =
14
+ ILendingPoolConfigurator(0x311Bb771e4F8952E6Da169b425E7e92d6Ac45756);
18
15
 
19
- IAaveOracle internal constant ORACLE =
20
- IAaveOracle(0xA50ba011c48153De246E5192C8f9258A2ba79Ca9);
16
+ IAaveOracle internal constant ORACLE = IAaveOracle(0xA50ba011c48153De246E5192C8f9258A2ba79Ca9);
21
17
 
22
- IAaveProtocolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
23
- IAaveProtocolDataProvider(0x057835Ad21a177dbdd3090bB1CAE03EaCF78Fc6d);
18
+ IAaveProtocolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
19
+ IAaveProtocolDataProvider(0x057835Ad21a177dbdd3090bB1CAE03EaCF78Fc6d);
24
20
 
25
- address internal constant POOL_ADMIN =
26
- 0xEE56e2B3D491590B5b31738cC34d5232F378a8D5;
21
+ address internal constant POOL_ADMIN = 0xEE56e2B3D491590B5b31738cC34d5232F378a8D5;
27
22
 
28
- address internal constant EMERGENCY_ADMIN =
29
- 0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633;
23
+ address internal constant EMERGENCY_ADMIN = 0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633;
30
24
 
31
- address internal constant COLLECTOR =
32
- 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c;
25
+ address internal constant COLLECTOR = 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c;
33
26
 
34
- address internal constant COLLECTOR_CONTROLLER =
35
- 0x3d569673dAa0575c936c7c67c4E6AedA69CC630C;
27
+ address internal constant COLLECTOR_CONTROLLER = 0x3d569673dAa0575c936c7c67c4E6AedA69CC630C;
36
28
 
37
- address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
38
- 0x52D306e36E3B6B02c153d0266ff0f85d18BCD413;
29
+ address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
30
+ 0x52D306e36E3B6B02c153d0266ff0f85d18BCD413;
39
31
 
40
- address internal constant WETH_GATEWAY =
41
- 0xEFFC18fC3b7eb8E676dac549E0c693ad50D1Ce31;
32
+ address internal constant WETH_GATEWAY = 0xEFFC18fC3b7eb8E676dac549E0c693ad50D1Ce31;
42
33
 
43
- address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
44
- 0x80Aca0C645fEdABaa20fd2Bf0Daf57885A309FE6;
34
+ address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
35
+ 0x80Aca0C645fEdABaa20fd2Bf0Daf57885A309FE6;
45
36
 
46
- address internal constant SWAP_COLLATERAL_ADAPTER =
47
- 0x135896DE8421be2ec868E0b811006171D9df802A;
37
+ address internal constant SWAP_COLLATERAL_ADAPTER = 0x135896DE8421be2ec868E0b811006171D9df802A;
48
38
  }
@@ -2,47 +2,36 @@
2
2
  // AUTOGENERATED - DON'T MANUALLY CHANGE
3
3
  pragma solidity >=0.6.0;
4
4
 
5
- import {ILendingPoolAddressesProvider, ILendingPool, ILendingPoolConfigurator, IAaveOracle, IAaveProtocolDataProvider} from "./AaveV2.sol";
5
+ import {ILendingPoolAddressesProvider, ILendingPool, ILendingPoolConfigurator, IAaveOracle, IAaveProtocolDataProvider} from './AaveV2.sol';
6
6
 
7
7
  library AaveV2EthereumAMM {
8
- ILendingPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
9
- ILendingPoolAddressesProvider(
10
- 0xAcc030EF66f9dFEAE9CbB0cd1B25654b82cFA8d5
11
- );
8
+ ILendingPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
9
+ ILendingPoolAddressesProvider(0xAcc030EF66f9dFEAE9CbB0cd1B25654b82cFA8d5);
12
10
 
13
- ILendingPool internal constant POOL =
14
- ILendingPool(0x7937D4799803FbBe595ed57278Bc4cA21f3bFfCB);
11
+ ILendingPool internal constant POOL = ILendingPool(0x7937D4799803FbBe595ed57278Bc4cA21f3bFfCB);
15
12
 
16
- ILendingPoolConfigurator internal constant POOL_CONFIGURATOR =
17
- ILendingPoolConfigurator(0x23A875eDe3F1030138701683e42E9b16A7F87768);
13
+ ILendingPoolConfigurator internal constant POOL_CONFIGURATOR =
14
+ ILendingPoolConfigurator(0x23A875eDe3F1030138701683e42E9b16A7F87768);
18
15
 
19
- IAaveOracle internal constant ORACLE =
20
- IAaveOracle(0xA50ba011c48153De246E5192C8f9258A2ba79Ca9);
16
+ IAaveOracle internal constant ORACLE = IAaveOracle(0xA50ba011c48153De246E5192C8f9258A2ba79Ca9);
21
17
 
22
- IAaveProtocolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
23
- IAaveProtocolDataProvider(0x0000000000000000000000000000000000000000);
18
+ IAaveProtocolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
19
+ IAaveProtocolDataProvider(0x0000000000000000000000000000000000000000);
24
20
 
25
- address internal constant POOL_ADMIN =
26
- 0xEE56e2B3D491590B5b31738cC34d5232F378a8D5;
21
+ address internal constant POOL_ADMIN = 0xEE56e2B3D491590B5b31738cC34d5232F378a8D5;
27
22
 
28
- address internal constant EMERGENCY_ADMIN =
29
- 0xB9062896ec3A615a4e4444DF183F0531a77218AE;
23
+ address internal constant EMERGENCY_ADMIN = 0xB9062896ec3A615a4e4444DF183F0531a77218AE;
30
24
 
31
- address internal constant COLLECTOR =
32
- 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c;
25
+ address internal constant COLLECTOR = 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c;
33
26
 
34
- address internal constant COLLECTOR_CONTROLLER =
35
- 0x3d569673dAa0575c936c7c67c4E6AedA69CC630C;
27
+ address internal constant COLLECTOR_CONTROLLER = 0x3d569673dAa0575c936c7c67c4E6AedA69CC630C;
36
28
 
37
- address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
38
- 0x52D306e36E3B6B02c153d0266ff0f85d18BCD413;
29
+ address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
30
+ 0x52D306e36E3B6B02c153d0266ff0f85d18BCD413;
39
31
 
40
- address internal constant WETH_GATEWAY =
41
- 0x1C4a4e31231F71Fc34867D034a9E68f6fC798249;
32
+ address internal constant WETH_GATEWAY = 0x1C4a4e31231F71Fc34867D034a9E68f6fC798249;
42
33
 
43
- address internal constant WALLET_BALANCE_PROVIDER =
44
- 0x8E8dAd5409E0263a51C0aB5055dA66Be28cFF922;
34
+ address internal constant WALLET_BALANCE_PROVIDER = 0x8E8dAd5409E0263a51C0aB5055dA66Be28cFF922;
45
35
 
46
- address internal constant UI_POOL_DATA_PROVIDER =
47
- 0x30375522F67a6308630d49A694ca1491fA2D3BC6;
36
+ address internal constant UI_POOL_DATA_PROVIDER = 0x30375522F67a6308630d49A694ca1491fA2D3BC6;
48
37
  }