Steadefi

Steadefi
DeFiHardhatFoundryOracle
35,000 USDC
View results
Submission Details
Severity: medium
Invalid

`GMXVault::mintFee()` ,GMXVault::mint() minting operation revert

Summary

the minting operation may fail and revert in case of issues.

Vulnerability Details

GMXVault::mintFee()

function mintFee() public {
@> _mint(_store.treasury, GMXReader.pendingFee(_store));
_store.lastFeeCollected = block.timestamp;
}

GMXVault::mint()

function mint(address to, uint256 amt) external onlyVault {
@> _mint(to, amt);
}

Impact

If there are any issues like exceeding the token's maximum supply, you are minting fees to an address, an attacker might find a way to call the mint function and create new tokens without proper authorization.

Tools Used

Manual Review

Recommendations

Using safeMint instead of mint can make the code more safe.

Updates

Lead Judging Commences

hans Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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