Platform: Code4rena
Start Date: 03/05/2022
Pot Size: $75,000 USDC
Total HM: 6
Participants: 55
Period: 7 days
Judge: Albert Chon
Total Solo HM: 2
Id: 116
League: COSMOS
Rank: 47/55
Findings: 1
Award: $86.28
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: GermanKuber
Also found by: 0v3rf10w, 0x1f8b, 0xDjango, 0xNazgul, 0xf15ers, 0xkatana, AlleyCat, CertoraInc, Dravee, Funen, GimelSec, IllIllI, JC, MaratCerby, WatchPug, Waze, defsec, delfin454000, ellahi, gzeon, hake, hansfriese, ilan, jonatascm, nahnah, oyc_109, peritoflores, rfa, robee, simon135, slywaters, sorrynotsorry
86.2765 USDC - $86.28
You can save 3500~ gas per call by removing nonReentrant and fixing your reentrancy issues.
function sendToCosmos( address _tokenContract, bytes32 _destination, uint256 _amount ) public { state_lastEventNonce = state_lastEventNonce.add(1); IERC20(_tokenContract).safeTransferFrom(msg.sender, address(this), _amount); emit SendToCosmosEvent( _tokenContract, msg.sender, _destination, _amount, state_lastEventNonce ); }
same for submitBatch, submitLogicCall, updateValset, logicBatch