Skip to content
Draft
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
17 changes: 8 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"homepage": "https://github.com/bgd-labs/aave-address-book#readme",
"devDependencies": {
"@bgd-labs/react-web3-icons": "^1.51.0",
"@bgd-labs/toolbox": "^0.0.51",
"@bgd-labs/toolbox": "^0.0.52",
"@size-limit/file": "^11.2.0",
"@types/node": "^22.4.1",
"@uniswap/token-lists": "^1.0.0-beta.33",
Expand All @@ -112,4 +112,4 @@
"@types/react": "19.1.13",
"@types/react-dom": "19.1.9"
}
}
}
14 changes: 14 additions & 0 deletions safe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,11 @@ address,name,chainId
0x7bd81B1e0137Fc0fa013b1De2Be81180814C5deb,AaveV3EthereumHorizon ASSETS JAAA V_TOKEN,1
0x87593272C06f4FC49EC2942eBda0972d2F1Ab521,AaveV3EthereumHorizon ASSETS JAAA INTEREST_RATE_STRATEGY,1
0xF77f2537dba4ffD60f77fACdfB2c1706364fA03d,AaveV3EthereumHorizon ASSETS JAAA ORACLE,1
0x2255718832bC9fD3bE1CaF75084F4803DA14FF01,AaveV3EthereumHorizon ASSETS VBILL UNDERLYING,1
0xE1CfD16b8E4B1C86Bb5b7A104cfEFbc7b09326dD,AaveV3EthereumHorizon ASSETS VBILL A_TOKEN,1
0xEAf93Fd541f11D2617C2915D02F7fe67bCa71d4f,AaveV3EthereumHorizon ASSETS VBILL V_TOKEN,1
0x87593272C06f4FC49EC2942eBda0972d2F1Ab521,AaveV3EthereumHorizon ASSETS VBILL INTEREST_RATE_STRATEGY,1
0x5ed77a9D9b7cc80E9d0D7711024AF38C2643C1c4,AaveV3EthereumHorizon ASSETS VBILL ORACLE,1
0x70CC725B8f05e0f230B05C4e91ABc651E121354f,AaveV3EthereumHorizon COLLECTOR,1
0xB2668573828029917ffbD1e76270373511818498,AaveV3EthereumHorizon DEFAULT_A_TOKEN_IMPL,1
0x1D5D386a90CEA8AcEa9fa75389e97CF5F1AE21D3,AaveV3EthereumHorizon DEFAULT_INCENTIVES_CONTROLLER,1
Expand Down Expand Up @@ -2184,6 +2189,7 @@ address,name,chainId
0x56076f960980d453b5B749CB6A1c4D2E4e138B1A,AaveV3Polygon ASSETS USDT0 INTEREST_RATE_STRATEGY,137
0x01Aba1Fe7D72a3490bEef7CD0C09e1Ba2dD88D83,AaveV3Polygon ASSETS USDT0 ORACLE,137
0x87A1fdc4C726c459f597282be639a045062c0E46,AaveV3Polygon ASSETS USDT0 STATIC_A_TOKEN,137
0x2eaD203C5C1C00612B1DdbBb20e4180dA822d6ff,AaveV3Polygon ASSETS USDT0 STATA_TOKEN,137
0xD6DF932A45C0f255f85145f286eA0b292B21C90B,AaveV3Polygon ASSETS AAVE UNDERLYING,137
0xf329e36C7bF6E5E86ce2150875a84Ce77f477375,AaveV3Polygon ASSETS AAVE A_TOKEN,137
0xE80761Ea617F66F96274eA5e8c37f03960ecC679,AaveV3Polygon ASSETS AAVE V_TOKEN,137
Expand Down Expand Up @@ -2606,6 +2612,14 @@ address,name,chainId
0xA4aF5175ed38e791362F01c67a487DbA4aE07dFe,MiscSonic PROTOCOL_GUARDIAN,146
0x9eFf17b168867Dc2bCD87D2Ab44e4857902dbC29,MiscSonic REWARD_STEWARD,146
0xEB0682d148e874553008730f0686ea89db7DA412,MiscSonic TRANSPARENT_PROXY_FACTORY,146
0x8a86927E3cf7309D74E504EBDb866903DBD11a1f,GovernanceV3XLayer CL_EMERGENCY_ORACLE,196
0xFdd46155fD3DA5B907AD3B9f9395366290f58097,GovernanceV3XLayer CROSS_CHAIN_CONTROLLER,196
0xE2E8Badc5d50f8a6188577B89f50701cDE2D4e19,GovernanceV3XLayer EXECUTOR_LVL_1,196
0xeB55A63bf9993d80c86D47f819B5eC958c7C127B,GovernanceV3XLayer GOVERNANCE_GUARDIAN,196
0xD6727ec503A8d0C10a0EAA4e76eAf9A628188b25,GovernanceV3XLayer GRANULAR_GUARDIAN,196
0x80e11cB895a23C901a990239E5534054C66476B5,GovernanceV3XLayer PAYLOADS_CONTROLLER,196
0x9fE056F44510F970d724adA16903ba5D75CC4742,GovernanceV3XLayer PC_DATA_HELPER,196
0xEB0682d148e874553008730f0686ea89db7DA412,MiscXLayer TRANSPARENT_PROXY_FACTORY,196
0x9057ac7b2D35606F8AD5aE2FCBafcD94E58D9927,AaveV3ZkSync AAVE_PROTOCOL_DATA_PROVIDER,324
0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020,AaveV3ZkSync ACL_ADMIN,324
0xc6150b63c2F02528d4A969a248710A4658ed7928,AaveV3ZkSync ACL_MANAGER,324
Expand Down
15 changes: 15 additions & 0 deletions scripts/configs/governance/xlayer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { ChainId } from '@bgd-labs/toolbox';
import { GovernanceConfig } from '../types';

