Closed code423n4 closed 2 years ago
JMukesh
state variable that are not updated throughout the contract they should be declared as constant to save gas
https://github.com/althea-net/cosmos-gravity-bridge/blob/92d0e12cea813305e6472851beeb80bd2eaf858d/solidity/contracts/CosmosToken.sol#L5
manual review
declare it as constant
Duplicate (although not exactly) of #48 but with less details.
Handle
JMukesh
Vulnerability details
Impact
state variable that are not updated throughout the contract they should be declared as constant to save gas
Proof of Concept
https://github.com/althea-net/cosmos-gravity-bridge/blob/92d0e12cea813305e6472851beeb80bd2eaf858d/solidity/contracts/CosmosToken.sol#L5
Tools Used
manual review
Recommended Mitigation Steps
declare it as constant