Skip to content

Commit

Permalink
Fix Ramm unit test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
MilGard91 committed Oct 9, 2023
1 parent df9bae8 commit fb3cefa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unit/Ramm/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ async function getState(ramm) {
}

async function setup() {
const SPOT_PRICE_A = parseEther('0.0347');
const SPOT_PRICE_B = parseEther('0.0152');

const accounts = await getAccounts();
const master = await ethers.deployContract('MasterMock');
const memberRoles = await ethers.deployContract('RammMockMemberRoles');
const nxm = await ethers.deployContract('NXMTokenMock');
const tokenController = await ethers.deployContract('RammMockTokenController', [nxm.address]);
const mcr = await ethers.deployContract('RammMockMCR', [master.address]);
const pool = await ethers.deployContract('RammMockPool', [master.address, mcr.address, nxm.address]);
const ramm = await ethers.deployContract('Ramm');
const ramm = await ethers.deployContract('Ramm', [SPOT_PRICE_A, SPOT_PRICE_B]);

await mcr.setPool(pool.address);
await setEtherBalance(pool.address, parseEther('145000'));
Expand Down

0 comments on commit fb3cefa

Please sign in to comment.