export const governanceConfigXlayer: GovernanceConfig = {
name: 'XLayer',
CHAIN_ID: ChainId.xLayer,
ADDRESSES: {
CROSS_CHAIN_CONTROLLER: '0xFdd46155fD3DA5B907AD3B9f9395366290f58097',
PAYLOADS_CONTROLLER: '0x80e11cB895a23C901a990239E5534054C66476B5',
PC_DATA_HELPER: '0x9fE056F44510F970d724adA16903ba5D75CC4742',
GRANULAR_GUARDIAN: '0xD6727ec503A8d0C10a0EAA4e76eAf9A628188b25',
GOVERNANCE_GUARDIAN: '0xeB55A63bf9993d80c86D47f819B5eC958c7C127B',
CL_EMERGENCY_ORACLE: '0x8a86927E3cf7309D74E504EBDb866903DBD11a1f',
},
};
10 changes: 10 additions & 0 deletions scripts/configs/networks/xlayer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { ChainId } from '@bgd-labs/toolbox';
import { NetworkAddresses } from '../types';

export const xLayerAddresses: NetworkAddresses = {
name: 'XLayer',
chainId: ChainId.xLayer,
addresses: {
TRANSPARENT_PROXY_FACTORY: '0xEB0682d148e874553008730f0686ea89db7DA412',
},
};
4 changes: 4 additions & 0 deletions scripts/generateAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ import { governanceConfigBob } from './configs/governance/bob';
import { bobAddresses } from './configs/networks/bob';
import { governanceConfigInk, governanceConfigInkWhiteLabel } from './configs/governance/ink';
import { governanceConfigPlasma } from './configs/governance/plasma';
import { xLayerAddresses } from './configs/networks/xlayer';
import { governanceConfigXlayer } from './configs/governance/xlayer';

async function main() {
// cleanup ts artifacts
Expand Down Expand Up @@ -131,6 +133,7 @@ async function main() {
governanceConfigInk,
governanceConfigInkWhiteLabel,
governanceConfigPlasma,
governanceConfigXlayer,
].map((config) => generateGovernanceLibrary(config)),
);
const v1Library = generateAaveV1();
Expand Down Expand Up @@ -222,6 +225,7 @@ async function main() {
inkAddresses,
inkWhiteLabelAddresses,
plasmaAddresses,
xLayerAddresses,
].map((addresses) => generateNetworkAddresses(addresses));

