Closed code423n4 closed 2 years ago
patitonar
Gas improvement when reading the variables
https://github.com/althea-net/cosmos-gravity-bridge/blob/92d0e12cea813305e6472851beeb80bd2eaf858d/solidity/contracts/Gravity.sol#L58-L60
Manual review
bytes32 public immutable state_gravityId; uint256 public immutable state_powerThreshold;
duplicate of #48 #34
Handle
patitonar
Vulnerability details
Impact
Gas improvement when reading the variables
Proof of Concept
https://github.com/althea-net/cosmos-gravity-bridge/blob/92d0e12cea813305e6472851beeb80bd2eaf858d/solidity/contracts/Gravity.sol#L58-L60
Tools Used
Manual review
Recommended Mitigation Steps
bytes32 public immutable state_gravityId; uint256 public immutable state_powerThreshold;