Update commission percentage handling in transaction processing: adjust logic to use decimal values directly from transaction data, which is how Lamassu stores them
This commit is contained in:
parent
33b148415f
commit
c63785f6b9
1 changed files with 1 additions and 1 deletions
|
|
@ -499,7 +499,7 @@ class LamassuTransactionProcessor:
|
|||
# Extract transaction details
|
||||
crypto_atoms = transaction["crypto_amount"] # Total sats with commission baked in
|
||||
fiat_amount = transaction["fiat_amount"] # Actual fiat dispensed (principal only)
|
||||
commission_percentage = transaction["commission_percentage"] / 100 # Convert to decimal
|
||||
commission_percentage = transaction["commission_percentage"] # Already stored as decimal (e.g., 0.045)
|
||||
discount = transaction.get("discount", 0.0) # Discount percentage
|
||||
|
||||
# Calculate effective commission percentage after discount (following the reference logic)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue