IOP _ ThunderNFT 34496 - [Smart Contract - High] Users cant withdraw their funds for removed assets
Description
Brief/Intro
Vulnerability Details
#[storage(read, write)]
fn withdraw(asset: AssetId, amount: u64) {
let sender = msg_sender().unwrap();
let current_balance = _balance_of(sender, asset);
require(current_balance >= amount, PoolErrors::AmountHigherThanBalance);
let asset_manager_addr = storage.asset_manager.read().unwrap().bits();
let asset_manager = abi(AssetManager, asset_manager_addr);
require(asset_manager.is_asset_supported(asset), PoolErrors::AssetNotSupported);Impact Details
References
Proof of concept
Proof of Concept
PreviousIOP _ ThunderNFT 34455 - [Smart Contract - Low] Double Token Vulnerability leads to drain fundsNextIOP _ ThunderNFT 34519 - [Smart Contract - High] users cant withdraw their tokens when specific asse
Last updated
Was this helpful?