From 1fdc848b3a6b3e8dd9c85728fa445968ef28060c Mon Sep 17 00:00:00 2001 From: Adegoke David <64401859+Blazebrain@users.noreply.github.com> Date: Thu, 9 May 2024 12:03:30 +0100 Subject: [PATCH] fix: Modify tron fee to eliminate spike due to first tx (#1439) --- cw_tron/lib/tron_client.dart | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/cw_tron/lib/tron_client.dart b/cw_tron/lib/tron_client.dart index 73812f14c..25edb0f9a 100644 --- a/cw_tron/lib/tron_client.dart +++ b/cw_tron/lib/tron_client.dart @@ -130,11 +130,6 @@ class TronClient { final energyInSun = chainParams.getEnergyFee!; log('Energy In Sun: $energyInSun'); - log( - 'Create Account Fee In System Contract for Chain: ${chainParams.getCreateNewAccountFeeInSystemContract!}', - ); - log('Create Account Fee for Chain: ${chainParams.getCreateAccountFee}'); - final fakeTransaction = Transaction( rawData: rawTransaction, signature: [Uint8List(65)], @@ -185,17 +180,6 @@ class TronClient { totalBurn += chainParams.getMemoFee!; } - // Check if receiver's account is active - final receiverAccountInfo = - await _provider!.request(TronRequestGetAccount(address: receiverAddress)); - - /// Calculate the resources required to create a new account. - if (receiverAccountInfo == null) { - totalBurn += chainParams.getCreateNewAccountFeeInSystemContract!; - - totalBurn += (chainParams.getCreateAccountFee! * bandWidthInSun); - } - log('Final total burn: $totalBurn'); return totalBurn;