|
@@ -99,9 +99,11 @@ async function depositAndConfirm(account, amount, asset) {
|
|
}
|
|
}
|
|
|
|
|
|
async function test() {
|
|
async function test() {
|
|
|
|
+ /* */
|
|
await depositAndConfirm(addr1, 111512312, "BTC/8");
|
|
await depositAndConfirm(addr1, 111512312, "BTC/8");
|
|
await depositAndConfirm(addr2, 300512312, "USD/4");
|
|
await depositAndConfirm(addr2, 300512312, "USD/4");
|
|
- let t = await trade(1, "BTC/8", addr1, 26751.11, "USD/4", addr2);
|
|
|
|
|
|
+ /* */
|
|
|
|
+ let t = await trade(0.01, "BTC/8", addr1, 26751.11, "USD/4", addr2);
|
|
dbg(t);
|
|
dbg(t);
|
|
t = await change_status(t._rev, 'processing',);
|
|
t = await change_status(t._rev, 'processing',);
|
|
dbg(t)
|
|
dbg(t)
|