mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-01-25 14:06:45 -05:00
increase minimum trade amount to 0.1 XMR
This commit is contained in:
parent
c376be67e2
commit
48affa0014
@ -113,6 +113,7 @@ const TestConfig = {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
maxFee: BigInt("75000000000"),
|
maxFee: BigInt("75000000000"),
|
||||||
|
minSecurityDeposit: BigInt(MoneroUtils.xmrToAtomicUnits(0.1)),
|
||||||
daemonPollPeriodMs: 5000,
|
daemonPollPeriodMs: 5000,
|
||||||
maxWalletStartupMs: 10000, // TODO (woodser): make shorter by switching to jni
|
maxWalletStartupMs: 10000, // TODO (woodser): make shorter by switching to jni
|
||||||
maxCpuPct: 0.25,
|
maxCpuPct: 0.25,
|
||||||
@ -3260,10 +3261,13 @@ function testCryptoPaymentAccountsEqual(acct1: PaymentAccount, acct2: PaymentAcc
|
|||||||
function testOffer(offer: OfferInfo, config?: TradeContext) {
|
function testOffer(offer: OfferInfo, config?: TradeContext) {
|
||||||
expect(offer.getId().length).toBeGreaterThan(0);
|
expect(offer.getId().length).toBeGreaterThan(0);
|
||||||
if (config) {
|
if (config) {
|
||||||
expect(BigInt(offer.getAmount())).toEqual(config.amount);
|
if (BigInt(offer.getBuyerSecurityDeposit()) == TestConfig.minSecurityDeposit) {
|
||||||
|
expect(BigInt(offer.getSellerSecurityDeposit())).toEqual(BigInt(offer.getBuyerSecurityDeposit()));
|
||||||
|
} else {
|
||||||
expect(HavenoUtils.divideBI(BigInt(offer.getBuyerSecurityDeposit()), BigInt(offer.getAmount()))).toEqual(config.buyerSecurityDepositPct);
|
expect(HavenoUtils.divideBI(BigInt(offer.getBuyerSecurityDeposit()), BigInt(offer.getAmount()))).toEqual(config.buyerSecurityDepositPct);
|
||||||
expect(HavenoUtils.divideBI(BigInt(offer.getSellerSecurityDeposit()), BigInt(offer.getAmount()))).toEqual(config.buyerSecurityDepositPct); // TODO: using same security deposit config for buyer and seller
|
expect(HavenoUtils.divideBI(BigInt(offer.getSellerSecurityDeposit()), BigInt(offer.getAmount()))).toEqual(config.buyerSecurityDepositPct); // TODO: using same security deposit config for buyer and seller
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// TODO: test rest of offer
|
// TODO: test rest of offer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user