Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use max(10 x dust, 0.00777) as min_volume + minor API additions. #858

Merged
merged 12 commits into from
Mar 15, 2021
2 changes: 1 addition & 1 deletion mm2src/coins/test_coin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct TestCoin {}
#[mockable]
#[allow(clippy::forget_ref, clippy::forget_copy, clippy::cast_ref_to_mut)]
impl MarketCoinOps for TestCoin {
fn ticker(&self) -> &str { unimplemented!() }
fn ticker(&self) -> &str { "test" }

fn my_address(&self) -> Result<String, String> { unimplemented!() }

Expand Down
5 changes: 3 additions & 2 deletions mm2src/docker_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2496,12 +2496,13 @@ mod docker_tests {
"rel": "MYCOIN1",
"price": 1,
"volume": 1,
"timeout": 2,
})))
.unwrap();
assert!(rc.0.is_success(), "!sell: {}", rc.1);

log!("Give Bob 35 seconds to convert order to maker");
thread::sleep(Duration::from_secs(35));
log!("Give Bob 4 seconds to convert order to maker");
thread::sleep(Duration::from_secs(4));

let rc = block_on(mm_alice.rpc(json! ({
"userpass": mm_alice.userpass,
Expand Down
Loading