Closed usgeeus closed 2 months ago
Description Just declare the variable and remove the 0 assignment. The default value of the variable is 0 anyway.
The one of purpose of the multisend is to save gas.
Lines of Codes https://github.com/tokamak-network/Tms-contract/blob/31a33830d7840ef742a24d1be3b299d6a1a05c07/contracts/MultiSender.sol#L46 https://github.com/tokamak-network/Tms-contract/blob/31a33830d7840ef742a24d1be3b299d6a1a05c07/contracts/MultiSender.sol#L94
Configuration
Impact Waste gas.
Recommendation
uint256 _failedAmount; uint256 _totalAmount;
uint256 _failedAmount;
uint256 _totalAmount;
Solved
Description Just declare the variable and remove the 0 assignment. The default value of the variable is 0 anyway.
The one of purpose of the multisend is to save gas.
Lines of Codes https://github.com/tokamak-network/Tms-contract/blob/31a33830d7840ef742a24d1be3b299d6a1a05c07/contracts/MultiSender.sol#L46 https://github.com/tokamak-network/Tms-contract/blob/31a33830d7840ef742a24d1be3b299d6a1a05c07/contracts/MultiSender.sol#L94
Configuration
Impact Waste gas.
Recommendation
uint256 _failedAmount;
uint256 _totalAmount;