IOP _ ThunderNFT 34522 - [Smart Contract - Low] Self-transfer would inflate the balance
Description
Brief/Intro
Vulnerability Details
let from_balance = _balance_of(from, asset);
let to_balance = _balance_of(to, asset);
require(from_balance >= amount, PoolErrors::AmountHigherThanBalance);
storage.balance_of.insert((from, asset), from_balance - amount);
storage.balance_of.insert((to, asset), to_balance + amount);Impact Details
References
Proof of concept
Proof of Concept
PreviousIOP _ ThunderNFT 34519 - [Smart Contract - High] users cant withdraw their tokens when specific asseNextIOP _ ThunderNFT 34534 - [Smart Contract - Critical] Maker will always only get token even if specif
Last updated
Was this helpful?