Commit f4373ad
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- src/apps/aave
- abis
7 files changed
+189
-504
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments