Skip to content

Commit

Permalink
ak1 data for issue #1690
Browse files Browse the repository at this point in the history
  • Loading branch information
code423n4 committed Aug 4, 2023
1 parent 2d00295 commit fcc3209
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions data/ak1-Q.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
1. Use uint256 data type for nonce.
For example, the below link, the nonce is treated with uint64.
https://github.com/Tapioca-DAO/tapiocaz-audit/blob/bcf61f79464cfdc0484aa272f9f6e28d5de36a8f/contracts/tOFT/modules/BaseTOFTStrategyModule.sol#L126

uint64 value can be easily reached. max value of uint64 is `18446744073709551615`

2. unsafe use of block.chainId() . this may not be same for all the chains.

when we look at one of the place in `TapOFT.sol`

function _getChainId() private view returns (uint256) {
return block.chainid; -------------------------------->> this will not be same across different chains.
}

0 comments on commit fcc3209

Please sign in to comment.