Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Add GUSD
Browse files Browse the repository at this point in the history
  • Loading branch information
Padraic-O-Mhuiris committed Nov 20, 2020
1 parent 4fa6878 commit a58559b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/dai-plugin-mcd/contracts/abiMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ module.exports = {
LRC: require('./abis/DSToken.json'),
LINK: require('./abis/DSToken.json'),
YFI: require('./abis/DSToken.json'),
BAL: require('./abis/DSToken.json')
BAL: require('./abis/DSToken.json'),
GUSD: require('./abis/GUSD.json')
};
7 changes: 6 additions & 1 deletion packages/dai-plugin-mcd/contracts/addresses/kovan.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,10 @@
"BAL": "0x630D82Cbf82089B09F71f8d3aAaff2EBA6f47B15",
"PIP_BAL": "0x4fd34872F3AbC07ea6C45c7907f87041C0801DdE",
"MCD_JOIN_BAL_A": "0x8De5EA9251E0576e3726c8766C56E27fAb2B6597",
"MCD_FLIP_BAL_A": "0xF6d19CC05482Ef7F73f09c1031BA01567EF6ac0f"
"MCD_FLIP_BAL_A": "0xF6d19CC05482Ef7F73f09c1031BA01567EF6ac0f",

"GUSD": "0x31D8EdbF6F33ef858c80d68D06Ec83f33c2aA150",
"PIP_GUSD": "0xb6630DE6Eda0f3f3d96Db4639914565d6b82CfEF",
"MCD_JOIN_GUSD_A": "0x0c6B26e6AB583D2e4528034037F74842ea988909",
"MCD_FLIP_GUSD_A": "0xf6c0e36a76F2B9F7Bd568155F3fDc53ff1be1Aeb"
}
7 changes: 6 additions & 1 deletion packages/dai-plugin-mcd/contracts/addresses/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,10 @@
"BAL": "0xba100000625a3754423978a60c9317c58a424e3D",
"PIP_BAL": "0x3ff860c0F28D69F392543A16A397D0dAe85D16dE",
"MCD_JOIN_BAL_A": "0x4a03Aa7fb3973d8f0221B466EefB53D0aC195f55",
"MCD_FLIP_BAL_A": "0xb2b9bd446eE5e58036D2876fce62b7Ab7334583e"
"MCD_FLIP_BAL_A": "0xb2b9bd446eE5e58036D2876fce62b7Ab7334583e",

"GUSD": "0x056Fd409E1d7A124BD7017459dFEa2F387b6d5Cd",
"PIP_GUSD": "0xf45Ae69CcA1b9B043dAE2C83A5B65Bc605BEc5F5",
"MCD_JOIN_GUSD_A": "0xe29A14bcDeA40d83675aa43B72dF07f649738C8b",
"MCD_FLIP_GUSD_A": "0xCAa8D152A8b98229fB77A213BE16b234cA4f612f"
}
4 changes: 3 additions & 1 deletion packages/dai-plugin-mcd/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const LRC = createCurrency('LRC');
export const LINK = createCurrency('LINK');
export const YFI = createCurrency('YFI');
export const BAL = createCurrency('BAL');
export const GUSD = createCurrency('GUSD');

export const defaultCdpTypes = [
{ currency: ETH, ilk: 'ETH-A' },
Expand All @@ -97,7 +98,8 @@ export const defaultCdpTypes = [
{ currency: LRC, ilk: 'LRC-A', decimals: 18 },
{ currency: LINK, ilk: 'LINK-A', decimals: 18 },
{ currency: YFI, ilk: 'YFI-A', decimals: 18 },
{ currency: BAL, ilk: 'BAL-A', decimals: 18 }
{ currency: BAL, ilk: 'BAL-A', decimals: 18 },
{ currency: GUSD, ilk: 'GUSD-A', decimals: 2 }
];

export const SAI = createCurrency('SAI');
Expand Down
2 changes: 2 additions & 0 deletions packages/dai-plugin-mcd/src/schemas/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export const tokenBalance = {
return currencyToken(v, -6);
} else if (symbol === 'WBTC') {
return currencyToken(v, -8);
} else if (symbol === 'GUSD') {
return currencyToken(v, -2);
} else {
return currencyToken(v, 'wei');
}
Expand Down

0 comments on commit a58559b

Please sign in to comment.