From 5d0d59a5fa02581426d7eed1a669fa386e7038e2 Mon Sep 17 00:00:00 2001 From: Serhii Volovyk Date: Tue, 25 Apr 2023 07:14:33 +0300 Subject: [PATCH] default acc creator gas updated (#119) --- mpc-recovery/src/leader_node/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mpc-recovery/src/leader_node/mod.rs b/mpc-recovery/src/leader_node/mod.rs index b2b0e4ac9..4e2c29278 100644 --- a/mpc-recovery/src/leader_node/mod.rs +++ b/mpc-recovery/src/leader_node/mod.rs @@ -49,7 +49,8 @@ pub async fn run(config: Config) { let client = NearRpcAndRelayerClient::connect(&near_rpc, relayer_url); // FIXME: We don't have a token for ourselves, but are still forced to allocate allowance. - // Using randomly generated tokens ensures the uniqueness of tokens on the relayer side. + // Using randomly generated tokens ensures the uniqueness of tokens on the relayer side so + // we can update the allowance on each server run. let fake_oauth_token: String = rand::thread_rng() .sample_iter(&Alphanumeric) .take(16) @@ -58,7 +59,7 @@ pub async fn run(config: Config) { client .register_account(RegisterAccountRequest { account_id: account_creator_id.clone(), - allowance: 300_000_000_000_000, + allowance: 18_000_000_000_000_000_000, // should be enough to create 700_000+ accs oauth_token: fake_oauth_token, }) .await