From 3b1d3b64784e35f837ade85468f108791711f1b7 Mon Sep 17 00:00:00 2001 From: advay agrawal Date: Mon, 23 Sep 2024 16:28:00 +0530 Subject: [PATCH] fix --- src/handle_query_contract_ui.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/handle_query_contract_ui.c b/src/handle_query_contract_ui.c index b4568b7..287afac 100644 --- a/src/handle_query_contract_ui.c +++ b/src/handle_query_contract_ui.c @@ -109,34 +109,6 @@ static bool handle_ethx_request_withdraw(ethQueryContractUI_t *msg, context_t *c return ret; } -static bool handle_kelp_initiate_withdraw(ethQueryContractUI_t *msg, context_t *context) { - bool ret = false; - - memset(msg->title, 0, msg->titleLength); - memset(msg->msg, 0, msg->msgLength); - - switch (msg->screenIndex) { - case 0: - strlcpy(msg->title, "Unstake", msg->titleLength); - ret = amountToString(context->amount_received, - sizeof(context->amount_received), - WEI_TO_ETHER, - "RSETH", - msg->msg, - msg->msgLength); - break; - - case 1: - strlcpy(msg->title, "Asset Expected", msg->titleLength); - strlcpy(msg->msg, context->ticker, msg->msgLength); - ret = true; - break; - - default: - PRINTF("Received an invalid screenIndex\n"); - } - return ret; -} void handle_query_contract_ui(ethQueryContractUI_t *msg) { context_t *context = (context_t *) msg->pluginContext;