20,000 USDC
View results
Submission Details
Severity: gas

sellProfits function in Fees.sol is better if returns amount

Summary

In the sellProfits function, the amount out calculated, It is better to return that for better interaction with other contracts.

- function sellProfits(address _profits) public {
+ function sellProfits(address _profits) public returns(uint256 amount){

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.