Convert balance to milli-sats

This commit is contained in:
2023-07-13 14:08:43 +01:00
parent 04e6b5fd57
commit 0eead300db
6 changed files with 26 additions and 11 deletions

View File

@ -39,7 +39,7 @@ public class NostrController : Controller
user = new()
{
PubKey = pk,
Balance = 1000,
Balance = 1000_000,
StreamKey = Guid.NewGuid().ToString()
};
@ -58,7 +58,7 @@ public class NostrController : Controller
{
Unit = "min",
Rate = _config.Cost,
Remaining = user.Balance
Remaining = (long)Math.Floor(user.Balance / 1000m)
}
};