Skip to content

Commit 8f06e81

Browse files
noib3LeoComandini
authored andcommitted
rust: set Blockstream as the exchange rate provider
1 parent 4b3909f commit 8f06e81

File tree

1 file changed

+3
-2
lines changed
  • subprojects/gdk_rust/gdk_electrum/src

1 file changed

+3
-2
lines changed

subprojects/gdk_rust/gdk_electrum/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,8 +1108,9 @@ impl ElectrumSession {
11081108
}
11091109

11101110
pub fn get_available_currencies(&self) -> Result<Value, Error> {
1111-
Ok(json!({ "all": [ "USD" ], "per_exchange": { "BITFINEX": [ "USD" ] } }))
1112-
// TODO implement
1111+
// TODO: use blockstream endpoint listing all available currencies when
1112+
// it'll be available.
1113+
Ok(json!({ "all": [ "USD" ], "per_exchange": { "Blockstream": [ "USD" ] } }))
11131114
}
11141115

11151116
pub fn get_unspent_outputs(&self, opt: &GetUnspentOpt) -> Result<GetUnspentOutputs, Error> {

0 commit comments

Comments
 (0)