Skip to content

Commit

Permalink
fix max amount strings
Browse files Browse the repository at this point in the history
  • Loading branch information
wbobeirne committed Sep 11, 2023
1 parent a3ed557 commit ae1de6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub async fn open_channel(
payload: ChannelRequest,
) -> anyhow::Result<String> {
if payload.capacity > MAX_SEND_AMOUNT.try_into().unwrap() {
anyhow::bail!("max capacity is 1,000,000");
anyhow::bail!("max capacity is 10,000,000");
}
if payload.push_amount < 0 {
anyhow::bail!("push_amount must be positive");
Expand Down
2 changes: 1 addition & 1 deletion src/onchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub async fn pay_onchain(
payload: OnchainRequest,
) -> anyhow::Result<String> {
if payload.sats > MAX_SEND_AMOUNT {
anyhow::bail!("max amount is 1,000,000");
anyhow::bail!("max amount is 10,000,000");
}

let txid = {
Expand Down

0 comments on commit ae1de6d

Please sign in to comment.