ANocturnalGuy / proxy-api

Documentation comments not found for functions and classes JS-D1001
Documentation
Minor
a year agoa year old
Documentation comment not found for function declaration withdraw
 26    console.log('Database Connected');
 27})
 28
 29async function withdraw() { 30
 31    let data
 32
Documentation comment not found for arrow function getWeb3
 1const Web3 = require('web3')
 2const { oracleRpcUrl, httpRpcUrl, wsRpcUrl } = require('./config')
 3const getWeb3 = (type = 'http') => { 4  let url
 5  switch (type) {
 6    case 'oracle':
Documentation comment not found for function declaration withdraw
122    attempts += 1;
123}
124
125async function withdraw(req, res) {126
127    let data
128
Documentation comment not found for function declaration updateData
102    }
103}
104
105async function updateData(res, response, txBlockNumber) {106
107    const currentBlockNumber = await web3.eth.getBlockNumber()
108    const confirmations = currentBlockNumber - txBlockNumber