#46867 [SC-Insight] The `is_liquidation` field in `transfer_internal` is not properly differentiated.
Description
Brief/Intro
Vulnerability Details
fn transfer_internal(
ref self: ComponentState<TContractState>,
sender: ContractAddress,
recipient: ContractAddress,
token_address: ContractAddress,
amount: felt252,
is_liquidation: felt252,
) {Impact Details
References
Proof of Concept
Proof of Concept
Previous#46856 [SC-Medium] The calculation of shares obtained through token trades will be incorrect, causing users to pay excessive yield fees.Next#46888 [SC-High] account_transfer_partial: lack of input validation when working with signed integers
Was this helpful?