Skip to content

Commit

Permalink
fix Main.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrent committed Oct 17, 2023
1 parent f162ef0 commit 94b8f87
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions test/Main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ import {
IMPLEMENTATION,
ORACLE_ERROR,
ORACLE_TIMEOUT,
ORACLE_TIMEOUT_PRE_BUFFER,
PRICE_TIMEOUT,
REVENUE_HIDING,
} from './fixtures'
Expand Down Expand Up @@ -1181,7 +1182,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: newToken.address,
maxTradeVolume: config.rTokenMaxTradeVolume,
oracleTimeout: await collateral0.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: await ethers.utils.formatBytes32String('USD'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral0.delayUntilDefault(),
Expand All @@ -1203,7 +1204,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: newToken.address,
maxTradeVolume: config.rTokenMaxTradeVolume,
oracleTimeout: await collateral0.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: await ethers.utils.formatBytes32String('USD'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral0.delayUntilDefault(),
Expand All @@ -1229,7 +1230,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: await gasGuzzlingColl.erc20(),
maxTradeVolume: config.rTokenMaxTradeVolume,
oracleTimeout: await collateral0.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: await ethers.utils.formatBytes32String('USD'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral0.delayUntilDefault(),
Expand Down Expand Up @@ -1628,7 +1629,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: erc20s[5].address,
maxTradeVolume: config.rTokenMaxTradeVolume,
oracleTimeout: await collateral2.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: ethers.utils.formatBytes32String('USD'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral2.delayUntilDefault(),
Expand Down Expand Up @@ -1724,7 +1725,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: eurToken.address,
maxTradeVolume: config.rTokenMaxTradeVolume,
oracleTimeout: await collateral0.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: ethers.utils.formatBytes32String('EUR'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral1.delayUntilDefault(),
Expand Down Expand Up @@ -1947,7 +1948,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: await collateral0.erc20(),
maxTradeVolume: config.rTokenMaxTradeVolume,
oracleTimeout: await collateral0.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: ethers.utils.formatBytes32String('NEW_TARGET'),
defaultThreshold: fp('0.01'),
delayUntilDefault: await collateral0.delayUntilDefault(),
Expand Down Expand Up @@ -2802,7 +2803,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: await collateral2.erc20(),
maxTradeVolume: await collateral2.maxTradeVolume(),
oracleTimeout: await collateral2.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: ethers.utils.formatBytes32String('USD'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral2.delayUntilDefault(),
Expand Down Expand Up @@ -2837,7 +2838,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: await collateral2.erc20(),
maxTradeVolume: await collateral2.maxTradeVolume(),
oracleTimeout: await collateral2.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: ethers.utils.formatBytes32String('USD'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral2.delayUntilDefault(),
Expand All @@ -2862,7 +2863,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: await collateral2.erc20(),
maxTradeVolume: config.rTokenMaxTradeVolume,
oracleTimeout: await collateral2.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: ethers.utils.formatBytes32String('USD'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral2.delayUntilDefault(),
Expand Down Expand Up @@ -3084,7 +3085,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: await collateral2.erc20(),
maxTradeVolume: config.rTokenMaxTradeVolume,
oracleTimeout: await collateral2.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: ethers.utils.formatBytes32String('USD'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral2.delayUntilDefault(),
Expand Down Expand Up @@ -3128,7 +3129,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: await collateral2.erc20(),
maxTradeVolume: config.rTokenMaxTradeVolume,
oracleTimeout: await collateral2.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: ethers.utils.formatBytes32String('USD'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral2.delayUntilDefault(),
Expand Down Expand Up @@ -3158,7 +3159,7 @@ describe(`MainP${IMPLEMENTATION} contract`, () => {
oracleError: ORACLE_ERROR,
erc20: token0.address,
maxTradeVolume: config.rTokenMaxTradeVolume,
oracleTimeout: await collateral0.oracleTimeout(),
oracleTimeout: ORACLE_TIMEOUT_PRE_BUFFER,
targetName: await ethers.utils.formatBytes32String('NEW TARGET'),
defaultThreshold: DEFAULT_THRESHOLD,
delayUntilDefault: await collateral0.delayUntilDefault(),
Expand Down

0 comments on commit 94b8f87

Please sign in to comment.