Skip to content

Commit

Permalink
chore: test refactoring wip
Browse files Browse the repository at this point in the history
  • Loading branch information
yomarion committed Sep 5, 2022
1 parent bc407d0 commit f0e767b
Show file tree
Hide file tree
Showing 2 changed files with 175 additions and 144 deletions.
Expand Up @@ -13,6 +13,8 @@ import { chainlinkConversionPath as chainlinkConvArtifact } from '../src/lib';
import { CurrencyManager } from '@requestnetwork/currency';
import { deployAddressChecking } from './utils';

export const FAU_USD_RATE = 2.01;

// Deploys, set up the contracts
export async function deployBatchConversionPayment(
args: any,
Expand Down Expand Up @@ -47,7 +49,7 @@ export async function deployBatchConversionPayment(
const erc20Factory = await hre.ethers.getContractFactory('TestERC20');
const testERC20FakeFAU = await erc20Factory.deploy('1000000000000000000000000000000');
const { address: AggFakeFAU_USD_address } = await deployOne(args, hre, 'AggregatorMock', {
constructorArguments: [201000000, 8, 60],
constructorArguments: [FAU_USD_RATE * 100000000, 8, 60],
});
const conversionPathInstance = chainlinkConvArtifact.connect('private', owner);
const currencyManager = CurrencyManager.getDefault();
Expand Down

0 comments on commit f0e767b

Please sign in to comment.