DeFiFoundry
60,000 USDC
View results
Submission Details
Severity: low
Valid

Native ETH can be stuck in the contract

Summary

The TradingAccountBranch::createTradingAccountAndMulticall() is responsible for creating a trading account and execute different function on it such as depositMargin()

Vulnerability Details

This function is payable meaning ETH can be sent during the transaction. This value is never used anywhere else in Zaros meaning the ETH will remain in the contract with no way to retrieve it.

Impact

Funds can be lost in the contract.

Tools Used

Manual review

Recommendations

Remove the payable from the function.

Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Validated
Assigned finding tags:

`createTradingAccountAndMulticall` shouldn't be payable

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.