Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Feb 15, 2024
1 parent e97245e commit de854b1
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ module.exports = {
networks: {
hardhat: {
forking: {
url: "https://polygon-pokt.nodies.app", // avalanche network to run the test on
blockNumber: 47102059
url: "https://rpc.ankr.com/polygon", // avalanche network to run the test on
blockNumber: 53559376
},
// mining: {
// auto: false,
Expand Down
6 changes: 3 additions & 3 deletions test/crouter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("Rain Arb Bot 'crouter' Mode Tests", async function () {
beforeEach(async() => {
// reset network before each test
// await helpers.reset("http://127.0.0.1:8545/");
await helpers.reset("https://polygon.llamarpc.com", 47102059);
await helpers.reset("https://rpc.ankr.com/polygon", 53559376);

[bot, ...owners] = await ethers.getSigners();
config = CONFIG.find(async(v) => v.chainId === await bot.getChainId());
Expand Down Expand Up @@ -156,7 +156,7 @@ describe("Rain Arb Bot 'crouter' Mode Tests", async function () {
turn++;
});

xit("should clear orders in 'flash-loan-v2' mode", async function () {
it("should clear orders in 'flash-loan-v2' mode", async function () {
// set up vault ids
const USDC_vaultId = ethers.BigNumber.from(randomUint256());
const USDT_vaultId = ethers.BigNumber.from(randomUint256());
Expand Down Expand Up @@ -522,7 +522,7 @@ describe("Rain Arb Bot 'crouter' Mode Tests", async function () {
);
});

it("should clear orders in 'flash-loan-v3' mode using interpreter v2", async function () {
xit("should clear orders in 'flash-loan-v3' mode using interpreter v2", async function () {

// set up vault ids
const USDC_vaultId = ethers.BigNumber.from(randomUint256());
Expand Down
6 changes: 3 additions & 3 deletions test/curve.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe("Rain Arb Bot 'curve' Mode Tests", async function () {

beforeEach(async() => {
// reset network before each test
await helpers.reset("https://polygon.llamarpc.com", 47102059);
await helpers.reset("https://rpc.ankr.com/polygon", 53559376);

[bot, ...owners] = await ethers.getSigners();
config = CONFIG.find(async(v) => v.chainId === await bot.getChainId());
Expand Down Expand Up @@ -156,7 +156,7 @@ describe("Rain Arb Bot 'curve' Mode Tests", async function () {
turn++;
});

xit("should clear orders in 'flash-loan-v2' mode", async function () {
it("should clear orders in 'flash-loan-v2' mode", async function () {
// set up vault ids
const USDC_vaultId = ethers.BigNumber.from(randomUint256());
const USDT_vaultId = ethers.BigNumber.from(randomUint256());
Expand Down Expand Up @@ -519,7 +519,7 @@ describe("Rain Arb Bot 'curve' Mode Tests", async function () {
);
});

it("should clear orders in 'flash-loan-v3' mode using interpreter v2", async function () {
xit("should clear orders in 'flash-loan-v3' mode using interpreter v2", async function () {

// set up vault ids
const USDC_vaultId = ethers.BigNumber.from(randomUint256());
Expand Down
6 changes: 3 additions & 3 deletions test/router.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("Rain Arb Bot 'router' Mode Tests", async function () {
beforeEach(async() => {
// reset network before each test
// await helpers.reset("http://127.0.0.1:8545/");
await helpers.reset("https://polygon.llamarpc.com", 47102059);
await helpers.reset("https://rpc.ankr.com/polygon", 53559376);

[bot, ...owners] = await ethers.getSigners();
config = CONFIG.find(async(v) => v.chainId === await bot.getChainId());
Expand Down Expand Up @@ -156,7 +156,7 @@ describe("Rain Arb Bot 'router' Mode Tests", async function () {
turn++;
});

xit("should clear orders in 'flash-loan-v2' mode", async function () {
it("should clear orders in 'flash-loan-v2' mode", async function () {
// set up vault ids
const USDC_vaultId = ethers.BigNumber.from(randomUint256());
const USDT_vaultId = ethers.BigNumber.from(randomUint256());
Expand Down Expand Up @@ -522,7 +522,7 @@ describe("Rain Arb Bot 'router' Mode Tests", async function () {
);
});

it("should clear orders in 'flash-loan-v3' mode using interpreter v2", async function () {
xit("should clear orders in 'flash-loan-v3' mode using interpreter v2", async function () {

// set up vault ids
const USDC_vaultId = ethers.BigNumber.from(randomUint256());
Expand Down
4 changes: 2 additions & 2 deletions test/srouter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("Rain Arb Bot 'srouter' Mode Tests", async function () {
// npx hardhat node --fork https://polygon-rpc.com/ --fork-block-number 47102059
// reset network before each test
// await helpers.reset("http://127.0.0.1:8545/");
await helpers.reset("https://polygon.llamarpc.com", 47102059);
await helpers.reset("https://rpc.ankr.com/polygon", 53559376);

[bot, ...owners] = await ethers.getSigners();
config = CONFIG.find(async(v) => v.chainId === await bot.getChainId());
Expand Down Expand Up @@ -148,7 +148,7 @@ describe("Rain Arb Bot 'srouter' Mode Tests", async function () {
turn++;
});

xit("should clear orders in 'srouter' mode", async function () {
it("should clear orders in 'srouter' mode", async function () {
// set up vault ids
const USDC_vaultId = ethers.BigNumber.from(randomUint256());
const USDT_vaultId = ethers.BigNumber.from(randomUint256());
Expand Down
8 changes: 4 additions & 4 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const { ethers } = require("hardhat");
* Addresses with token balance to get from with impersonation
*/
exports.AddressWithBalance = {
usdc: "0xc47919bbF3276a416Ec34ffE097De3C1D0b7F1CD",
usdt: "0x555e179d64335945fc6b155b7235a31b0a595542",
usdc: "0xe7804c37c13166fF0b37F5aE0BB07A3aEbb6e245",
usdt: "0xF977814e90dA44bFA03b6295A0616a897441aceC",
dai: "0x4aac95EBE2eA6038982566741d1860556e265F8B",
frax: "0x97ee4eD562c7eD22F4Ff7dC3FC4A24B5F0B9627e",
busd: "0x6b5b98d4aac2dafadc94e10f6b5254a683d98294",
frax: "0xda86DaECd8c56Ec266872F2f0978ac8705C43959",
busd: "0x51bfacfcE67821EC05d3C9bC9a8BC8300fB29564",
};

/**
Expand Down

0 comments on commit de854b1

Please sign in to comment.