mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-22 03:48:01 -05:00
fix: assert that Monero address pool sums to one
This commit is contained in:
parent
a48652328c
commit
e73a418cd2
6 changed files with 26 additions and 7 deletions
|
|
@ -186,12 +186,12 @@ export async function buyXmr(
|
|||
address_pool.push(
|
||||
{
|
||||
address: monero_receive_address,
|
||||
percentage: 100 - donation_percentage * 100,
|
||||
percentage: 1 - donation_percentage,
|
||||
label: "Your wallet",
|
||||
},
|
||||
{
|
||||
address: donation_address,
|
||||
percentage: donation_percentage * 100,
|
||||
percentage: donation_percentage,
|
||||
label: "Tip to the developers",
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue