safeERC20 library imported but not used #154
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
loop
Vulnerability details
AirDropDistribution.sol
andInvestorDistribution.sol
import thesafeERC20
library but make use of the normal ERC20transfer
function rather thansafeTransfer
. Considering this is called on the BOOT token there is likely no need for it to besafeTransfer
. However, since the library is not used there is no need for it to be imported.Proof of Concept
Transfer calls:
https://github.com/code-423n4/2021-11-bootfinance/blob/main/vesting/contracts/AirdropDistribution.sol#L542
https://github.com/code-423n4/2021-11-bootfinance/blob/main/vesting/contracts/AirdropDistribution.sol#L567
https://github.com/code-423n4/2021-11-bootfinance/blob/main/vesting/contracts/InvestorDistribution.sol#L132
https://github.com/code-423n4/2021-11-bootfinance/blob/main/vesting/contracts/InvestorDistribution.sol#L156
https://github.com/code-423n4/2021-11-bootfinance/blob/main/vesting/contracts/InvestorDistribution.sol#L207
The text was updated successfully, but these errors were encountered: