Phoenix-Protocol-Group / phoenix-contracts

Source code of the smart contracts of the Phoenix DeFi hub DEX protocol
GNU General Public License v3.0
10 stars 6 forks source link

PHOAM-022: Wrong event topic can mislead data consumers #355

Closed gangov closed 2 months ago

gangov commented 2 months ago

Location

./contracts/stake/src/contract.rs:245

Description The events triggered at the end of the unbond function use the incorrect event topic (bond instead of unbond). Any off-chain system relying on these events could be misled into processing incorrect information, potentially resulting in an overestimation of the number of bonds.

Recommendation Correct the event topic to accurately reflect the function from which it is triggered (unbond).