hats-finance / SafeStaking-by-HOPR-0x607386df18b663cf5ee9b879fbc1f32466ad5a85

HOPR is an open incentivized mixnet which enables privacy-preserving point-to-point data exchange. HOPR is similar to Tor but actually private, decentralized and economically sustainable.
https://hoprnet.org
GNU General Public License v3.0
0 stars 1 forks source link

Use specific compiler version #14

Open hats-bug-reporter[bot] opened 11 months ago

hats-bug-reporter[bot] commented 11 months ago

Github username: @jonsey Submission hash (on-chain): 0xa45f53599077cbdc3b13802af859d443447eae4674881ad07fb716b6f826fc4d Severity: low

Description:

Description

It is considered best practice to pick one compiler version and stick with it. With a floating pragma, contracts may accidentally be deployed using an outdated or problematic compiler version which can cause bugs, putting your smart contract's security in jeopardy. The chosen compiler version should be thoroughly tested and considered for known bugs.

The exception in which it is acceptable to use a floating pragma, is in the case of libraries and packages. Otherwise, developers would need to manually update the pragma to compile locally.

/hoprnet/packages/ethereum/contracts/src/static/HoprDistributor.sol


2:pragma solidity >=0.6.0 
QYuQianchen commented 10 months ago

Contracts in static have been deployed and are served as archive. Thus no code change will be done to contracts in that folder.