Calling createTradingAccountAndMulticall
with ETH attached will result in a permanent loss of it.
TradingAccountBranch:createTradingAccountAndMulticall()
allow users to create a new trading account and, in the same transaction, perform additional operations on it via delegatecall
.
The calldata are modified to include the newly created tradingAccountId as follows:
So, the only public function on the contract that matches this calldata layout, is depositMargin()
.
Since depositMargin()
isn't payable
, any ETH attached to the call will be forever stuck in the contract.
Manual Review
Consider making createTradingAccountAndMulticall
as non-payable since there is no need to transfer ETH to this contract.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.