The divideNft
function currently allows an unlimited value for the amount
parameter, which is defined as uint256
. This can result in an excessive number of fractional NFT units, potentially leading to operational inefficiencies and higher gas costs.
Function: divideNft
Code Snippet:
Gas Efficiency: Large values for amount
can increase gas costs due to higher storage operations.
Operational Complexity: Excessive fractionalization can lead to challenges in managing and tracking smaller units.
User Experience: Users may find it cumbersome to handle an unnecessarily high number of fractional tokens.
Consider limiting the amount
parameter to a smaller data type such as uint8
or uint16
to control the number of fractional units and improve gas efficiency.
This change would ensure a practical upper limit on fractional tokens while optimizing storage and gas consumption.
Low – The current implementation is functional but may lead to inefficiencies if excessively large values are used.
Pending review and implementation.
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.