57969 sc insight lack of incentive to liquidate small positions can cause the system to accumulate bad debt
Description
Brief/Intro
Vulnerability Details
function mint(uint256 tokenId, uint256 amount, address recipient) external {
_checkArgument(recipient != address(0));
_checkForValidAccountId(tokenId);
@> _checkArgument(amount > 0);
_checkState(!loansPaused);
_checkAccountOwnership(IAlchemistV3Position(alchemistPositionNFT).ownerOf(tokenId), msg.sender);
// Query transmuter and earmark global debt
_earmark();
// Sync current user debt before more is taken
_sync(tokenId);
// Mint tokens to recipient
_mint(tokenId, amount, recipient);
}Impact Details
References
Proof of Concept
Proof of Concept
Previous57926 sc low the conditional strategydeallocationloss event in morphoyearnogwethstrategy deallocate gets logged all the time due a misplacement in variable declarationNext57806 sc low staking graph argument bounds are incorrectly defined
Was this helpful?