pub fn cancel_withdrawal(
token: String,
chain: String,
account: String,
amount_canceled: u64,
dc_canister: Principal,
) -> boolExpand description
Cancels a withdrawal request, returning the withheld amount to the available balance.
§Parameters
token: The token involved in the transaction.chain: The blockchain chain.account: The user’s wallet account.amount_canceled: The amount to cancel.dc_canister: The principal of the DC canister.
§Returns
A boolean indicating the success of the cancellation.