integration/helpers/create-markets.ts
Function createCategoricalMarket
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const createCategoricalMarket = async (outcomeNum: number) => {
// page.on('console', msg => console.log('PAGE LOG:', msg.text()));
const currentTimestamp: number = await page.evaluate(() =>
window.integrationHelpers.getCurrentTimestamp()
);
Function createYesNoMarket
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const createYesNoMarket = async (
address: string = "",
settlementFee: number = 0
) => {
// page.on('console', msg => console.log('PAGE LOG:', msg.text()));
Function createScalarMarket
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const createScalarMarket = async () => {
// page.on('console', msg => console.log('PAGE LOG:', msg.text()));
const currentTimestamp: number = await page.evaluate(() =>
window.integrationHelpers.getCurrentTimestamp()
);