mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-10-01 01:35:42 -04:00
start seednode with monerod address
This commit is contained in:
parent
b2e315963f
commit
7e76e83884
@ -73,6 +73,7 @@ services:
|
||||
"--useDevPrivilegeKeys=true",
|
||||
"--nodePort=2002",
|
||||
"--appName=haveno-XMR_LOCAL_Seed1_2002",
|
||||
"--xmrNode=http://localhost:28081"
|
||||
]
|
||||
network_mode: "host"
|
||||
depends_on:
|
||||
@ -88,6 +89,7 @@ services:
|
||||
"--useDevPrivilegeKeys=true",
|
||||
"--nodePort=3002",
|
||||
"--appName=haveno-XMR_LOCAL_Seed2_3002",
|
||||
"--xmrNode=http://localhost:28081"
|
||||
]
|
||||
network_mode: "host"
|
||||
depends_on:
|
||||
|
@ -2062,7 +2062,6 @@ async function executeTrade(ctx?: TradeContext): Promise<string> {
|
||||
if (!ctx.concurrentTrades) {
|
||||
const buyerBalancesAfter = await ctx.buyer!.getBalances();
|
||||
const sellerBalancesAfter = await ctx.seller.getBalances();
|
||||
// TODO: getBalance() = available + pending + reserved offers? would simplify this equation
|
||||
const buyerFee = BigInt(buyerBalancesBefore.getBalance()) + BigInt(buyerBalancesBefore.getReservedOfferBalance()) + BigInt(offer!.getAmount()) - (BigInt(buyerBalancesAfter.getBalance()) + BigInt(buyerBalancesAfter.getReservedOfferBalance())); // buyer fee = total balance before + offer amount - total balance after
|
||||
const sellerFee = BigInt(sellerBalancesBefore.getBalance()) + BigInt(sellerBalancesBefore.getReservedOfferBalance()) - BigInt(offer!.getAmount()) - (BigInt(sellerBalancesAfter.getBalance()) + BigInt(sellerBalancesAfter.getReservedOfferBalance())); // seller fee = total balance before - offer amount - total balance after
|
||||
expect(buyerFee).toBeLessThanOrEqual(TestConfig.maxFee);
|
||||
|
Loading…
Reference in New Issue
Block a user