Platform: Code4rena
Start Date: 30/11/2021
Pot Size: $30,000 USDC
Total HM: 0
Participants: 21
Period: 3 days
Judge: pauliax
Id: 63
League: ETH
Rank: 9/21
Findings: 2
Award: $86.99
🌟 Selected for report: 2
🚀 Solo Findings: 0
13.4097 USDC - $13.41
hickuphh3
Looking at the TRIBE token implementation, it would be cheaper to call the transfer()
method as opposed to the the transferFrom()
method since the latter contains additional logic (Eg. additional SLOAD to fetch the allowance).
function giveTo(address target, uint256 amount) internal { bool check = token1.transfer(target, amount); require(check, "erc20 transfer failed"); }
#0 - pauliax
2021-12-10T16:01:08Z
Valid optimization.
🌟 Selected for report: hickuphh3
73.5785 USDC - $73.58
hickuphh3
The following line
address public constant oracleAddress = 0xd1866289B4Bd22D453fFF676760961e0898EE9BF; // oracle with caching
is only used in the instantiation of the oracle
IOracle public constant oracle = IOracle(oracleAddress);
The first instantiation can be combined with the second to save gas.
IOracle public constant oracle = IOracle(0xd1866289B4Bd22D453fFF676760961e0898EE9BF);
#0 - pauliax
2021-12-10T18:45:21Z
Valid optimization.