Curved Topaz Boa
High
There is no validation check that the minter contract set in the MasterAMO.sol
initialize()
method has same boost token address or not. There is no way to update boost address later because of the missing setter function.
There is missing validation in initialize()
that the underlying boost token of Minter contract should be same as boost token of MasterAMO contract.
https://github.com/sherlock-audit/2024-10-axion/blob/main/liquidity-amo/contracts/MasterAMO.sol#L122
No response
No response
No response
Both method _mintAndSellBoost()
and _addLiquidity()
will revert because of insufficient boost tokens minted.
No response
Add a check to verify as below in initialize()
:
if(!(IMinter(boostMinter_).boostAddress() == boost_)) {
revert INVALID_MINTER_ADDRESS();
}