Apply a transfer fee to an amount e.g. You send 10000 amount with 100 fee rate. The fee amount will be 100. So the amount after fee will be 9900.
amount
transfer_fee
u64
Apply a transfer fee to an amount e.g. You send 10000 amount with 100 fee rate. The fee amount will be 100. So the amount after fee will be 9900.
Parameters
amount
: The amount to apply the fee totransfer_fee
: The transfer fee to applyReturns
u64
: The amount after the fee has been applied