Sitemap
Yieldlendfinance

Yieldlendfinance

Yield farming with high yield pools

3 min readSep 30, 2020

--

Press enter or click to view image in full size

Introduction

This report of the External Auditor on 0x00cf36E14cD66Fbc5aB89177da81279daB9F9036 smart contract audit and is issued pursuant to chain standard complaint contracts.

This is the first long-form report to all investors prepared by ​PROTEST BUG TEAM. ​The audit does not give any warranties on the security of the code as it subject to further development. The audit makes no statements or warranties about utility of the code, suitability of the business model, regulatory regime for the business model, or any other statements about fitness of the contracts to purpose. It is highly recommended that follow up audits be done after every major update to the code or a public bug bounty program to ensure the security of smart contracts.

Audit Scope

Each member of the team independently performed an unbiased and isolated audit using the required global audit scope below:

  1. We scanned the smart contract(s) in scope on a bytecode level using a variety of automated tools rooted on methods such as symbolic execution, SMT, taint analysis e.t.c to detect unexpected security vulnerabilities.
  2. Check the smart contract(s) in scope against a comprehensive database of well-known vulnerabilities to develop custom-tailored payloads for attacking the smart contract(s) and discovering critical issues.
  3. Study the whitepaper (and yellowpaper if any ) associated with the smart contract(s) in scope to assess the behavioral functional correctness of the program concerning the underlying specifications.
  4. Manually review the provided source code of the smart contract(s) in scope to assure the quality. Better code quality can take many forms, it could be knowledge transfer, QA compliance revealing defects e.t.c
  5. Finally, as a team we analyze the smart contract(s) in scope with regards to its underlying host network. Host network vulnerabilities could inherently effect the smart contract(s).

Audit Details

Project Name: YieldLendFinance

Project Ticker: YFILEND/YFILD

website/Etherscan Code : https://yfilend.finance

Languages: Solidity(Smart contract), Javascript(Unit Testing)

GitHub link for audit: https://github.com/YFILEND/audit-report-updated-/blob/master/0x00cf36E14cD66Fbc5aB89177da81279daB9F9036%20Smart%20Contract%20Audit%20(1).pdf

Get Yieldlendfinance’s stories in your inbox

Join Medium for free to get updates from this writer.

Protest Bug: https://protestbug.com/Files/0x003smartcontractaudit.pdf

Audit Goals

The focus of the audit was to verify that the smart contract system is secure, resilient and working according to its specifications. The audit activities can be grouped in the following three categories:

Security: Identifying security related issues within each contract and within the system of contracts.

Sound Architecture: Evaluation of the architecture of this system through the lens of established smart contract best practices and general software best practices.

Code Correctness and Quality: A full review of the contract source code. The primary areas of focus include:

Correctness

Readability

Sections of code with high complexity

Quantity and quality of test coverage

Forcing Ethereum to a contract

While implementing “selfdestruct” in a smart contract, it sends all the eth to the target address. Now, if the target address is a contract address, then the fallback function of target contract does not get called. Thus the Hacker using this vector of attack can bypass the “Required” conditions. During our analysis, the Smart Contract’s balance has never been used as guard, which mitigated this vulnerability.

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

Summary of the Audit

Overall the code is well and performs well. Please try to check the address and value of token externally before sending to the solidity code. Our final recommendation would be to pay more attention to the visibility of the functions , hardcoded address and mapping since it’s quite important to define who’s supposed to executed the functions and to follow best practices regarding the use of assert, require etc. (which you are doing ;) ).

Note:​ Please focus on version of solidity (Use latest) and check addresses

--

--

Yieldlendfinance
Yieldlendfinance

Written by Yieldlendfinance

Yield farming with high yield pools