Open code423n4 opened 2 years ago
uint256(orderHash) is used in 3 places inside fillOrder(), it's casted value can be saved into a local variable to reuse variable instead of multiple casting
uint256(orderHash)
fillOrder()
PuttyV2.sol#L303
PuttyV2.sol#L312
PuttyV2.sol#L316
// recommendation example uint tempOrderHash = uint256(orderHash)
10_000 days
bytes.concat
skim()
string
PuttyV2Nft.sol
1. Use local variable for expression re-used multiple times
uint256(orderHash)
is used in 3 places insidefillOrder()
, it's casted value can be saved into a local variable to reuse variable instead of multiple castingPuttyV2.sol#L303
PuttyV2.sol#L312
PuttyV2.sol#L316
2.
10_000 days
can be saved in a constant varible3. Use
bytes.concat
instead of `abi.encodePacked4. No method to rescue stucked tokens
skim()
like method to withdraw stucked funds.5 .Unused imported library
string
library is imported inPuttyV2Nft.sol
is not used.