Why Nostr? What is Njump?
2023-11-15 05:43:19
in reply to

Omar Antolín on Nostr: Pinky Floyd First of all what would happen if you charged 10.59? The 2.9% part of the ...

First of all what would happen if you charged 10.59? The 2.9% part of the fee would be 31 cents, rounded to the nearest penny, so the total fee would be 61 cents and you'd only get 9.98, not 10 dollars.

You want to charge an amount such that if you subtract 2.9% percent you get 10.30, right? Now, subtracting 2.9% leaves you with 97.1%, so you are looking for an amount such that 97.1% of it is 10.30, that would be 10.30 ÷ 0.971 = 10.61, rounded to the nearest penny.

So that's the formula: to receive an amount X, you should charge (X + 0.30)÷0.971. Does that make sense?
Author Public Key
npub17mjld0zpmqv8uam9grchpt02kmgdwxlj7m3ede9r5ueefcstpcwqfjrup0