mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
fix: Modify tron fee to eliminate spike due to first tx (#1439)
This commit is contained in:
parent
bfb78eded9
commit
1fdc848b3a
1 changed files with 0 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue