Skip to content

Commit

Permalink
fix: fix initial balance calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWad3r committed Jan 22, 2025
1 parent 0694383 commit 1f73599
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/token_wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@ impl TokenWallet {
most_recent_bit_price
};

let fees = if storage_fees > 1 {
let fee_base = if storage_fees > 1 {
600_000_000u64
} else {
30000u64
.saturating_mul(gas_config.gas_price.shr(16))
.saturating_add(100_000_000u64.saturating_mul(storage_fees))
100_000_000u64
};

let fees = 30000u64.saturating_mul(gas_config.gas_price.shr(16)) + fee_base;

Ok(fees)
}

Expand Down

0 comments on commit 1f73599

Please sign in to comment.