escrow fix

This commit is contained in:
ghe0 2025-06-30 22:45:41 +03:00
parent adbf8eba80
commit d47121ceb6
Signed by: ghe0
GPG Key ID: 451028EE56A0FBB4
3 changed files with 6 additions and 5 deletions

@ -564,7 +564,7 @@ fn clap_cmd() -> Command {
"\nBefore adding escrow, make sure you booted a node under your account." + "\nBefore adding escrow, make sure you booted a node under your account." +
"\nWhen all your nodes got decomissioned, your escrow gets automatically returned.") "\nWhen all your nodes got decomissioned, your escrow gets automatically returned.")
.default_value("5000") .default_value("5000")
.value_parser(clap::value_parser!(u64).range(5000..100000)) .value_parser(clap::value_parser!(u64).range(0..100000))
) )
.arg( .arg(
Arg::new("email") Arg::new("email")

@ -5,6 +5,7 @@ use std::sync::LazyLock;
pub const HRATLS_APP_PORT: u32 = 34500; pub const HRATLS_APP_PORT: u32 = 34500;
pub const MAX_REDIRECTS: u16 = 3; pub const MAX_REDIRECTS: u16 = 3;
pub const STAGING_BRAIN_URLS: [&str; 3] = [ pub const STAGING_BRAIN_URLS: [&str; 3] = [
"https://156.146.63.216:31337", // staging brain 1 "https://156.146.63.216:31337", // staging brain 1
"https://156.146.63.216:31337", // staging brain 2 "https://156.146.63.216:31337", // staging brain 2
@ -12,9 +13,9 @@ pub const STAGING_BRAIN_URLS: [&str; 3] = [
]; ];
pub const TESTNET_BRAIN_URLS: [&str; 3] = [ pub const TESTNET_BRAIN_URLS: [&str; 3] = [
"https://184.107.169.199:45223", // testnet brain 1 "https://156.146.63.218:31337", // testnet brain 1
"https://149.22.95.1:44522", // testnet brain 2 "https://156.146.63.218:31337", // testnet brain 2
"https://149.36.48.99:48638", // testnet brain 3 "https://156.146.63.218:31337", // testnet brain 3
]; ];
pub static BRAIN_STAGING: LazyLock<&str> = pub static BRAIN_STAGING: LazyLock<&str> =

@ -18,7 +18,7 @@ impl From<grpc::proto::ListOperatorsResp> for TabledOperator {
fn from(brain_operator: grpc::proto::ListOperatorsResp) -> Self { fn from(brain_operator: grpc::proto::ListOperatorsResp) -> Self {
TabledOperator { TabledOperator {
wallet: brain_operator.pubkey, wallet: brain_operator.pubkey,
escrow: brain_operator.escrow, escrow: brain_operator.escrow / 1_000_000_000,
email: brain_operator.email, email: brain_operator.email,
app_nodes: brain_operator.app_nodes, app_nodes: brain_operator.app_nodes,
vm_nodes: brain_operator.vm_nodes, vm_nodes: brain_operator.vm_nodes,