Repository: rotki/rotki

Issue:
Support new Maker Vault types
## Abstract

```
Detected vault with collateral_type WBTC-C. That is not yet supported by rotki. Skipping...
```

## Motivation

Would want this vault type to be supported by rotki, older WBTC types like e.g. WBTC-A are supported. Skimming through https://vote.makerdao.com/executive, it looks like this was the only new vault type since August 2021, more at https://vote.makerdao.com/executive/template-executive-vote-onboarding-new-vault-types-parameter-changes-and-core-unit-budget-distributions-november-26-2021?network=mainnet#proposal-detail

## Specification

Should be clear I think



Discussion:
Yeah no worries @kilrau. Adding it for next release. It's so minor, that may even add it to a patch release.

Resolving patch:
diff --git a/rotkehlchen/chain/ethereum/modules/makerdao/vaults.py b/rotkehlchen/chain/ethereum/modules/makerdao/vaults.py
--- a/rotkehlchen/chain/ethereum/modules/makerdao/vaults.py
+++ b/rotkehlchen/chain/ethereum/modules/makerdao/vaults.py
@@ -28,6 +28,7 @@
     A_LINK,
     A_LRC,
     A_MANA,
+    A_MATIC,
     A_PAX,
     A_RENBTC,
     A_TUSD,
@@ -56,6 +57,7 @@
     MAKERDAO_LINK_A_JOIN,
     MAKERDAO_LRC_A_JOIN,
     MAKERDAO_MANA_A_JOIN,
+    MAKERDAO_MATIC_A_JOIN,
     MAKERDAO_PAXUSD_A_JOIN,
     MAKERDAO_RENBTC_A_JOIN,
     MAKERDAO_SPOT,
@@ -66,6 +68,8 @@
     MAKERDAO_USDT_A_JOIN,
     MAKERDAO_VAT,
     MAKERDAO_WBTC_A_JOIN,
+    MAKERDAO_WBTC_B_JOIN,
+    MAKERDAO_WBTC_C_JOIN,
     MAKERDAO_YFI_A_JOIN,
     MAKERDAO_ZRX_A_JOIN,
 )
@@ -102,6 +106,8 @@
     'USDC-B': MAKERDAO_USDC_B_JOIN,
     'USDT-A': MAKERDAO_USDT_A_JOIN,
     'WBTC-A': MAKERDAO_WBTC_A_JOIN,
+    'WBTC-B': MAKERDAO_WBTC_B_JOIN,
+    'WBTC-C': MAKERDAO_WBTC_C_JOIN,
     'ZRX-A': MAKERDAO_ZRX_A_JOIN,
     'MANA-A': MAKERDAO_MANA_A_JOIN,
     'PAXUSD-A': MAKERDAO_PAXUSD_A_JOIN,
@@ -114,6 +120,7 @@
     'UNI-A': MAKERDAO_UNI_A_JOIN,
     'RENBTC-A': MAKERDAO_RENBTC_A_JOIN,
     'AAVE-A': MAKERDAO_AAVE_A_JOIN,
+    'MATIC-A': MAKERDAO_MATIC_A_JOIN,
 }
 COLLATERAL_TYPE_MAPPING = {
     'BAT-A': A_BAT,
@@ -126,6 +133,8 @@
     'USDC-B': A_USDC,
     'USDT-A': A_USDT,
     'WBTC-A': A_WBTC,
+    'WBTC-B': A_WBTC,
+    'WBTC-C': A_WBTC,
     'ZRX-A': A_ZRX,
     'MANA-A': A_MANA,
     'PAXUSD-A': A_PAX,
@@ -138,6 +147,7 @@
     'UNI-A': A_UNI,
     'RENBTC-A': A_RENBTC,
     'AAVE-A': A_AAVE,
+    'MATIC-A': A_MATIC,
 }
 
 
diff --git a/rotkehlchen/constants/ethereum.py b/rotkehlchen/constants/ethereum.py
--- a/rotkehlchen/constants/ethereum.py
+++ b/rotkehlchen/constants/ethereum.py
@@ -97,6 +97,8 @@ def abi(name: str) -> List[Dict[str, Any]]:
 MAKERDAO_USDC_B_JOIN = EthereumConstants().contract('MAKERDAO_USDC_B_JOIN')
 MAKERDAO_USDT_A_JOIN = EthereumConstants().contract('MAKERDAO_USDT_A_JOIN')
 MAKERDAO_WBTC_A_JOIN = EthereumConstants().contract('MAKERDAO_WBTC_A_JOIN')
+MAKERDAO_WBTC_B_JOIN = EthereumConstants().contract('MAKERDAO_WBTC_B_JOIN')
+MAKERDAO_WBTC_C_JOIN = EthereumConstants().contract('MAKERDAO_WBTC_C_JOIN')
 MAKERDAO_KNC_A_JOIN = EthereumConstants().contract('MAKERDAO_KNC_A_JOIN')
 MAKERDAO_MANA_A_JOIN = EthereumConstants().contract('MAKERDAO_MANA_A_JOIN')
 MAKERDAO_TUSD_A_JOIN = EthereumConstants().contract('MAKERDAO_TUSD_A_JOIN')
@@ -111,6 +113,7 @@ def abi(name: str) -> List[Dict[str, Any]]:
 MAKERDAO_UNI_A_JOIN = EthereumConstants().contract('MAKERDAO_UNI_A_JOIN')
 MAKERDAO_RENBTC_A_JOIN = EthereumConstants().contract('MAKERDAO_RENBTC_A_JOIN')
 MAKERDAO_AAVE_A_JOIN = EthereumConstants().contract('MAKERDAO_AAVE_A_JOIN')
+MAKERDAO_MATIC_A_JOIN = EthereumConstants().contract('MAKERDAO_MATIC_A_JOIN')
 
 MAKERDAO_CAT = EthereumConstants().contract('MAKERDAO_CAT')
 MAKERDAO_JUG = EthereumConstants().contract('MAKERDAO_JUG')


Test patch: