Skip to content

Commit f4373ad

Browse files
authored
fix(aave): Support new celo pools (#814)
Aave now uses new contracts for UI_POOL_DATA_PROVIDER and UI_INCENTIVE_DATA_PROVIDER. All the chains needed to be updated to support celo, which was only deployed using the new contracts. ``` $ ts-node ./scripts/getPositions.ts --networkId celo-mainnet --apps aave ┌─────────┬────────┬─────────────┬──────────────────────────────────────────────┬────────────────┬───────────────────────────────────────────────┬──────────┬─────────┬────────────┬─────────────────────────────┬───────────────────────────────────────────┐ │ (index) │ appId │ type │ address │ network │ title │ priceUsd │ balance │ balanceUsd │ breakdown │ availableShortcutIds │ ├─────────┼────────┼─────────────┼──────────────────────────────────────────────┼────────────────┼───────────────────────────────────────────────┼──────────┼─────────┼────────────┼─────────────────────────────┼───────────────────────────────────────────┤ │ 0 │ 'aave' │ 'app-token' │ '0xff8309b9e99bfd2d4021bc71a362abd93dbd4785' │ 'celo-mainnet' │ 'USDC (Supplied (APY: 0.08%))' │ '1.00' │ '0.00' │ '0.00' │ '0.00 USDC ($0.00) @ $1.00' │ [ 'deposit', 'withdraw', 'swap-deposit' ] │ │ 1 │ 'aave' │ 'app-token' │ '0xdbe517c0fa6467873b684eccbed77217e471e862' │ 'celo-mainnet' │ 'USDC debt (Borrowed variable (APY: 0.84%))' │ '-1.00' │ '0.00' │ '0.00' │ '0.00 USDC ($0.00) @ $1.00' │ [] │ │ 2 │ 'aave' │ 'app-token' │ '0xdee98402a302e4d707fb9bf2bac66faeec31e8df' │ 'celo-mainnet' │ 'USD₮ (Supplied (APY: 0.00%))' │ '1.00' │ '0.00' │ '0.00' │ '0.00 USD₮ ($0.00) @ $1.00' │ [ 'deposit', 'withdraw', 'swap-deposit' ] │ │ 3 │ 'aave' │ 'app-token' │ '0xe15324a9887999803b931ac45aa89a94a9750052' │ 'celo-mainnet' │ 'USD₮ debt (Borrowed variable (APY: 0.01%))' │ '-1.00' │ '0.00' │ '0.00' │ '0.00 USD₮ ($0.00) @ $1.00' │ [] │ │ 4 │ 'aave' │ 'app-token' │ '0x34c02571094e08e935b8cf8dc10f1ad6795f1f81' │ 'celo-mainnet' │ 'cEUR (Supplied (APY: 18.26%))' │ '1.12' │ '0.00' │ '0.00' │ '0.00 cEUR ($0.00) @ $1.12' │ [ 'deposit', 'withdraw', 'swap-deposit' ] │ │ 5 │ 'aave' │ 'app-token' │ '0x5c2b7eb5886b3cec5cce1019e34493da33291af5' │ 'celo-mainnet' │ 'cEUR debt (Borrowed variable (APY: 23.95%))' │ '-1.12' │ '0.00' │ '0.00' │ '0.00 cEUR ($0.00) @ $1.12' │ [] │ │ 6 │ 'aave' │ 'app-token' │ '0xbba98352628b0b0c4b40583f593ffcb630935a45' │ 'celo-mainnet' │ 'cUSD (Supplied (APY: 0.00%))' │ '1.00' │ '0.00' │ '0.00' │ '0.00 cUSD ($0.00) @ $1.00' │ [ 'deposit', 'withdraw', 'swap-deposit' ] │ │ 7 │ 'aave' │ 'app-token' │ '0x05ee3d1fbacbdba1259946033cd7a42fdfcccf0d' │ 'celo-mainnet' │ 'cUSD debt (Borrowed variable (APY: 0.20%))' │ '-1.00' │ '0.00' │ '0.00' │ '0.00 cUSD ($0.00) @ $1.00' │ [] │ │ 8 │ 'aave' │ 'app-token' │ '0xc3e77dc389537db1eec7c33b95cf3beeca71a209' │ 'celo-mainnet' │ 'CELO (Supplied (APY: 0.02%))' │ '0.28' │ '0.00' │ '0.00' │ '0.00 CELO ($0.00) @ $0.28' │ [ 'deposit', 'withdraw', 'swap-deposit' ] │ │ 9 │ 'aave' │ 'app-token' │ '0xaea37b42955de2ba2e4af6581e46349bcd3ea2d6' │ 'celo-mainnet' │ 'CELO debt (Borrowed variable (APY: 0.77%))' │ '-0.28' │ '0.00' │ '0.00' │ '0.00 CELO ($0.00) @ $0.28' │ [] │ └─────────┴────────┴─────────────┴──────────────────────────────────────────────┴────────────────┴───────────────────────────────────────────────┴──────────┴─────────┴────────────┴─────────────────────────────┴───────────────────────────────────────────┘ ```
1 parent 5e3304f commit f4373ad

File tree

7 files changed

+189
-504
lines changed

7 files changed

+189
-504
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"dependencies": {
4040
"@0xsquid/squid-types": "^0.1.137",
41-
"@bgd-labs/aave-address-book": "^4.10.0",
41+
"@bgd-labs/aave-address-book": "4.17.2",
4242
"@google-cloud/functions-framework": "^3.5.1",
4343
"@valora/http-handler": "^0.0.1",
4444
"@valora/logging": "^1.3.18",
@@ -52,7 +52,7 @@
5252
"i18next-http-middleware": "^3.7.1",
5353
"lru-cache": "^11.1.0",
5454
"semver": "^7.7.1",
55-
"viem": "^2.23.2",
55+
"viem": "^2.26.2",
5656
"zod": "^3.24.2"
5757
},
5858
"devDependencies": {

0 commit comments

Comments
 (0)