Project Background
Website Details
- L7 Finance is a Web3 digital asset management and traffic aggregation platform. It offers a range of services including Centralized Exchanges (CEX), Decentralized Exchanges (DEX), crypto cards, and financial management solutions. The platform focuses on providing comprehensive digital asset investment and allocation services globally, engaging in venture capital, project incubation, and more.
- The native token of L7 Finance, LSD, is a BEP-20 token on the BNB blockchain. It provides various benefits such as discounted transaction fees on its trading platform, participation in liquidity pool mining, airdrop rights, and significant governance roles within the ecosystem.
Website: l7.finance
Code Details
- The provided code is a Solidity smart contract implementing an ERC20 token named LSD. Here’s a summary of the key components and functionalities:
- Key Components:
- Interfaces and Inheritance:
- IERC20: Interface defining the standard ERC20 functions.
- Context: Provides information about the current execution context, such as the sender of the transaction and its data.
- ERC20: Implements the IERC20 interface and provides the core functionality for ERC20 tokens.
- ERC20Burnable: Extends ERC20 to add functions that allow token holders to destroy their own tokens or those that they have an allowance for.
- Token Details:
- name and symbol: Set during contract deployment and are immutable.
- decimals: Defaults to 18, typical for most tokens, and can be overridden.
- Core ERC20 Functions:
- totalSupply(): Returns the total supply of the token.
- balanceOf(address account): Returns the token balance of the specified address.
- transfer(address recipient, uint256 amount): Transfers tokens from the caller to the recipient.
- allowance(address owner, address spender): Returns the remaining number of tokens that the spender can spend on behalf of the owner.
- approve(address spender, uint256 amount): Sets the allowance for the spender to spend the caller’s tokens.
- transferFrom(address sender, address recipient, uint256 amount): Transfers tokens from sender to recipient using the allowance mechanism.
- Internal Functions:
- _transfer(address sender, address recipient, uint256 amount)`: Handles the actual transfer of tokens.
- _mint(address account, uint256 amount)`: Creates new tokens and assigns them to the specified account.
- _burn(address account, uint256 amount)`: Destroys tokens from the specified account.
- _approve(address owner, address spender, uint256 amount)`: Sets the allowance for the spender over the owner’s tokens.
- _beforeTokenTransfer(address from, address to, uint256 amount)`: A hook that can be overridden to execute code before any transfer of tokens.
- Burnable Token:
- burn(uint256 amount)`: Allows the caller to destroy their own tokens.
- burnFrom(address account, uint256 amount)`: Allows the caller to destroy tokens from another account, given that they have a sufficient allowance.
- Interfaces and Inheritance:
- This code provides a robust ERC20 token implementation with additional burn functionalities, suitable for various token-based applications on the Ethereum blockchain.
Audit Summary
- We observed no issue in the smart contracts.
- The security state of the reviewed smart contract, based on standard audit procedure scope, is “Well Secured”.
Executive Audit Summary
- According to the standard audit assessment, the Customer`s solidity smart contracts are “Well Secured”. Also, these contracts contain owner control, which does not make them fully decentralized.
- We used various tools like Slither, Solhint and Remix IDE. At the same time this finding is based on critical analysis of the manual audit.
Audit Report in PDF
Audit Report Flip book
Please wait while flipbook is loading. For more related info, FAQs and issues please refer to DearFlip WordPress Flipbook Plugin Help documentation.