Skip to content

Commit

Permalink
remove check for invalid rates, as it isn't valid for L2
Browse files Browse the repository at this point in the history
This check calls Issuer.availableCurrencyKeys, which will miss some assets that
are required to have exchange rates but aren't technically enabled for issuing yet
on L2.
  • Loading branch information
liamzebedee committed Jun 10, 2021
1 parent 04babb1 commit c382f2c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/integration/utils/rates.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const { toBytes32 } = require('../../..');
async function updateExchangeRatesIfNeeded({ ctx }) {
const { Synthetix, DebtCache } = ctx.contracts;

if (await Synthetix.anySynthOrSNXRateIsInvalid()) {
await _simulateExchangeRates({ ctx });
}

const { isInvalid, isStale } = await DebtCache.cacheInfo();
if (isInvalid || isStale) {
Expand Down

0 comments on commit c382f2c

Please sign in to comment.