code-423n4 / 2022-01-timeswap-findings

2 stars 0 forks source link

`10 ** 9` can be changed to `1e9` and save some gas #177

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

WatchPug

Vulnerability details

https://github.com/code-423n4/2022-01-timeswap/blob/bf50d2a8bb93a5571f35f96bd74af54d9c92a210/Timeswap/Timeswap-V1-Convenience/contracts/libraries/NFTTokenURIScaffold.sol#L132-L132

if (significantDigits > 10 ** 9) {

Can be changed to:

if (significantDigits > 1e9) {
Mathepreneur commented 2 years ago

https://github.com/Timeswap-Labs/Timeswap-V1-Convenience/pull/53