#47310 [SC-Medium] Integer to Felt conversion completely ruins the Vaults accounting
Description
Brief/Intro
Vulnerability Details
fn getAccountValue(self: @ContractState, account: ContractAddress) -> felt252 {
Self::get_account_value(self, account)
}
fn get_account_value(self: @ContractState, account: ContractAddress) -> felt252 {
let account_state = self._load_account_v2(account);
account_state.account_value().into()
}Impact Details
References
Proof of Concept
Proof of Concept
Previous#47309 [SC-Medium] Type mishandling allows for users to withdraw FAST from vault instead of STANDARDNext#47314 [SC-Medium] account_transfer_partial(...) function doesn't check sender's health after transferring balances
Was this helpful?