feat(gui): Display markup on "waiting for bitcoin deposit page" (#209)

* feat(gui): Display markup on "waiting for bitcoin deposit page"
* feat: Enable fetching of fiat rates by default
This commit is contained in:
binarybaron 2024-11-26 14:18:20 +01:00 committed by GitHub
parent bdb406a299
commit e336051c1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 49 additions and 21 deletions

View file

@ -70,3 +70,8 @@ export function rendezvousSellerToMakerStatus(
export function bytesToMb(bytes: number): number {
return bytes / (1024 * 1024);
}
/// Get the markup of a maker's exchange rate compared to the market rate in percent
export function getMarkup(makerPrice: number, marketPrice: number): number {
return (makerPrice - marketPrice) / marketPrice * 100;
}