mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2025-08-07 19:18:28 -04:00
fix: relay fee in msats
Signed-off-by: Greg Heartsfield <scsibug@imap.cc>
This commit is contained in:
committed by
Greg Heartsfield
parent
a7b169c0d3
commit
7650f5f4a3
@@ -4,7 +4,7 @@ use crate::config::Settings;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
pub const CARGO_PKG_VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION");
|
||||
pub const UNIT: &str = "sats";
|
||||
pub const UNIT: &str = "msats";
|
||||
|
||||
/// Limitations of the relay as specified in NIP-111
|
||||
/// (This nip isn't finalized so may change)
|
||||
@@ -80,7 +80,7 @@ impl From<Settings> for RelayInfo {
|
||||
let (payment_url, fees) = if p.enabled {
|
||||
let admission_fee = if p.admission_cost > 0 {
|
||||
Some(vec![Fee {
|
||||
amount: p.admission_cost,
|
||||
amount: p.admission_cost * 1000,
|
||||
unit: UNIT.to_string(),
|
||||
}])
|
||||
} else {
|
||||
@@ -89,7 +89,7 @@ impl From<Settings> for RelayInfo {
|
||||
|
||||
let post_fee = if p.cost_per_event > 0 {
|
||||
Some(vec![Fee {
|
||||
amount: p.cost_per_event,
|
||||
amount: p.cost_per_event * 1000,
|
||||
unit: UNIT.to_string(),
|
||||
}])
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user