From fe8e07844a694243e001b4a820c0ee78c354f8dd Mon Sep 17 00:00:00 2001 From: William Grzybowski Date: Thu, 21 Dec 2023 08:21:25 -0300 Subject: [PATCH] Fix remaining of the coin --- pool/absorb_spend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool/absorb_spend.py b/pool/absorb_spend.py index 665a21b..147db1d 100644 --- a/pool/absorb_spend.py +++ b/pool/absorb_spend.py @@ -125,7 +125,7 @@ async def spend_with_fee( if not spend_reward: transaction = await wallet['rpc_client'].create_signed_transaction( - additions=[{'puzzle_hash': wallet['puzzle_hash'], 'amount': 0}], + additions=[{'puzzle_hash': wallet['puzzle_hash'], 'amount': spend_coin.amount - fee}], tx_config=DEFAULT_TX_CONFIG, coins=[spend_coin], coin_announcements=[Announcement(p2_coin.name(), b"$")],