-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow fractional fees to be charged to _either_ sender or receiver #1926
Comments
Hey @tinker-michaelj, love to see all of the progress on HIP-18 🎊 Curious what the expected use case of this functionality is? Why would someone want to offset the costs to the sender, effectively making it Also curious what implications this would have for wallets, and error/response codes that end up in the SDKs? Would all wallets, etc., now have to check "which direction" the custom fee is moving, with this change? Any clarity and opportunity for discussion would be greatly appreciated. |
Hi @Cooper-Kunz! This idea came from the HIP-18 discussion here. The related use case was given as,
You also wrote,
The I don't think any new response codes will be required. I am going to write up the new |
Thank you so much for clarifying @tinker-michaelj - you are the best 😄 In general I think that this provides some really nice functionality. Regarding,
It seems as though an application (e.g. a wallet developer) would need to show two distinct types of fees to users. e.g. those that increase the required transfer amount, and those that simply get deducted from the required transfer amount. I agree that having an additional response code seems unnecessary but providing all of the potentially relevant information in the tx receipt, i.e. the payers of each fee, who they went to, etc., would be very valuable. +1 to that addition. Very excited about |
Hello @Cooper-Kunz This is proposer of the function. Thank you for your answer! Until now, fractional fee charge to recerver only. With this impoveing(netOfTransfers) we can provide to option for fee charger. |
Thanks @Cooper-Kunz!!
Created #1938 as step in this direction.
Created #1935! As linked in the issue, updated the custom fees README in a branch here to give a bit more color on the proposed charging behavior. |
Ah I think I understand @cmdhema...You want something like a Maybe like,
|
Ok, I gotta call point of order on this. This can quickly get out of hand and become difficult to "explain". The simple solution is to not change anything: this puts a burden on the wallet creating the transaction to explain to the user why they need to spend X+% to account for the fractional fee when sending FT to a destination. The next change was proposed to make it so this % could be a surcharge. I would make the argument that this, while not terribly complicated, is unnecessary because wallets can be programmed as above to make it clear to the account holder "where the funds will go" Adding a |
⛔ Blocked by #1925
Problem
In
0.16.0
, fractional fees are always assessed to the receiver of token units.So if token
T
has a fractional fee of 1/10 and Alice sends100T
to Bob, then Bob receives only90T
while the fee collector gets10T
.That is, essentially Bob is charged
10T
.But sometimes we want Alice to be charged the
10T
fee in this scenario.Solution
Update the
FractionalFee
type with abool netOfTransfers
flag like,Alternatives
No response
The text was updated successfully, but these errors were encountered: