LFGSwap has 2 public audit reports from CertiK; the latest is CertiK, 27 Mar 2023; no critical findings reported. It also holds 1 deployed contract on 1 chain.
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| LfgSwap Ⅱ | Security firm: CertiK | Date: | Scope: Files listed | None open | Findings: 3 high · 1 medium · 6 low 6 fixed · 4 open | skynet.certik.com ↗ |
| LFGswap | Security firm: CertiK | Date: | Scope: Files listed | None open | Findings: 3 high · 15 low 18 open | skynet.certik.com ↗ |
28 findings in 2 reports: 6 fixed, 22 open.
| Severity | Open | Fixed |
|---|---|---|
| Critical | 0 | 0 |
| High | 5 | 1 |
| Medium | 0 | 1 |
| Low | 17 | 4 |
The owner can withdraw users' raiseToken via the function `finalWithdraw()` without the consensus of the community. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and all the users will suffer the loss of their investment funds.
Report ↗In the function `calculateOfferingAndRefundingAmountsPool()`, the `userRefundingAmount` will deduct the user's share of raisingAmountPool. We would like to confirm whether this implementation aligns with the original project design. Meanwhile, the `raisingAmountPool` is set by the owner without any reasonable upper boundaries.
Report ↗In the contract `LfgSwapFactory` the role `feeToSetter` has authority over the functions shown in the diagram below. Any compromise to the `feeToSetter` account may allow the hacker to take advantage of this authority and set `feeTo`. 
Report ↗In the contract `LfgToken` the role `_owner` has authority over the functions shown in the diagram below. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and add or delete `Minter` role.  In the contract `LfgToken`, the role `_minters` has authority over the `mint()` function. Any compromise to the `_minters` account may allow a hacker to take advantage of this authority and mint new tokens.
Report ↗Tokens are sent to `msg.sender` when deploying the contract. This could be a centralization risk as the `msg.sender` can distribute tokens without obtaining the consensus of the community.
Report ↗In function `calculateOfferingAndRefundingAmountsPool()`, the comment for the following `userOfferingAmount` calculation is inaccurate for the scenario of when `raisingAmountPool` <= `totalAmountStake` ```solidity=628 // userInfo[_user] / (raisingAmount / offeringAmount) userOfferingAmount = userInfo[_user].amount.mul(offeringAmountPool).div( raisingAmountPool ); ```
Report ↗`beforeHarvest()` function is not implemented in the `IFOInitializableMix.sol` contract
Report ↗Commented out code is redundant.
Report ↗The call to `burn()` function will fail if the value of `_totalSupply` is 0.
Report ↗The functions which are never called internally within the contract should have external visibility for gas optimization.
Report ↗Based on the coefficient `mul(2)` and based on the formula at 2.4 of https://uniswap.org/whitepaper.pdf, the correct fee is equivalent to 1/3th.
Report ↗In function `_burn()`, `_approve()` and `_transfer()`, addresses should be checked before assigning to make sure they are not zero addresses.
Report ↗Addresses should be checked before assignment or external call to make sure they are not zero addresses.
Report ↗In the function `LfgToken.getMinter()`, the input `_index` is checked to ensure the index is valid. However, it is possible that `getMinterLength() == 0` which might lead to integer underflow in the calculation: ```solidity=43 require(_index <= getMinterLength() - 1, "JfToken: index out of bounds"); ```
Report ↗In the `swap` function, the `require(amount0Out > 0 || amount1Out > 0, 'LfgSwap: INSUFFICIENT_OUTPUT_AMOUNT');` will always be satisfied due to the condition `if( amount0Out > 0 || amount1Out > 0 )`.
Report ↗The `IMigrator` and `ISwapMining` interfaces are not used by other code.
Report ↗There is a typo in the file name `SafaMath.sol`.
Report ↗There is a typos in `require` messages: - `UniswapV2Library` expected `LfgSwapLibrary`; - `UniswapV2` expected `LfgSwap`. - `JfToken` expected `LfgToken`
Report ↗The following import file is not used in the audit files: ````Solidity=3 import "@openzeppelin/contracts/access/Ownable.sol"; ````
Report ↗The library `FixedPoint` is never used within the project and thus can be removed.
Report ↗The linked functions are equivalent to the compiler-generated getter functions for the respective variables.
Report ↗The linked variables assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.
Report ↗| Address | Chain | Source code |
|---|---|---|
| 0xf7a0…7d6d0xf7a0b80681ec935d6dd9f3af9826e68b99897d6d | Chain: Arbitrum | Source code: Verified source |
Trustblock holds 2 public audit reports for LFGSwap, dated 21 Oct 2022 to 27 Mar 2023. The latest is by CertiK (“LfgSwap Ⅱ”).
CertiK wrote the 2 reports Trustblock holds for LFGSwap.
22 findings are still open or acknowledged in the firms’ reports: 5 high, 17 low (all open). No critical finding is reported. Statuses are the security firms’ own.
Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.
Tell us