Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
auction.getStatus = function() {
const token = mtn.mtntoken.methods
const auctions = mtn.auctions.methods
return promiseAllProps({
currentAuction: auctions.currentAuction().call(),
currentPrice: auctions.currentPrice().call(),
genesisTime: auctions
.genesisTime()
.call()
.then(toInt),
globalMtnSupply: auctions.globalMtnSupply().call(),
lastPurchasePrice: auctions.lastPurchasePrice().call(),
lastPurchaseTick: auctions
.lastPurchaseTick()
.call()
.then(toInt),
mintable: auctions.mintable().call(),
nextAuction: auctions.nextAuction().call(),
totalSupply: token.totalSupply().call()
})