diff --git a/.github/workflows/allocation.yml b/.github/workflows/allocation.yml index da591f8b..31cd921d 100644 --- a/.github/workflows/allocation.yml +++ b/.github/workflows/allocation.yml @@ -86,5 +86,5 @@ jobs: - name: Transfer all left ETH tokens run: | - erc20_processor transfer --account-no 1 --recipient 0x5b984629E2Cc7570cBa7dD745b83c3dD23Ba6d0f --token eth --all + erc20_processor transfer --account-no 1 --recipient 0x5b984629E2Cc7570cBa7dD745b83c3dD23Ba6d0f --token eth --all erc20_processor run \ No newline at end of file diff --git a/crates/erc20_payment_lib/src/runtime.rs b/crates/erc20_payment_lib/src/runtime.rs index fe9dee5b..456c8b4e 100644 --- a/crates/erc20_payment_lib/src/runtime.rs +++ b/crates/erc20_payment_lib/src/runtime.rs @@ -1009,6 +1009,13 @@ pub async fn make_allocation( 1 }); let diff_seconds = (chrono::Utc::now() - block_info.block_date).num_seconds(); + log::info!( + "Block number: {}, diff_seconds: {}, block_for: {}, average_block_time: {}", + block_info.block_number, + diff_seconds, + block_for, + average_block_time); + let target_block = (block_info.block_number as i64 + (diff_seconds + block_for as i64) * average_block_time as i64) .unsigned_abs();