From e76eb8bd4aba5455cd23a71000b66d3a83608789 Mon Sep 17 00:00:00 2001 From: alpaylan Date: Wed, 14 Apr 2021 01:05:40 +0300 Subject: remove unused part. --- src/handlers.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/handlers.rs') diff --git a/src/handlers.rs b/src/handlers.rs index be2a020..cc71ba7 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -303,18 +303,7 @@ pub async fn authorized_propose_transaction( StatusCode::BAD_REQUEST, )); } - } else if new_transaction.by == new_transaction.target { - if internal_user.balance < new_transaction.amount { - return Ok(warp::reply::with_status( - warp::reply::json(&GradeCoinResponse { - res: ResponseType::Error, - message: "Bank does not have enough balance" - .to_owned(), - }), - StatusCode::BAD_REQUEST, - )); - } - } else { + } else { // todo: add bank mechanism return Ok(warp::reply::with_status( warp::reply::json(&GradeCoinResponse { res: ResponseType::Error, -- cgit v1.2.3-70-g09d2