Add transfer fee on TFT → SPORE conversion #5

Closed
opened 2026-03-01 08:59:01 +00:00 by mahmoud · 0 comments
Owner

Description

The TFT→SPORE conversion currently sends the full transfer amount with no fee deducted. The refund path already
has a configurable fee (REFUND_FEE_PLANCK), but the forward conversion path does not.

Add a TRANSFER_FEE_PLANCK configuration (default 100,000 planck = 0.01 TFT) that is deducted from the
incoming TFT amount before calculating the SPORE output. Transfers where the amount is less than or equal to
the fee should be rejected as invalid.

## Description The TFT→SPORE conversion currently sends the full transfer amount with no fee deducted. The refund path already has a configurable fee (`REFUND_FEE_PLANCK`), but the forward conversion path does not. Add a `TRANSFER_FEE_PLANCK` configuration (default 100,000 planck = 0.01 TFT) that is deducted from the incoming TFT amount before calculating the SPORE output. Transfers where the amount is less than or equal to the fee should be rejected as invalid.
mahmoud self-assigned this 2026-03-01 08:59:04 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_tfspores#5
No description provided.