diff --git a/Makefile b/Makefile index 6634aa4d..11504f77 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ mint-ai-tokens-to-federator: transfer-eth-to-provider: set -a; source ${ENV_FILE}; set +a; \ - cargo run -p dev-utils --example transfer_eth -- --address $${PROVIDER_ADDRESS} --key $${PRIVATE_KEY_FEDERATOR} --rpc-url $${RPC_URL} --amount 1000000000000000000 + cargo run -p dev-utils --example transfer_eth -- --address $${PROVIDER_ADDRESS} --key $${PRIVATE_KEY_FEDERATOR} --rpc-url $${RPC_URL} --amount 10000000000000000 transfer-eth-to-pool-owner: set -a; source ${ENV_FILE}; set +a; \ diff --git a/worker/src/operations/provider.rs b/worker/src/operations/provider.rs index d5417754..20e6432e 100644 --- a/worker/src/operations/provider.rs +++ b/worker/src/operations/provider.rs @@ -229,7 +229,7 @@ impl ProviderOperations { ); Console::info( "ETH Balance", - &format!("{} ETH", eth_balance / U256::from(10u128.pow(18))), + &format!("{:.6} ETH", { f64::from(eth_balance) / 10f64.powf(18.0) }), ); if balance < stake { Console::user_error(&format!(