You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Funnel smart contract imports and uses the ERC20 contract directly for the _baseToken storage variable.
The FunnelFactory smart contract imports the Funnel contract directly to use it in the initialization process.
It is best practice to use interfaces when interacting with external contracts.
Importing and using an ERC20 smart contract directly may lead to higher deployment Gas expenses when deploying new funnels.
Importing contracts directly increases the bytecode size of the deployed smart contract.
Paths
./src/Funnel.sol
./src/FunnelFactory.sol
Recommendation
Consider using the IERC20 interface for the _baseToken variable in the Funnel contract. Consider using the IFunnel interface, with an additional declaration of the initialize() function, in the FunnelFactory contract.
Status
New
The text was updated successfully, but these errors were encountered:
The Funnel smart contract imports and uses the
ERC20
contract directly for the_baseToken
storage variable.The FunnelFactory smart contract imports the Funnel contract directly to use it in the
initialization
process.It is best practice to use interfaces when interacting with external contracts.
Importing and using an
ERC20
smart contract directly may lead to higher deployment Gas expenses when deploying new funnels.Importing contracts directly increases the bytecode size of the deployed smart contract.
Paths
./src/Funnel.sol
./src/FunnelFactory.sol
Recommendation
Consider using the
IERC20
interface for the_baseToken
variable in the Funnel contract. Consider using theIFunnel
interface, with an additional declaration of theinitialize()
function, in the FunnelFactory contract.Status
New
The text was updated successfully, but these errors were encountered: