As of my understanding this function (`balanceDeployed()`) returning net balance here
In transmuter case there is 2 type of balance
unexchanged balance
claimable balance
When a user deposits synthetic tokens into the Transmuter, the tokens are added to their UnexchangedBalance
.
Over time, as collateral becomes available, the Transmuter converts the synthetic tokens to the underlying asset. This process reduces the UnexchangedBalance
and increases the ClaimableBalance
.
So here its important to consider claimable balance when we fetching Net Deployed balance,
or
balanceDeployed()
should only called after calling transmuter.claim()
in that case return value will be acurate.
https://github.com/Cyfrin/2024-12-alchemix/blob/main/src/StrategyArb.sol#L122-L124
https://github.com/Cyfrin/2024-12-alchemix/blob/main/src/StrategyOp.sol#L135-L137
https://github.com/Cyfrin/2024-12-alchemix/blob/main/src/StrategyMainnet.sol#L146-L148
manual review
should add here claimable balance from transmuter.
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.