zach on Nostr: function stackSats(currentBalance, isHumble) { const satoshiToAdd = 100000000; if ...
function stackSats(currentBalance, isHumble) {
const satoshiToAdd = 100000000;
if (isHumble) {
currentBalance += satoshiToAdd;
}
return currentBalance;
}
Published at
2023-11-18 01:14:15Event JSON
{
"id": "31a477ae3157690756c37872b7dccb5d600adb81637abe37292a65d98107df18",
"pubkey": "7a78fbfec68c2b3ab6084f1f808321ba3b5ea47502c41115902013e648e76288",
"created_at": 1700270055,
"kind": 1,
"tags": [],
"content": "function stackSats(currentBalance, isHumble) {\n const satoshiToAdd = 100000000; \n\nif (isHumble) {\n currentBalance += satoshiToAdd;\n } \nreturn currentBalance; \n}",
"sig": "f891e3c456b1551af981af296b6717154a3b775891cefd4c6268dff2dc9a539d36deecc66ae8141db78298dc24580826929fa4cc687c304511c02b9659735f8c"
}