EthereumCommonwealth / Auditing

Ethereum Commonwealth Security Department conducted over 400 security audits since 2018. Not even a single contract that we audited was hacked. You can access our audit reports in the ISSUES of this repo. We are accepting new audit requests.
https://audits.callisto.network/
GNU General Public License v3.0
132 stars 34 forks source link

DeFiFarms protocol #556

Closed Alexdefi closed 3 years ago

Alexdefi commented 3 years ago

...DeFiFarms protocol is the first automatic liquidity acquisition yield farm and AMM decentralized exchange running on Binance Smart Chain with lots of unique and creative features that let you earn and win.

https://bscscan.com/address/0x08d1Ed0e3816183e703a492dDD28d68fcc13bb61#code

Disclosure policy

Please reply to me privately via telegram : https://t.me/Alex_DeFiFarms We will record the positive ! Standard disclosure policy.

website : https://defifarms.org/

twitter : https://twitter.com/DeFiFarmsNFTs

https://t.me/Alex_DeFiFarms

Platform : : https://app.defifarms.org/

Binance Smart Chain 

(** Important information, looking forward to hearing from you )

yuriy77k commented 3 years ago

@Alexdefi The audit fee is 795 USDT. You may send USDT (ERC20 or BEP20) to: 0xb9662e592f2f0412be62f0833ca463a9b1aabebb or USDT (TRC20) to: TBzUKbek9AYVBwf91ykh3KY4Ushk95SCiB

The estimated auditing time - 7 days after payment.

Alexdefi commented 3 years ago

Hi sir , we are ready to pay , last step , please discuss with me on twitter : https://twitter.com/DeFiFarmsNFTs thank you

Alexdefi commented 3 years ago

https://bscscan.com/tx/0x941491f9092528a2164c8ead176ea1180febfa7e7eb1ec0283bd54bf21a30ffa

Screenshot (193)

yuriy77k commented 3 years ago

Hi sir , we are ready to pay , last step , please discuss with me on twitter : https://twitter.com/DeFiFarmsNFTs thank you

I'm sorry, I don't use Twitter, you can contact with me in telegram https://t.me/yuriy77k

Or we may discuss it here

Alexdefi commented 3 years ago

Have you received our payment? please start work

yuriy77k commented 3 years ago

Yes, the payment was received and we started the audit

Alexdefi commented 3 years ago

Great !

yuriy77k commented 3 years ago

DeFiFarms protocol Security Audit Report

1. Summary

DeFiFarms protocol smart contract security audit report performed by Callisto Security Audit Department

DeFiFarms protocol is the first automatic liquidity acquisition yield farm and AMM decentralized exchange running on Binance Smart Chain with lots of unique and creative features that let you earn and win.

2. In scope

Upgradable proxy contract: https://bscscan.com/address/0x08d1Ed0e3816183e703a492dDD28d68fcc13bb61#code

Implementation contract: https://bscscan.com/address/0xd023618fa3d91f7862d277d59f2e8ad560df01fc#code

3. Findings

In total, 0 issues were reported, including:

In total, 11 notes were reported, including:

No critical security issues were found.

3.1. Unused require

Severity: note

Description

In the function _transfer() in the DefiFarmToken.sol there are two requires conditions which couldn't be true, because it already checks in the SafeMath library:

  1. https://bscscan.com/address/0xd023618fa3d91f7862d277d59f2e8ad560df01fc#code#F1#L129
  2. https://bscscan.com/address/0xd023618fa3d91f7862d277d59f2e8ad560df01fc#code#F1#L133

3.2. There is no function to rescue BNB from the contract address

Severity: note

Description

Since the contract can accept BNB payment, somebody can transfer BNB to its address by mistake. A good security practice is to allow the owner to rescue BNB from the contract. It will not hurt the users because the contract should not hold BNB.

3.3. Owner privileges.

Severity: owner privileges

Description

The contract owner can:

  1. Mint any amount of tokens to any address;
  2. Upgrade contract code. A new contract may be non-audited and has functions dangerous for users.

3.4. Operator privileges

Severity: owner privileges

Description

The contract's operator has the right to:

  1. Update transfer tax rate;
  2. Update burn rate;
  3. Update max transfer amount rate;
  4. Update min amount to liquify;
  5. Set/remove excluded addresses from AntiWhale list;
  6. Enable/disable the Swap And Liquify function;
  7. Update the swap router that is using in the Swap And Liquify function.

4. Security practices

5. Conclusion

The audited smart contract can be deployed. No security issues were found during the audit. Users have to pay attention to the owner's right to upgrade the contract on another which was not audited and may contain dangerous functionality.

It is recommended to adhere to the security practices described in pt. 4 of this report to ensure the contract's operability and prevent any issues that are not directly related to the code of this smart contract.

Alexdefi commented 3 years ago

Thank you Sir @yuriy77k
Thank you verymuch Please help me publish this result on Callisto and social platforms

yuriy77k commented 3 years ago

Please find below the links of the blog post and our twitter publications:

Blog post: https://callisto.network/defifarms-protocol-security-audit/

Twitter: https://twitter.com/Callisto_Audits/status/1430597630464348168

Twitter FR: https://twitter.com/CallistoNetFr/status/1430597623317241856

Twitter RU: https://twitter.com/CallistoNetRu/status/1430597615171866632