mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-03 20:24:24 -04:00
Deactivate focus traversal when input fields are deactivated
This commit is contained in:
parent
461aa9bd7f
commit
ab7611e2c8
4 changed files with 35 additions and 13 deletions
|
@ -22,6 +22,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
// TODO use https://github.com/timmolter/XChange
|
||||
public class PriceFeed {
|
||||
private static final Logger log = LoggerFactory.getLogger(PriceFeed.class);
|
||||
|
||||
|
@ -44,9 +45,9 @@ public class PriceFeed {
|
|||
}
|
||||
}
|
||||
|
||||
private static final long PERIOD_FIAT_SEC = 2 * 60;
|
||||
private static final long PERIOD_ALL_FIAT_SEC = 60 * 5;
|
||||
private static final long PERIOD_ALL_CRYPTO_SEC = 60 * 5;
|
||||
private static final long PERIOD_FIAT_SEC = 90;
|
||||
private static final long PERIOD_ALL_FIAT_SEC = 60 * 3;
|
||||
private static final long PERIOD_ALL_CRYPTO_SEC = 60 * 3;
|
||||
|
||||
private final Map<String, MarketPrice> cache = new HashMap<>();
|
||||
private final PriceProvider fiatPriceProvider = new BitcoinAveragePriceProvider();
|
||||
|
|
|
@ -7,7 +7,6 @@ import java.io.IOException;
|
|||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
// https://api.bitfinex.com/v1/pubticker/BTCUSD
|
||||
public interface PriceProvider extends Serializable {
|
||||
Map<String, MarketPrice> getAllPrices() throws IOException, HttpException;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue