Omar Antolín on Nostr: Pinky Floyd First of all what would happen if you charged 10.59? The 2.9% part of the ...
Pinky Floyd (npub1sat…8vnx) 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?
Published at
2023-11-15 05:43:19Event JSON
{
"id": "71e6429fe76584c749f18bb84e1e46f76c4234579bb7b1e67eb245b386509148",
"pubkey": "f6e5f6bc41d8187e776540f170adeab6d0d71bf2f6e396e4a3a73394e20b0e1c",
"created_at": 1700026999,
"kind": 1,
"tags": [
[
"p",
"87570fa2588c74dc789690345d27f7dbf52e0bd1d420dfb0cd40b6fcfd92ce0f",
"wss://relay.mostr.pub"
],
[
"e",
"17c0ed2238640d36d815c727c82a7f3359c5c1344139fc5d5bbf977283f0a537",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mathstodon.xyz/users/oantolin/statuses/111412969467320448",
"activitypub"
]
],
"content": "nostr:npub1satslgjc336dc7ykjq696flhm06juz736ssdlvxdgzm0elvjec8sce8vnx 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.\n\nYou 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.\n\nSo that's the formula: to receive an amount X, you should charge (X + 0.30)÷0.971. Does that make sense?",
"sig": "5e0d1c55bea3cd9390c54f8a289a740694b81376474a98c924f7715c378081c8716033ca865c8b38e77850f5da79c87ba8e09438fb8fb0aeca2f65e261f81d70"
}