diff --git a/src/actions.cr b/src/actions.cr index 0a6d401..e8da3e8 100644 --- a/src/actions.cr +++ b/src/actions.cr @@ -28,7 +28,7 @@ module Hodler wallets[to_id] ||= 0 wallets[from_id] -= tr.from.amount wallets[fee_id] -= tr.fee.amount - wallets[to_id] += tr.from.amount + wallets[to_id] += tr.to.amount pp tr pp wallets