Add transfer fee on TFT → SPORE conversion #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_PLANCKconfiguration (default 100,000 planck = 0.01 TFT) that is deducted from theincoming TFT amount before calculating the SPORE output. Transfers where the amount is less than or equal to
the fee should be rejected as invalid.