Skip to content

Commit

Permalink
feat: lido and etherfi debt swap adapters (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
grothem authored Nov 20, 2024
1 parent 59e7ab8 commit d35af65
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions safe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ address,name,chainId
0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA,AaveV3EthereumEtherFi CAPS_PLUS_RISK_STEWARD,1
0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c,AaveV3EthereumEtherFi COLLECTOR,1
0x909bA8DA4c826C62013Ce3A30ce1F42943F3b340,AaveV3EthereumEtherFi CONFIG_ENGINE,1
0x40ede12b44d98Fc4E53A2fB027D1BD1846e1690C,AaveV3EthereumEtherFi DEBT_SWAP_ADAPTER,1
0xaFFA06528Bd92625de2e7A0cfa0119319265Ea4b,AaveV3EthereumEtherFi DEFAULT_A_TOKEN_IMPL_REV_1,1
0x8164Cc65827dcFe994AB23944CBC90e0aa80bFcb,AaveV3EthereumEtherFi DEFAULT_INCENTIVES_CONTROLLER,1
0xBb077DaFFeb23B2126E7358b0b122ba6838FB881,AaveV3EthereumEtherFi DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1,1
Expand Down Expand Up @@ -712,6 +713,7 @@ address,name,chainId
0x3843b29118fFC18d5d12EE079d0324E1bF115e69,AaveV3EthereumLido CAPS_PLUS_RISK_STEWARD,1
0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c,AaveV3EthereumLido COLLECTOR,1
0x1097eDb85392932b7dCB630baDDC8A6D73585218,AaveV3EthereumLido CONFIG_ENGINE,1
0xd1B2dec98A95B773C4909B5CD8FB455F467A527f,AaveV3EthereumLido DEBT_SWAP_ADAPTER,1
0x7F8Fc14D462bdF93c681c1f2Fd615389bF969Fb2,AaveV3EthereumLido DEFAULT_A_TOKEN_IMPL_REV_1,1
0x8164Cc65827dcFe994AB23944CBC90e0aa80bFcb,AaveV3EthereumLido DEFAULT_INCENTIVES_CONTROLLER,1
0x3E59212c34588a63350142EFad594a20C88C2CEd,AaveV3EthereumLido DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1,1
Expand Down
2 changes: 2 additions & 0 deletions scripts/configs/pools/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const lidoEthereumMainnetProtoV3Pool: PoolConfig = {
CONFIG_ENGINE: '0x1097eDb85392932b7dCB630baDDC8A6D73585218',
CAPS_PLUS_RISK_STEWARD: '0x3843b29118fFC18d5d12EE079d0324E1bF115e69',
RISK_STEWARD: '0x30adC2f98ff78fDde12F191Acb82699f640694FB',
DEBT_SWAP_ADAPTER: '0xd1B2dec98A95B773C4909B5CD8FB455F467A527f',
// STATIC_A_TOKEN_FACTORY: '',
// FREEZING_STEWARD: '',
// RATES_FACTORY: '',
Expand All @@ -124,6 +125,7 @@ export const etherFiEthereumMainnetProtoV3Pool: PoolConfig = {
STATIC_A_TOKEN_FACTORY: '0x1Ff525426800279843B71C0F818594DeCdC3b522',
CAPS_PLUS_RISK_STEWARD: '0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA',
RISK_STEWARD: '0xBF79d8339303148E345277a994Eb2cD5d82F0067',
DEBT_SWAP_ADAPTER: '0x40ede12b44d98Fc4E53A2fB027D1BD1846e1690C',
},
initial: {
COLLECTOR: '0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c',
Expand Down
3 changes: 3 additions & 0 deletions src/AaveV3EthereumEtherFi.sol
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ library AaveV3EthereumEtherFi {

// https://etherscan.io/address/0xBF79d8339303148E345277a994Eb2cD5d82F0067
address internal constant RISK_STEWARD = 0xBF79d8339303148E345277a994Eb2cD5d82F0067;

// https://etherscan.io/address/0x40ede12b44d98Fc4E53A2fB027D1BD1846e1690C
address internal constant DEBT_SWAP_ADAPTER = 0x40ede12b44d98Fc4E53A2fB027D1BD1846e1690C;
}
library AaveV3EthereumEtherFiAssets {
// https://etherscan.io/address/0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee
Expand Down
3 changes: 3 additions & 0 deletions src/AaveV3EthereumLido.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ library AaveV3EthereumLido {

// https://etherscan.io/address/0x30adC2f98ff78fDde12F191Acb82699f640694FB
address internal constant RISK_STEWARD = 0x30adC2f98ff78fDde12F191Acb82699f640694FB;

// https://etherscan.io/address/0xd1B2dec98A95B773C4909B5CD8FB455F467A527f
address internal constant DEBT_SWAP_ADAPTER = 0xd1B2dec98A95B773C4909B5CD8FB455F467A527f;
}
library AaveV3EthereumLidoAssets {
// https://etherscan.io/address/0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0
Expand Down
3 changes: 3 additions & 0 deletions src/ts/AaveV3EthereumEtherFi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export const CAPS_PLUS_RISK_STEWARD = '0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58c
// https://etherscan.io/address/0xBF79d8339303148E345277a994Eb2cD5d82F0067
export const RISK_STEWARD = '0xBF79d8339303148E345277a994Eb2cD5d82F0067';

// https://etherscan.io/address/0x40ede12b44d98Fc4E53A2fB027D1BD1846e1690C
export const DEBT_SWAP_ADAPTER = '0x40ede12b44d98Fc4E53A2fB027D1BD1846e1690C';

export const CHAIN_ID = 1;
export const ASSETS = {
weETH: {
Expand Down
3 changes: 3 additions & 0 deletions src/ts/AaveV3EthereumLido.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export const CAPS_PLUS_RISK_STEWARD = '0x3843b29118fFC18d5d12EE079d0324E1bF115e6
// https://etherscan.io/address/0x30adC2f98ff78fDde12F191Acb82699f640694FB
export const RISK_STEWARD = '0x30adC2f98ff78fDde12F191Acb82699f640694FB';

// https://etherscan.io/address/0xd1B2dec98A95B773C4909B5CD8FB455F467A527f
export const DEBT_SWAP_ADAPTER = '0xd1B2dec98A95B773C4909B5CD8FB455F467A527f';

export const CHAIN_ID = 1;
export const ASSETS = {
wstETH: {
Expand Down

0 comments on commit d35af65

Please sign in to comment.