From e2616964281342aa980298fc4350ac0056c8d102 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 11:30:08 +0100 Subject: [PATCH 1/2] Bump tokio from 1.37.0 to 1.38.0 (#1095) Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.37.0 to 1.38.0. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.37.0...tokio-1.38.0) --- updated-dependencies: - dependency-name: tokio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d7cc11b5..d7c00e6f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3904,9 +3904,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.37.0" +version = "1.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787" +checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a" dependencies = [ "backtrace", "bytes", @@ -3933,9 +3933,9 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" +checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 81df3360..9d83fb6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,7 @@ serde_json = "1.0" sha2 = { version = "0.10.8", features = [] } simplelog = { version = "0.12.2" } thiserror = "1.0.61" -tokio = { version = "1.37.0", features = ["rt-multi-thread", "time", "sync"] } +tokio = { version = "1.38.0", features = ["rt-multi-thread", "time", "sync"] } uniffi = "0.27.0" uuid = { version = "1.8.0", features = ["v5"] } From 0584c8ba3cbdea3eaa04a9e1f3927659da0c3c4c Mon Sep 17 00:00:00 2001 From: Andrei <92177534+andrei-21@users.noreply.github.com> Date: Fri, 31 May 2024 19:18:49 +0100 Subject: [PATCH 2/2] Fix computation of `min_withdrawable` (#1096) --- src/lnurl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lnurl.rs b/src/lnurl.rs index 7b5cf1de..c8836d0c 100644 --- a/src/lnurl.rs +++ b/src/lnurl.rs @@ -58,7 +58,7 @@ impl LnUrlWithdrawDetails { ) -> Self { Self { min_withdrawable: request_data - .max_withdrawable + .min_withdrawable .as_msats() .to_amount_up(exchange_rate), max_withdrawable: request_data