mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-27 03:06:24 -05:00
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:
parent
bdb406a299
commit
e336051c1b
6 changed files with 49 additions and 21 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue