The _nextTokenId variable in UpliftOnlyExample.sol is declared but not used in the contract. According to the Natpec _nextTokenId should be initialised with 1 initially. The oversight could make difficulties to track the NFT tokens and token supply verification.
see the code snippet below:
UpliftOnlyExample.sol:
The _nextTokenId variable can be used in many places in the contract to track the NFT tokens and token supply verification.
see the code snippet below:
UpliftOnlyExample.sol::addLiquidityProportional:
UpliftOnlyExample.sol:::onAfterRemoveLiquidity
The default value of _nextTokenId is 0 which is wrong according to the Natpec. It should be initialised with 1 initially.
The _nextTokenId variable is not used in the contract. The oversight could make difficulties to track the NFT tokens and token supply verification.
Manual Review
Please initialise the _nextTokenId variable with 1 initially and use it in the contract to track the NFT tokens and token supply verification.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.