pub fn confirm_withdrawal(
token: String,
chain: String,
account: String,
amount_withdrawn: u64,
dc_canister: Principal,
) -> bool
Expand description
Confirms a successful withdrawal by updating the necessary balances.
§Parameters
token
: The token involved in the transaction.chain
: The blockchain chain.account
: The user’s wallet account.amount_withdrawn
: The amount withdrawn.dc_canister
: The principal of the DC canister.
§Returns
A boolean indicating the success of the withdrawal confirmation.