Currently I lock the function for the user to prevent re-enterncy attack but is there other ways? Especially i am thinking that our backend canister can’t by called by any other frontend, so it can be overkill.
#[update]
async fn deposit_ckusdt() -> Result<Wallet, Error> {
if is_deposeting(caller()){
return Err("Please tray again later")
}
set_is_deposeting(caller())
// ..... rest of code
unset_is_deposeting(caller())
}