drk: clean up TODOs

This commit is contained in:
ghassmo
2021-10-06 10:31:28 +03:00
parent 0b03c013f1
commit bc1ee9f25b
2 changed files with 0 additions and 3 deletions

View File

@@ -213,7 +213,6 @@ impl Darkfid {
let token_id = match assign_id(&network, &token, &self.sol_tokenlist.clone()) {
Ok(t) => t,
Err(e) => {
debug!(target: "DARKFID", "TOKEN ID IS ERR");
return JsonResult::Err(jsonerr(InternalError, Some(e.to_string()), id));
}
};

View File

@@ -180,7 +180,6 @@ async fn start(config: &DrkConfig, options: ArgMatches<'_>) -> Result<()> {
if let Some(matches) = options.subcommand_matches("deposit") {
let network = matches.value_of("network").unwrap().to_lowercase();
// TODO: check that it's a tokenID and not a symbol
let token = matches.value_of("TOKENID").unwrap();
client.check_network(&NetworkName::from_str(&network)?).await?;
@@ -197,7 +196,6 @@ async fn start(config: &DrkConfig, options: ArgMatches<'_>) -> Result<()> {
if let Some(matches) = options.subcommand_matches("withdraw") {
let network = matches.value_of("network").unwrap().to_lowercase();
// TODO: check that it's a tokenID and not a symbol
let token = matches.value_of("TOKENID").unwrap();
let address = matches.value_of("ADDRESS").unwrap();
let amount = matches.value_of("AMOUNT").unwrap().parse::<f64>()?;