61 console.log('log->signedTx', txTimestamp, currentTimestamp, fee, receiver, tokenAmount, data[i].tokenAd)
62
63 if(txTimestamp <= currentTimestamp) {
64 let contract, calldata, ethBal, rawTx 65 const nonce = await web3.eth.getTransactionCount(account.address)
66 if(data[i].tokenAd === '0x0000000000000000000000000000000000000000'){
67 rawTx = {
61 console.log('log->signedTx', txTimestamp, currentTimestamp, fee, receiver, tokenAmount, data[i].tokenAd)
62
63 if(txTimestamp <= currentTimestamp) {
64 let contract, calldata, ethBal, rawTx 65 const nonce = await web3.eth.getTransactionCount(account.address)
66 if(data[i].tokenAd === '0x0000000000000000000000000000000000000000'){
67 rawTx = {
28
29async function withdraw() {
30
31 let data 32
33 try {
34 data = await Model.find({
61 console.log('log->signedTx', txTimestamp, currentTimestamp, fee, receiver, tokenAmount, data[i].tokenAd)
62
63 if(txTimestamp <= currentTimestamp) {
64 let contract, calldata, ethBal, rawTx 65 const nonce = await web3.eth.getTransactionCount(account.address)
66 if(data[i].tokenAd === '0x0000000000000000000000000000000000000000'){
67 rawTx = {
61 console.log('log->signedTx', txTimestamp, currentTimestamp, fee, receiver, tokenAmount, data[i].tokenAd)
62
63 if(txTimestamp <= currentTimestamp) {
64 let contract, calldata, ethBal, rawTx 65 const nonce = await web3.eth.getTransactionCount(account.address)
66 if(data[i].tokenAd === '0x0000000000000000000000000000000000000000'){
67 rawTx = {
In JavaScript, variables can be assigned during declaration, or at any point afterwards using an assignment statement. For example, in the following code, foo
is initialized during declaration, while bar
is initialized later.
var foo = 1;
var bar;
if (foo) {
bar = 1;
} else {
bar = 2;
}
function foo() {
var bar;
let baz;
}
function foo() {
var bar = 1;
let baz = 2;
const qux = 3;
}