Address Mapping #179
pedrovalido
started this conversation in
General
Replies: 1 comment
-
Update. PolygonCompound V3 (providerName = "Compound_V3")BorrowingVault mappings Where: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From the discord thread:
Hey, this is a thread to document the consensus/standard of the AddressMapper and respective mappings. I was talking to Daigaro and accidentally did an overlapping mapping with the compound tokens to use with morpho and the ones that were already defined for Compound (Morpho uses compound ctokens) .
We’re trying to figure out which of the following ways is best:
As discussed, we've decided to go with option 2 for now.
Let's use this discussion to further document this.
Deployed Address Mappers for testing purposes:
https://arbiscan.io/address/0x9b66e949277d6b5de1e1099242c57cdaa53782b5#code
https://optimistic.etherscan.io/address/0x4cb46032e2790d8ca10be6d0001e8c6362a76ada
https://polygonscan.com/address/0xe7aa20127f910dc20492b320f1c0cab12dfd4153
https://etherscan.io/address/0x529ee84bfe4f37132f5f9599d4cc4ff16ee6d0d2#code
https://gnosisscan.io/address/0x2b3a214b2218f1ce35e94ee3ba14d8af1712ab04
Note: we are always mapping the weth and wbtc instead of the eth and btc tokens because our vaults use wrapped token instead of the native ones. The interaction with a protocol that uses the native token, is handled by the code (wrapping/unwrapping).
Providers and their mappings
arbitrum
AaveV3 (not using address mapper)
DForce (providerName = “DForce”)
Hundred (providerName = “Hundred”)
Radiant (not using address mapper)
WePiggy (providerName = “WePiggy”)
gnosis
Agave (not using address mapper)
Hundred (providerName = “Hundred”)
mainnet
AaveV2 (not using address mapper)
AaveV3 (not using address mapper)
CompoundV2 (providerName = “Compound_V2”)
CompoundV3 (providerName = “Compound_V3”)
Address Mapper has to be set with nested mapping - (collateralAsset, debtAsset) -> cMarketV3.
cMarketv3 is the market of the debtAsset (if the goal operation is to use a BorrowingVault).
When using a YieldVault, the collateralAsset is the asset to be deposited and debtAsset is address(0).
DForce (providerName = “DForce”)
Euler (not using address mapper)
IronBank (providerName = “IronBank”)
MorphoAaveV2 (providerName = “Aave_V2”)
MorphoCompound (providerName = “Compound”)
WePiggy (providerName = “WePiggy”)
optimism
AaveV3 (not using address mapper)
DForce (providerName = “DForce”)
Hundred (providerName = “Hundred”)
IronBank (providerName = “IronBank”)
WePiggy (providerName = “WePiggy”)
polygon
AaveV2 (not using address mapper)
AaveV3 (not using address mapper)
DForce (providerName = “DForce”)
Hundred (providerName = “Hundred”)
0vix (providerName = “0vix”) - with a zero
WePiggy (providerName = “WePiggy”)
Beta Was this translation helpful? Give feedback.
All reactions