UNPKG

dx-mgn-pool

Version:

Smart contracts and migration scripts for the MGN-pool for trading at the dutch-Exchange

21 lines (17 loc) 504 B
/* eslint-disable no-console */ const Coordinator = artifacts.require("Coordinator") module.exports = async (callback) => { try { const coordinator = await Coordinator.deployed() if (await coordinator.canParticipate()) { await coordinator.participateInAuction() console.log("Successfully called participateInAuction!") callback() } else { console.log("Can't participate in auction yet.") callback() } } catch (error) { callback(error) } }