M-09 MitigationConfirmed #14
Labels
confirmed for report
This issue is confirmed for report
mitigation-confirmed
MR-M-09
satisfactory
satisfies C4 submission criteria; eligible for awards
Lines of code
Vulnerability details
Comments
The M-09 issue shows that the tokens sent to the AMO from the staker by
withdrawAllAndUnwrap
function will stuck in the contract forever because there is not an external interface to transfer tokens from the AMO contract directly.The mitigation commit adds two changes:
recoverToken
function which is used to withdraw specified tokens in the contract by the admin.withdrawAllAndUnwrap
function. The tokens will be sent to the msg.sender, which is limited by theonlyOwner
modifier and must be the owner address, instead of the AMO contract.So all the tokens are available for the admin in the AMO and CVXStaker.
The text was updated successfully, but these errors were encountered: