Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Jan 22, 2024
1 parent 1ca8223 commit 08d0dcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/allocation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions crates/erc20_payment_lib/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 08d0dcb

Please sign in to comment.