const govImports = generateGovV2();
Expand Down
2 changes: 2 additions & 0 deletions src/AaveV3Base.sol
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ library AaveV3BaseEModes {
uint8 internal constant wstETH__WETH = 8;

uint8 internal constant cbETH__WETH = 9;

uint8 internal constant cbBTC__USDC_GHO = 10;
}
library AaveV3BaseExternalLibraries {
// https://basescan.org/address/0x5e84CEe2afb7B37d2AB14722C39A7c1C26F5B0BB
Expand Down
22 changes: 21 additions & 1 deletion src/AaveV3EthereumHorizon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,34 @@ library AaveV3EthereumHorizonAssets {
// https://etherscan.io/address/0x87593272C06f4FC49EC2942eBda0972d2F1Ab521
address internal constant JAAA_INTEREST_RATE_STRATEGY =
0x87593272C06f4FC49EC2942eBda0972d2F1Ab521;

// https://etherscan.io/address/0x2255718832bC9fD3bE1CaF75084F4803DA14FF01
address internal constant VBILL_UNDERLYING = 0x2255718832bC9fD3bE1CaF75084F4803DA14FF01;

uint8 internal constant VBILL_DECIMALS = 6;

// https://etherscan.io/address/0xE1CfD16b8E4B1C86Bb5b7A104cfEFbc7b09326dD
address internal constant VBILL_A_TOKEN = 0xE1CfD16b8E4B1C86Bb5b7A104cfEFbc7b09326dD;

// https://etherscan.io/address/0xEAf93Fd541f11D2617C2915D02F7fe67bCa71d4f
address internal constant VBILL_V_TOKEN = 0xEAf93Fd541f11D2617C2915D02F7fe67bCa71d4f;

// https://etherscan.io/address/0x5ed77a9D9b7cc80E9d0D7711024AF38C2643C1c4
address internal constant VBILL_ORACLE = 0x5ed77a9D9b7cc80E9d0D7711024AF38C2643C1c4;

// https://etherscan.io/address/0x87593272C06f4FC49EC2942eBda0972d2F1Ab521
address internal constant VBILL_INTEREST_RATE_STRATEGY =
0x87593272C06f4FC49EC2942eBda0972d2F1Ab521;
}
library AaveV3EthereumHorizonEModes {
uint8 internal constant NONE = 0;

uint8 internal constant __ = 9;
uint8 internal constant VBILL__GHO = 1;

uint8 internal constant USTB__GHO = 2;

uint8 internal constant __ = 9;

uint8 internal constant USCC__GHO = 4;

uint8 internal constant USYC__GHO = 6;
Expand Down
3 changes: 3 additions & 0 deletions src/AaveV3Polygon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ library AaveV3PolygonAssets {
// https://polygonscan.com/address/0x87A1fdc4C726c459f597282be639a045062c0E46
address internal constant USDT0_STATIC_A_TOKEN = 0x87A1fdc4C726c459f597282be639a045062c0E46;

// https://polygonscan.com/address/0x2eaD203C5C1C00612B1DdbBb20e4180dA822d6ff
address internal constant USDT0_STATA_TOKEN = 0x2eaD203C5C1C00612B1DdbBb20e4180dA822d6ff;

// https://polygonscan.com/address/0xD6DF932A45C0f255f85145f286eA0b292B21C90B
address internal constant AAVE_UNDERLYING = 0xD6DF932A45C0f255f85145f286eA0b292B21C90B;

Expand Down
29 changes: 29 additions & 0 deletions src/GovernanceV3XLayer.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;

// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
import {IPayloadsControllerCore} from './GovernanceV3.sol';

library GovernanceV3XLayer {
// https://www.oklink.com/xlayer/address/0xFdd46155fD3DA5B907AD3B9f9395366290f58097
address internal constant CROSS_CHAIN_CONTROLLER = 0xFdd46155fD3DA5B907AD3B9f9395366290f58097;

// https://www.oklink.com/xlayer/address/0x80e11cB895a23C901a990239E5534054C66476B5
IPayloadsControllerCore internal constant PAYLOADS_CONTROLLER =
IPayloadsControllerCore(0x80e11cB895a23C901a990239E5534054C66476B5);

// https://www.oklink.com/xlayer/address/0x9fE056F44510F970d724adA16903ba5D75CC4742
address internal constant PC_DATA_HELPER = 0x9fE056F44510F970d724adA16903ba5D75CC4742;

// https://www.oklink.com/xlayer/address/0xD6727ec503A8d0C10a0EAA4e76eAf9A628188b25
address internal constant GRANULAR_GUARDIAN = 0xD6727ec503A8d0C10a0EAA4e76eAf9A628188b25;

// https://www.oklink.com/xlayer/address/0xeB55A63bf9993d80c86D47f819B5eC958c7C127B
address internal constant GOVERNANCE_GUARDIAN = 0xeB55A63bf9993d80c86D47f819B5eC958c7C127B;

// https://www.oklink.com/xlayer/address/0x8a86927E3cf7309D74E504EBDb866903DBD11a1f
address internal constant CL_EMERGENCY_ORACLE = 0x8a86927E3cf7309D74E504EBDb866903DBD11a1f;

// https://www.oklink.com/xlayer/address/0xE2E8Badc5d50f8a6188577B89f50701cDE2D4e19
address internal constant EXECUTOR_LVL_1 = 0xE2E8Badc5d50f8a6188577B89f50701cDE2D4e19;
}
8 changes: 8 additions & 0 deletions src/MiscXLayer.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;

library MiscXLayer {
// https://www.oklink.com/xlayer/address/0xEB0682d148e874553008730f0686ea89db7DA412
address internal constant TRANSPARENT_PROXY_FACTORY = 0xEB0682d148e874553008730f0686ea89db7DA412;
}
2 changes: 2 additions & 0 deletions src/ts/AaveAddressBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export * as GovernanceV3Bob from './GovernanceV3Bob';
export * as GovernanceV3Ink from './GovernanceV3Ink';
export * as GovernanceV3InkWhitelabel from './GovernanceV3InkWhitelabel';
export * as GovernanceV3Plasma from './GovernanceV3Plasma';
export * as GovernanceV3XLayer from './GovernanceV3XLayer';
export * as AaveV1 from './AaveV1';
export * as AaveV2EthereumAMM from './AaveV2EthereumAMM';
export * as AaveV2EthereumArc from './AaveV2EthereumArc';
Expand Down Expand Up @@ -80,6 +81,7 @@ export * as MiscBob from './MiscBob';
export * as MiscInk from './MiscInk';
export * as MiscInkWhitelabel from './MiscInkWhitelabel';
export * as MiscPlasma from './MiscPlasma';
export * as MiscXLayer from './MiscXLayer';
export * as AaveGovernanceV2 from './AaveGovernanceV2';
export * as AaveSafetyModule from './AaveSafetyModule';
export * as GhoEthereum from './GhoEthereum';
Expand Down
13 changes: 13 additions & 0 deletions src/ts/AaveV3Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,19 @@ export const E_MODES = {
liquidationThreshold: 9500,
liquidationBonus: 10200,
},
'10': {
label: 'cbBTC / USDC,GHO',
collateralBitmap: '64',
collateralAssets: ['0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf'],
borrowableBitmap: '272',
borrowableAssets: [
'0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
'0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee',
],
ltv: 8000,
liquidationThreshold: 8300,
liquidationBonus: 10400,
},
} as const;
export const EXTERNAL_LIBRARIES = {
FLASHLOAN_LOGIC: '0x5e84CEe2afb7B37d2AB14722C39A7c1C26F5B0BB',
Expand Down
4 changes: 2 additions & 2 deletions src/ts/AaveV3Ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,8 @@ export const E_MODES = {
],
borrowableBitmap: '1073741824',
borrowableAssets: ['0x4c9EDD5852cd905f086C759E8383e09bff1E68B3'],
ltv: 9360,
liquidationThreshold: 9560,
ltv: 9400,
liquidationThreshold: 9600,
liquidationBonus: 10200,
},
} as const;
Expand Down
23 changes: 16 additions & 7 deletions src/ts/AaveV3EthereumHorizon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,25 @@ export const ASSETS = {
INTEREST_RATE_STRATEGY: '0x87593272C06f4FC49EC2942eBda0972d2F1Ab521',
ORACLE: '0xF77f2537dba4ffD60f77fACdfB2c1706364fA03d',
},
VBILL: {
decimals: 6,
id: 8,
UNDERLYING: '0x2255718832bC9fD3bE1CaF75084F4803DA14FF01',
A_TOKEN: '0xE1CfD16b8E4B1C86Bb5b7A104cfEFbc7b09326dD',
V_TOKEN: '0xEAf93Fd541f11D2617C2915D02F7fe67bCa71d4f',
INTEREST_RATE_STRATEGY: '0x87593272C06f4FC49EC2942eBda0972d2F1Ab521',
ORACLE: '0x5ed77a9D9b7cc80E9d0D7711024AF38C2643C1c4',
},
} as const;
export const E_MODES = {
'1': {
label: ' / ',
collateralBitmap: '0',
collateralAssets: [],
borrowableBitmap: '0',
borrowableAssets: [],
ltv: 8300,
liquidationThreshold: 8800,
label: 'VBILL / GHO',
collateralBitmap: '256',
collateralAssets: ['0x2255718832bC9fD3bE1CaF75084F4803DA14FF01'],
borrowableBitmap: '1',
borrowableAssets: ['0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f'],
ltv: 8400,
liquidationThreshold: 8900,
liquidationBonus: 10300,
},
'2': {
Expand Down
24 changes: 12 additions & 12 deletions src/ts/AaveV3Plasma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,19 +244,19 @@ export const E_MODES = {
'0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb',
'0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34',
],
ltv: 8640,
liquidationThreshold: 8840,
liquidationBonus: 10460,
ltv: 8740,
liquidationThreshold: 8940,
liquidationBonus: 10430,
},
'6': {
label: 'PT_USDe_15JAN2026 / USDe',
collateralBitmap: '64',
collateralAssets: ['0x93B544c330F60A2aa05ceD87aEEffB8D38FD8c9a'],
borrowableBitmap: '2',
borrowableAssets: ['0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34'],
ltv: 8720,
liquidationThreshold: 8920,
liquidationBonus: 10360,
ltv: 8820,
liquidationThreshold: 9020,
liquidationBonus: 10330,
},
'7': {
label: 'PT_sUSDE_15JAN2026 / USDT0,USDe',
Expand All @@ -267,19 +267,19 @@ export const E_MODES = {
'0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb',
'0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34',
],
ltv: 8490,
liquidationThreshold: 8690,
liquidationBonus: 10600,
ltv: 8590,
liquidationThreshold: 8790,
liquidationBonus: 10570,
},
'8': {
label: 'PT_sUSDE_15JAN2026 / USDe',
collateralBitmap: '128',
collateralAssets: ['0x02FCC4989B4C9D435b7ceD3fE1Ba4CF77BBb5Dd8'],
borrowableBitmap: '2',
borrowableAssets: ['0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34'],
ltv: 8550,
liquidationThreshold: 8750,
liquidationBonus: 10490,
ltv: 8650,
liquidationThreshold: 8850,
liquidationBonus: 10450,
},
'9': {
label: 'wrsETH / WETH,wstETH',
Expand Down
1 change: 1 addition & 0 deletions src/ts/AaveV3Polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export const ASSETS = {
INTEREST_RATE_STRATEGY: '0x56076f960980d453b5B749CB6A1c4D2E4e138B1A',
ORACLE: '0x01Aba1Fe7D72a3490bEef7CD0C09e1Ba2dD88D83',
STATIC_A_TOKEN: '0x87A1fdc4C726c459f597282be639a045062c0E46',
STATA_TOKEN: '0x2eaD203C5C1C00612B1DdbBb20e4180dA822d6ff',
},
AAVE: {
decimals: 18,
Expand Down
Loading
Loading