Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AdvayAgrawal committed Sep 23, 2024
1 parent 1dc0d3f commit 3b1d3b6
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/handle_query_contract_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3b1d3b6

Please sign in to comment.