#46892 [SC-High] small deposits could prevent users from withdrawing their funds
Description
Brief/Intro
Vulnerability Details
fn deposit(
ref self: ContractState, token_address: ContractAddress, amount: felt252,
) -> felt252 {
assert!(token_address.is_non_zero(), "Deposit: token_address is zero");
let recipient = get_caller_address();
self.account._add_new_account_if_not_exists(recipient);
self.token._deposit(recipient, recipient, token_address, amount)
}
Impact Details
Proof of Concept
Proof of Concept
Previous#46888 [SC-High] account_transfer_partial: lack of input validation when working with signed integersNext#46910 [SC-Insight] Token Balance Event Data Inconsistency in Position Transfers
Was this helpful?