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

Commit

Permalink
Update test values
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbennett committed Dec 17, 2020
1 parent ed57056 commit 7d38e7f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/dai-plugin-mcd/test/CdpType.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const scenarios = [
liquidation penalty, annual stability fee]
*/
const systemValues = {
'ETH-A': [80, 200, 100000, 1.5, 0.05, '5.0'],
'ETH-A': [80, 200, 1000000, 1.5, 0.05, '5.0'],
// 'ETH-B': [2, 4, 100000, 2, 0.05, '4.0'],
'BAT-A': [80, 200, 5000, 2, 0.08, '10.5']
'BAT-A': [80, 200, 1000000, 2, 0.08, '10.5']
};

describe.each(scenarios)('%s', (ilk, GEM) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/dai-plugin-mcd/test/SystemDataService.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test('get annual base rate', async () => {

test('get system-wide debt ceiling', async () => {
const ceiling = await service.getSystemWideDebtCeiling();
expect(ceiling).toBe(1000000);
expect(ceiling).toBe(6000000);
});

test('get global settlement status', async () => {
Expand Down
10 changes: 5 additions & 5 deletions packages/dai-plugin-mcd/test/schemas/computed.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ test(VAULT, async () => {
const expectedLiqPenalty = BigNumber('0.05');
const expectedAnnStabilityFee = 0.04999999999989363;
const expectedDebtFloor = BigNumber('100');
const expectedCollateralDebtAvailable = DAI(99900);
const expectedCollateralDebtAvailable = DAI(999900);

const vault = await maker.latest(VAULT, cdpId);

Expand Down Expand Up @@ -496,7 +496,7 @@ test(COLLATERAL_TYPE_DATA, async () => {
const expectedAnnStabilityFee = 0.04999999999989363;
const expectedPriceWithSafetyMargin = BigNumber('120');
const expectedDebtFloor = BigNumber('100');
const expectedCollateralDebtAvailable = DAI(99900);
const expectedCollateralDebtAvailable = DAI(999900);

const colData = await maker.latest(COLLATERAL_TYPE_DATA, collateralType);

Expand Down Expand Up @@ -542,8 +542,8 @@ test(COLLATERAL_DEBT_CEILINGS, async () => {
'ETH-A',
'BAT-A'
]);
expect(debtCeilings['ETH-A'].toNumber()).toEqual(100000);
expect(debtCeilings['BAT-A'].toNumber()).toEqual(5000);
expect(debtCeilings['ETH-A'].toNumber()).toEqual(1000000);
expect(debtCeilings['BAT-A'].toNumber()).toEqual(1000000);
});

test(COLLATERAL_DEBT_AVAILABLE, async () => {
Expand All @@ -552,5 +552,5 @@ test(COLLATERAL_DEBT_AVAILABLE, async () => {
'ETH-A'
);

expect(ethACollateralDebt.toNumber()).toEqual(99900);
expect(ethACollateralDebt.toNumber()).toEqual(999900);
});
6 changes: 3 additions & 3 deletions packages/dai-plugin-mcd/test/schemas/vat.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ test(DEBT_CEILING, async () => {
expect(isCurrency(ethADebtCeiling)).toEqual(true);
expect(isCurrency(batADebtCeiling)).toEqual(true);

expect(ethADebtCeiling.isEqual(DAI(100000))).toEqual(true);
expect(batADebtCeiling.isEqual(DAI(5000))).toEqual(true);
expect(ethADebtCeiling.isEqual(DAI(1000000))).toEqual(true);
expect(batADebtCeiling.isEqual(DAI(1000000))).toEqual(true);
});

test(DEBT_FLOOR, async () => {
Expand Down Expand Up @@ -214,5 +214,5 @@ test(GLOBAL_DEBT_CEILING, async () => {
const globalDebtCeiling = await maker.latest(GLOBAL_DEBT_CEILING);

expect(globalDebtCeiling.symbol).toEqual(DAI.symbol);
expect(globalDebtCeiling.toBigNumber()).toEqual(BigNumber('1000000'));
expect(globalDebtCeiling.toBigNumber()).toEqual(BigNumber('6000000'));
});

0 comments on commit 7d38e7f

Please sign in to comment.