mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
Add fiatApiKey
(#858)
This commit is contained in:
parent
9f1325ba0f
commit
7cd4e6583c
3 changed files with 7 additions and 1 deletions
|
@ -3,6 +3,8 @@ import 'package:cake_wallet/entities/fiat_currency.dart';
|
|||
import 'dart:convert';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:http/http.dart';
|
||||
import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
||||
|
||||
|
||||
const _fiatApiClearNetAuthority = 'fiat-api.cakewallet.com';
|
||||
const _fiatApiOnionAuthority = 'n4z7bdcmwk2oyddxvzaap3x2peqcplh3pzdy7tpkk5ejz5n4mhfvoxqd.onion';
|
||||
|
@ -17,6 +19,7 @@ Future<double> _fetchPrice(Map<String, dynamic> args) async {
|
|||
'interval_count': '1',
|
||||
'base': crypto.toString(),
|
||||
'quote': fiat.toString(),
|
||||
'key' : secrets.fiatApiKey,
|
||||
};
|
||||
|
||||
double price = 0.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue